docker-compose environment for the entire v.st system
https://v.st/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
3 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset='utf-8' />
|
||
|
<meta http-equiv="Content-Security-Policy" content="frame-src '*'">
|
||
|
<title>
|
||
|
Hackerspace.Zone calendar viewer
|
||
|
</title>
|
||
|
<style>
|
||
|
html, body {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
#calendar {
|
||
|
max-width: 800px;
|
||
|
margin: 00px auto;
|
||
|
}
|
||
|
</style>
|
||
|
<link href='https://cdn.jsdelivr.net/npm/fullcalendar@5.11.0/main.min.css' rel='stylesheet' />
|
||
|
<script src='https://cdn.jsdelivr.net/npm/fullcalendar@5.11.0/main.min.js'></script>
|
||
|
<script src='https://github.com/mozilla-comm/ical.js/releases/download/v1.4.0/ical.js'></script>
|
||
|
<script src='https://cdn.jsdelivr.net/npm/@fullcalendar/icalendar@5.11.0/main.global.min.js'></script>
|
||
|
<script>
|
||
|
// 'https://events.hackerspace.zone/@events/feed/ics',
|
||
|
const param = new URL(location).searchParams;
|
||
|
const ics = param.get("ics") || 'https://events.hackerspace.zone/@events/feed/ics';
|
||
|
const view = param.get("view") || "dayGridMonth";
|
||
|
|
||
|
document.addEventListener('DOMContentLoaded', function() {
|
||
|
var calendarEl = document.getElementById('calendar');
|
||
|
var calendar = new FullCalendar.Calendar(calendarEl, {
|
||
|
initialView: view,
|
||
|
headerToolbar: {
|
||
|
left: 'prev,next today',
|
||
|
center: 'title',
|
||
|
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
||
|
},
|
||
|
events: {
|
||
|
url: ics,
|
||
|
format: 'ics'
|
||
|
}
|
||
|
});
|
||
|
calendar.render();
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id='calendar'></div>
|
||
|
</html>
|
||
|
|