Update custom.html

pull/925/head
Ronin0000 2021-11-20 17:56:54 -08:00 committed by GitHub
parent 352fea3479
commit a9c5a32bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -74,10 +74,10 @@
// When the 'upload' button is clicked...
document.getElementById("upload").addEventListener("click", function () {
//Cacultate data:
var calendarEvents = calendar.getEvents();
//var calendarEvents = calendar.getEvents();
let schedule = []
//--------------------
if(calendarEvents)
/*if(calendarEvents)
for(i=0;i>calendarEvents.length;i++){
var calendarEntry = {}
calendarEntry['cn'] = calendarEvents[i].title;
@ -88,9 +88,9 @@
calendarEntry['em'] = calendarEvents[i].end.getMinutes();
schedule.push(calendarEntry)
}
}else{
}else{*/
alert("Add some events!");
}
//}
//---------------------
// build the app's text using a templated String
var app = `