1
0
Fork 0

spell calendarIndex correctly

This commit is contained in:
Ryan Mwangi 2024-10-21 20:03:01 +03:00
parent ccc8847713
commit 2c99ea1209
2 changed files with 1 additions and 31 deletions

View File

@ -1,30 +0,0 @@
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;VALUE=DATE:20240930
DTEND;VALUE=DATE:20240930
SUMMARY:work
END:VEVENT
BEGIN:VEVENT
DTSTART;VALUE=DATE:20241003
DTEND;VALUE=DATE:20241003
SUMMARY:work
END:VEVENT
BEGIN:VEVENT
DTSTART;VALUE=DATE:20241009
DTEND;VALUE=DATE:20241009
SUMMARY:work
END:VEVENT
BEGIN:VEVENT
DTSTART;VALUE=DATE:20241001
DTEND;VALUE=DATE:20241001
SUMMARY:Other work
END:VEVENT
BEGIN:VEVENT
DTSTART;VALUE=DATE:20241010
DTEND;VALUE=DATE:20241010
SUMMARY:Other work
END:VEVENT
END:VCALENDAR

View File

@ -3,7 +3,7 @@ const calendars = document.getElementById('calendars');
const addCalendarButton = document.getElementById('add-calendar');
const result = document.getElementById('result');
let alendarIndex = 1;
let calendarIndex = 1;
// Function to validate URL format
function isValidUrl(url) {