Update custom.html

master
Ronin0000 2021-11-20 19:50:08 -08:00 committed by GitHub
parent f99ce683e9
commit b76bb48973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 14 deletions

View File

@ -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 = `