Commit 1509eb46 authored by Johannes Bill's avatar Johannes Bill

created lib folder

parent 81ef072c
......@@ -47,9 +47,9 @@ function createMonthView(data, now, monthOffset) {
var oHours = getDataFromTo(data, startDate, endDate);
var content = '<div class="monthview-maindiv">';
content += '<div class="monthview-month">' + moment(monthDate).format("MMMM") + '</div>';
content += '<table class="monthview-table"><thead class="monthview-thead"><tr>';
for(var i = 0; i < 7; i++) {
content += '<th class="monthview-th">' + moment(oHours[i].date).format("dd") + '</th>';
}
......@@ -153,15 +153,6 @@ function compareDate(date1, date2) {
return diff;
}
function parseJSON(json) {
var result = JSON.parse(json);
for (var i = 0; i < result.length; i++) {
var elem = result[i];
elem[0] = new Date(elem[0]);
elem[1] = new Date(elem[1]);
}
return result;
}
moment.lang("de");
......@@ -174,4 +165,5 @@ var weekView = create3MonthView(data, new Date(), 0);
console.log();
fs.writeFile(process.env["HOME"] + '/Desktop/bla.html', weekView, function(err) {
console.log(err);
});
\ No newline at end of file
});
console.log(moment.weekdaysMin());
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment