uhhhh it works today
This commit is contained in:
commit
7091cc92c9
5 files changed
+1158
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
import { Calendar } from "@fullcalendar/core";
|
||||
import iCalendarPlugin from "@fullcalendar/icalendar";
|
||||
import listPlugin from "@fullcalendar/list";
|
||||
|
||||
// const text_field = document.getElementById("ics_file");
|
||||
|
||||
const confirm_button = document.getElementById("ics_run");
|
||||
|
||||
const cal = document.getElementById("calendar");
|
||||
|
||||
const on_click = (e) => {
|
||||
console.log("nawgh", e);
|
||||
const calendar = new Calendar(cal, {
|
||||
plugins: [listPlugin, iCalendarPlugin],
|
||||
initialView: "listWeek",
|
||||
events: {
|
||||
url: "/public/basic.ics",
|
||||
format: "ics",
|
||||
},
|
||||
});
|
||||
|
||||
calendar.render();
|
||||
};
|
||||
|
||||
confirm_button.addEventListener("click", on_click);
|
||||
Reference in new issue
Block a user