Bhikkhu-Kosalla 5 anni fa
parent
commit
b84b008360

+ 16 - 63
app/lib/fullcalendar/examples/json/events.json

@@ -2,20 +2,20 @@
 	{
 		"id": "999",
 		"title": "Dhammacakkha",
-		"start": "2020-12-06T20:30:00-05:00",
-		"end": "2020-12-06T22:00:00-05:00"
+		"url": "https://www.wikipali.org/app/course/lesson.php?id=6a42e993-8f7e-414a-a291-a4094764f992",
+		"startTime": "08:00:00+06:30",
+		"endTime": "09:30:00+06:30",
+		"allDay": false,
+		"daysOfWeek": [1, 2, 5]
 	},
 	{
 		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-08T08:00:00+06:30",
-		"end": "2020-12-08T09:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-10T20:30:00-05:00",
-		"end": "2020-12-10T22:00:00-05:00"
+		"title": "kāmasuttaniddesa",
+		"url": "https://www.wikipali.org/app/course/course.php?id=7f18a3b9-0cd5-47f6-99dd-bae441227d27",
+		"startTime": "07:00:00+06:30",
+		"endTime": "08:30:00+06:30",
+		"allDay": false,
+		"daysOfWeek": [4]
 	},
 	{
 		"id": "1000",
@@ -36,22 +36,11 @@
 		"end": "2020-12-11T4:00:00-05:00"
 	},
 	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-14T08:00:00+06:30",
-		"end": "2020-12-14T09:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-15T08:00:00+06:30",
-		"end": "2020-12-15T09:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-18T08:00:00+06:30",
-		"end": "2020-12-18T09:30:00+06:30"
+		"id": "1001",
+		"title": "haritaca-jātaka",
+		"url": "https://youtu.be/5UdZDewA3TA",
+		"start": "2020-12-13T19:00:00+07:00",
+		"end": "2020-12-13T21:00:00+07:00"
 	},
 	{
 		"id": "1000",
@@ -106,41 +95,5 @@
 		"title": "nibbāna-gāmini",
 		"start": "2021-01-01T14:00:00+06:30",
 		"end": "2021-01-01T15:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-21T08:00:00+06:30",
-		"end": "2020-12-21T09:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-22T08:00:00+06:30",
-		"end": "2020-12-22T09:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-25T08:00:00+06:30",
-		"end": "2020-12-25T09:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-28T08:00:00+06:30",
-		"end": "2020-12-28T09:30:00+06:30"
-	},
-	{
-		"id": "999",
-		"title": "Dhammacakkha",
-		"start": "2020-12-29T08:00:00+06:30",
-		"end": "2020-12-29T09:30:00+06:30"
-	},
-	{
-		"id": "1000",
-		"title": "nibbāna-gāmini",
-		"start": "2021-01-01T08:00:00+06:30",
-		"end": "2021-01-01T09:30:00+06:30"
 	}
 ]

+ 9 - 1
app/lib/fullcalendar/examples/time-zones.html

@@ -31,7 +31,7 @@
 						center: "title",
 						right: "dayGridMonth,timeGridWeek,timeGridDay,listWeek",
 					},
-					initialDate: "2020-12-07",
+					//initialDate: "2020-12-12",
 					navLinks: true, // can click day/week names to navigate views
 					editable: true,
 					selectable: true,
@@ -42,6 +42,14 @@
 							document.getElementById("script-warning").style.display = "inline"; // show
 						},
 					},
+					eventClick: function (info) {
+						info.jsEvent.preventDefault(); // don't let the browser navigate
+
+						if (info.event.url) {
+							window.open(info.event.url);
+						}
+					},
+
 					loading: function (bool) {
 						if (bool) {
 							loadingEl.style.display = "inline"; // show