-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (76 loc) · 3.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="de">
<!--
web-calendar to display multiple ics-calendars in a browser
source code available at https://github.com/cbz20/Web-Calendar/
Copyright (C) 2025 Claudius Zibrowius
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="svg/favicon.svg">
<title>Kalender der Fakultät für Mathematik an der Ruhr-Universität Bochum</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" type="text/css" href="css/weekview.css"/>
<link rel="stylesheet" type="text/css" href="css/monthview.css"/>
</head>
<body>
<div class="calendar-container">
<div id="error-message"></div>
<div class="calendar-header" id="calendar-header">...Kalender wird geladen...</div>
<div class="toggle-buttons-header" id="toggle-buttons-header"></div>
<div class="calendar-monthview" id="calendar-monthview"></div>
<table class="calendar-weekview" id="calendar-weekview"></table>
</div>
<!-- modal for event details -->
<div id="event-modal" class="modal">
<div class="modal-content">
<div class="modal-header" id="modal-title"></div>
<div class="modal-body" id="modal-body"></div>
</div>
</div>
<!-- load the newest version of the ical.js library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ical.js/1.5.0/ical.min.js"></script>
<script src="js/weekmonthview.js"></script>
<script>
name = 'Fakultätskalender Mathematik'; // calendar title
colours = {// categories of displayed events and their colors
// an event needs to belong to at least one of these categories to be displayed
'Dekanat': 'var(--rub-blue)',
'Algebra': '#347037',
'Analysis': '#b61e3e',//rub-darkred
'Didaktik': '#be9800',//rub-yellow, but with some grey tones added
'Numerik': '#0073ff',//rub-blue but all grey tones removed
'Stochastik': '#ed7102',//rub-orange
'Topologie': '#8e44ad'
};
links = {// keys must agree with the keys of 'colours'
'Dekanat': 'ics/Dekanat.ics',
'Algebra': 'ics/Algebra.ics',
'Analysis': 'ics/Analysis.ics',
'Didaktik': 'ics/Didaktik.ics',
'Numerik': 'ics/Numerik.ics',
'Stochastik': 'ics/Stochastik.ics',
'Topologie': 'ics/Topologie.ics'
};
svgs = {
'month':'svg/month.svg',
'week':'svg/week.svg',
'save':'svg/save-icon.svg',
'copy':'svg/copy-icon.svg',
'question': 'svg/question-mark.svg'
};
loadICS(name, colours, links, svgs);
</script>
</body>
</html>