-
Notifications
You must be signed in to change notification settings - Fork 91
/
_index.html
138 lines (126 loc) · 4.96 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
title: "Events"
date: 2020-02-03T22:26:16+11:00
draft: false
---
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/4.2.0/core/main.min.css" integrity="sha256-Lfe6+s5LEek8iiZ31nXhcSez0nmOxP+3ssquHMR3Alo=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/4.2.0/daygrid/main.min.css" integrity="sha256-AVsv7CEpB2Y1F7ZjQf0WI8SaEDCycSk4vnDRt0L2MNQ=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/4.2.0/list/main.min.css" integrity="sha256-saO3mkZVAcyqsfgsGMrmE7Cs/TLN1RgVykZ5dnnJKug=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/4.2.0/core/main.min.js" integrity="sha256-GBryZPfVv8G3K1Lu2QwcqQXAO4Szv4xlY4B/ftvyoMI=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/4.2.0/daygrid/main.min.js" integrity="sha256-FT1eN+60LmWX0J8P25UuTjEEE0ZYvpC07nnU6oFKFuI=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/4.2.0/list/main.min.js" integrity="sha256-q57s73NpMCTQ4ZXqb1X5bIywrICySeB6WvYxFGfz/PA=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/4.2.0/google-calendar/main.min.js" integrity="sha256-c6/DYGU9nuQL+zHRFAsSo6hRLt/M/QolhlFj99aH3kw=" crossorigin="anonymous"></script>
<style>
/* fix calendar toolbar and make responsive */
.fc-header-toolbar {
flex-wrap: wrap;
justify-content: space-between;
}
/* next/prev buttons */
.fc-header-toolbar > .fc-center {
margin: 0.5rem 0;
white-space: nowrap;
overflow: visible;
}
/* month text is full-width and centered. */
.fc-header-toolbar > .fc-left {
/* full width across flexbox */
width: 100%;
flex-basis: 100%;
}
/* subscribe, list and month buttons */
.fc-header-toolbar > .fc-right {
}
/* stack buttons and center for small mobile devices. */
@media screen and (max-width: 374px) {
.fc-header-toolbar {
justify-content: center;
}
.fc-header-toolbar > .fc-left {
text-align: center;
}
}
/* collapse table entries to multiple rows at sizes below tablet. */
@media screen and (max-width: 767px) {
.fc-list-item {
display: grid;
grid-template-columns: 1.5rem 1fr;
}
.fc-list-item-time {
grid-column: 2;
grid-row: 1;
width: unset;
}
.fc-list-item-marker {
grid-column: 1;
grid-row: 1;
width: unset;
}
td.fc-list-item-title {
grid-column: 1 / span 2;
grid-row: 2;
border: none;
padding-top: 0;
box-sizing: border-box;
width: 100%;
}
}
</style>
<div class="columns is-centered">
<div class="column is-8">
<div class="section">
<h1 class="title is-2">Events Calendar</h1>
<div id="events-description">
This calendar shows all currently planned UQCS events.
While most of our events are held in person (and are catered)
we're committed to making as much of our content available
online. Recordings of technical talks and other events (where
possible) are made available on
<a href="https://link.uqcs.org/youtube">our YouTube channel</a>.
You can also read more about our flagship competitive events
(code jams, hackathons) <a href="/competitions/">here</a>.
</div>
<br/>
<div id="uqcs-calendar"></div>
</div>
</div>
</div>
<script>
const calendar = new FullCalendar.Calendar(document.getElementById('uqcs-calendar'), {
plugins: ['googleCalendar', 'dayGrid', 'list'],
defaultView: 'listTwoMonths',
views: {
listTwoMonths: {
type: 'list',
duration: { months: 2 },
buttonText: 'list'
}
},
height: 'auto',
googleCalendarApiKey: 'AIzaSyC-c78Fu_Rw36zKXh9XvCpTOXvlNPXlyNc',
eventSources: [
{ googleCalendarId: '[email protected]' },
],
header: {
// note: CSS depends on these elements being left, center, right respectively.
left: 'title',
center: 'prev,next',
right: 'subscribe listTwoMonths,dayGridMonth'
},
customButtons: {
subscribe: {
text: 'subscribe',
click: function() {
window.open('https://calendar.google.com/calendar/embed?src=q3n3pce86072n9knt3pt65fhio%40group.calendar.google.com&ctz=Australia%2FBrisbane');
}
}
},
eventClick: function(info) {
info.jsEvent.preventDefault(); // don't let the browser navigate
if (info.event.url) {
window.open(info.event.url); // open in new tab
}
},
});
calendar.render();
</script>