Update custom.html
parent
f99ce683e9
commit
b76bb48973
|
|
@ -79,20 +79,16 @@
|
||||||
//--------------------
|
//--------------------
|
||||||
console.log = console.log || function(){};
|
console.log = console.log || function(){};
|
||||||
//--------------------
|
//--------------------
|
||||||
if(calendarEvents){
|
for(i=0;i>calendarEvents.length;i++){
|
||||||
for(i=0;i>calendarEvents.length;i++){
|
var calendarEntry = {}
|
||||||
var calendarEntry = {}
|
calendarEntry['cn'] = calendarEvents[i].title;
|
||||||
calendarEntry['cn'] = calendarEvents[i].title;
|
calendarEntry['dow'] = calendarEvents[i].start.getDate();
|
||||||
calendarEntry['dow'] = calendarEvents[i].start.getDate();
|
calendarEntry['sh'] = calendarEvents[i].start.getHours();
|
||||||
calendarEntry['sh'] = calendarEvents[i].start.getHours();
|
calendarEntry['sm'] = calendarEvents[i].start.getMinutes();
|
||||||
calendarEntry['sm'] = calendarEvents[i].start.getMinutes();
|
calendarEntry['eh'] = calendarEvents[i].end.getHours();
|
||||||
calendarEntry['eh'] = calendarEvents[i].end.getHours();
|
calendarEntry['em'] = calendarEvents[i].end.getMinutes();
|
||||||
calendarEntry['em'] = calendarEvents[i].end.getMinutes();
|
schedule.push(calendarEntry)
|
||||||
schedule.push(calendarEntry)
|
console.log(schedule+" lets go");
|
||||||
console.log(schedule);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
alert("Add some events!");
|
|
||||||
}
|
}
|
||||||
// build the app's text using a templated String
|
// build the app's text using a templated String
|
||||||
var app = `
|
var app = `
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue