forked from wolfiex/EmailCalendarPlotter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.html
63 lines (50 loc) · 1.79 KB
/
output.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
<style>
html, body {
margin: 0;
padding: 0;
font-family: "Plus Jakarta Sans", sans-serif;
font-size: 14px;
}
#calendar {
max-width: min(95vw,1100px);
max-height: 80vh;
margin: 40px auto;
}
ul {
list-style-type: none;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap" rel="stylesheet">
<div id='calendar'></div>
<div id='key'>
<ul>
<li>
<div class="color-square" style="background-color: #0d6efd;width:1em;height:1em;display:inline-block;padding-right:1em;">
</div>
<span style=""> Eleanor O'Rourke - [email protected] </span>
<li>
<div class="color-square" style="background-color: #6610f2;width:1em;height:1em;display:inline-block;padding-right:1em;">
</div>
<span style=""> Daniel Ellis - [email protected] </span>
<li>
</ul>
</div>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/index.global.min.js'></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'dayGridMonth',
initialDate: new Date(),
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
events: [{'title': 'Daniel Ellis - avail cal test', 'start': '2024-07-09T00:00:00', 'end': '2024-07-09T00:00:00', 'color': '#6610f2'}, {'title': "Eleanor O'Rourke - EOR annual leave", 'start': '2024-08-19T00:00:00', 'end': '2024-08-24T00:00:00', 'color': '#0d6efd'}]
});
calendar.render();
});
</script>