forked from NoLog.cz/trhlina-calendar
91 lines
No EOL
2.4 KiB
HTML
91 lines
No EOL
2.4 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Kalendář Trhliny</title>
|
|
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css' rel='stylesheet'>
|
|
<link href='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css' rel='stylesheet'>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ical.js/1.4.0/ical.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.4/index.global.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/icalendar@6.1.4/index.global.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/core@6.1.4/locales-all.global.min.js"></script>
|
|
|
|
<style>
|
|
|
|
html, body {
|
|
overflow: hidden; /* don't do scrollbars */
|
|
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#calendar-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.demo-topbar { /* will be stripped out */
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 40px;
|
|
}
|
|
|
|
.demo-topbar + #calendar-container { /* will be stripped out */
|
|
top: 40px;
|
|
}
|
|
|
|
.fc-header-toolbar {
|
|
/*
|
|
the calendar will be butting up against the edges,
|
|
but let's scoot in the header's buttons
|
|
*/
|
|
padding-top: 1em;
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
var calendarEl = document.getElementById("calendar");
|
|
|
|
var calendar = new FullCalendar.Calendar(calendarEl, {
|
|
height: '100%',
|
|
themeSystem: 'bootstrap5',
|
|
locale: 'cs',
|
|
initialView: "dayGridMonth",
|
|
firstDay: 1,
|
|
headerToolbar: {
|
|
left: "prev,next",
|
|
center: "title",
|
|
right: "dayGridMonth,listMonth",
|
|
},
|
|
eventTimeFormat: { // like '14:30:00'
|
|
hour: '2-digit',
|
|
minute: '2-digit',
|
|
hour12: false
|
|
},
|
|
events: {
|
|
url: "./cal.ics",
|
|
format: "ics",
|
|
},
|
|
|
|
});
|
|
|
|
calendar.render();
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id='calendar-container'>
|
|
<div id='calendar'></div>
|
|
</div>
|
|
</body>
|
|
</html> |