-
Notifications
You must be signed in to change notification settings - Fork 589
/
calendar.html
277 lines (243 loc) · 7.19 KB
/
calendar.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
---
layout: plain
title: Community Calendar
description: Meshery is community-built and welcomes collaboration!
permalink: /calendar
---
<div class="calendar-meetings">
<h1>Community Calendar</h1>
<p>Join any or all of the weekly meetings</p>
<!--Spinner Loader-->
<div class="preloader"></div><div id='calendar'></div>
</div>
<div class="row">
<div style="width: 50%;">
{% include newcomers-map.html %}
</div>
<div style="width: 70%; text-align: center;">
<h2 class="subheading">Newcomers Welcome!</h2>
<h3>Are you new to the community?</h3>
<p>Begin your journey by joining the community Slack. Then, use the resources linked in our Contributor's Journey Map and engage in the community and projects.</p>
<a class="highlight" href="https://slack.layer5.io" style="display: block; margin:3rem auto; width: fit-content;">Join Community</a>
</div>
</div>
<!-- Fullcalender CDN's -->
<link rel="stylesheet" href="/css/fullcalender.css">
<link rel="stylesheet" href="https://unpkg.com/@fullcalendar/[email protected]/main.min.css">
<link rel="stylesheet" href="https://unpkg.com/@fullcalendar/[email protected]/main.min.css">
<link rel="stylesheet" href="https://unpkg.com/@fullcalendar/[email protected]/main.min.css">
<script src="https://unpkg.com/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://unpkg.com/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://unpkg.com/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://unpkg.com/@fullcalendar/[email protected]/main.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
//disable spinner
$(document).ready(function ()
{
$('.preloader').fadeOut('slow');
})
//calendar
function displayContent() {
loader.style.display='none';
document.getElementById('calendar').style.display = 'block';
}
document.addEventListener("DOMContentLoaded", function() {
loader = document.getElementById('loader');
loadNow(1);
});
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
plugins: [ 'dayGrid', 'list', 'googleCalendar' ],
buttonText: {
today: 'Today'
},
customButtons: {
addToCalendar: {
text: 'Add To Your Calendar',
click: function() {
window.open('https://bit.ly/2SbrRhe', '_blank');
}
}
},
header: {
left: 'prev,next today',
center: 'title',
right: 'addToCalendar'
},
displayEventTime: false, // don't show the time column in list view
googleCalendarApiKey: 'AIzaSyDcmx-nLYfqvrfpEmVJuclwt9akayYfUgg',
events: {
googleCalendarId: '[email protected]'
},
eventClick: function(arg) {
// opens events in a popup window
window.open(arg.event.url, '_blank', 'width=700,height=600');
// prevents current tab from navigating
arg.jsEvent.preventDefault();
}
});
calendar.render();
});
</script>
<style>
.fc-day {
overflow: visible !important;
position: relative !important;
z-index: 1 !important;
}
.fc-unthemed td.fc-today {
background: var(--brand-color-secondary) !important;
}
.fc-view{
white-space:normal;
}
.fc-day-grid-event .fc-content {
white-space: nowrap;
overflow: hidden;
display: block;
text-overflow: ellipsis;
transition: all 0.3s ease;
font-size:0.9rem;
}
.fc-day-grid-event:hover .fc-content{
white-space: normal;
overflow: visible;
width: auto;
height:auto;
position: relative;
z-index: 9999;
}
.fc-row{
height:auto !important;
}
.fc-scroller{
height:auto !important;
}
@media (max-width: 820px) {
.fc-day-grid-event:hover .fc-content {
font-size:0.8rem;
}
}
@media (max-width: 680px) {
.fc-day-grid-event:hover .fc-content {
font-size:0.6rem;
}
}
@media (max-width: 534px) {
.fc-day-grid-event:hover .fc-content {
font-size:0.4rem;
}
}
.preloader {
color: #00b39f;
font-size: 90px;
text-indent: -9999em;
overflow: hidden;
width: 1em;
height: 1em;
border-radius: 50%;
margin: 72px auto;
position: relative;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
animation: load6 1.7s infinite ease, round 1.7s infinite ease;
}
.row{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
@media screen and (min-width: 900px) {
.row {
/* change the flex direction */
flex-direction: row;
}
}
@-webkit-keyframes load6 {
0% {
-webkit-animation: loader 2s cubic-bezier(0.445, 0.05, 0.55, 0.95) 0s infinite;
animation: loader 2s cubic-bezier(0.445, 0.05, 0.55, 0.95) 0s infinite;
}
5%,
95% {
box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
}
10%,
59% {
box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em,
-0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em,
-0.297em -0.775em 0 -0.477em;
}
20% {
box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
-0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
-0.749em -0.34em 0 -0.477em;
}
38% {
box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
-0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
-0.82em -0.09em 0 -0.477em;
}
100% {
box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
}
}
@keyframes load6 {
0% {
box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
}
5%,
95% {
box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
}
10%,
59% {
box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em,
-0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em,
-0.297em -0.775em 0 -0.477em;
}
20% {
box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
-0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
-0.749em -0.34em 0 -0.477em;
}
38% {
box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
-0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
-0.82em -0.09em 0 -0.477em;
}
100% {
box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
}
}
@-webkit-keyframes round {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes round {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>