-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
719 lines (620 loc) · 24.2 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
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="EECS 370">
<meta name="keywords" content="EECS370, EECS 370, Introduction to Computer Organization, University of Michigan Computer Science">
<title>EECS 370</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- Fomantic UI CSS library -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="semantic/dist/semantic.min.css">
<script src="semantic/dist/semantic.min.js"></script>
<!-- FullCalendar JS library
https://fullcalendar.io/docs
https://fullcalendar.io/docs/google-calendar -->
<link href='https://cdn.jsdelivr.net/npm/[email protected]/main.min.css' rel='stylesheet' />
<script src='https://cdn.jsdelivr.net/npm/[email protected]/main.min.js'></script>
</head>
<body>
<div class="ui secondary left blue vertical inverted sidebar menu labeled icon">
<button class="ui blue right floated icon button" id="close_sidebar_button">
<i class="times icon"></i>
</button>
<br>
<br>
<a class="item" href="#">
<span class="ui text"> EECS 370 </span>
</a>
<div class="ui fitted divider"></div>
<a class="item" href="https://docs.google.com/document/d/1ZqkEIv-fkMNwbzu4GZEJGT3c7mIPdjsmIzGwwvaWESU/edit?usp=sharing" target="_blank">
<p> <i class="university icon"></i> Syllabus </p>
</a>
<a class="item" href="https://drive.google.com/drive/folders/1FaJHz7otclgGRKVygtN3kEQ9WDhQmCKi?usp=sharing" target="_blank">
<p> <i class="calendar alternate outline icon"></i> Schedule & Recordings </p>
</a>
<a class="item" href="https://drive.google.com/drive/folders/1_X0aUIeUzbn5mFKq93p4xEGJ_0QWbNK7?usp=sharing" target="_blank">
<p> <i class="video icon"></i> Discussions </p>
</a>
<a class="item" href="https://drive.google.com/drive/folders/1V8Pn3AkqwXogOulj_dd2NJWXRKRAO0sp?usp=sharing" target="_blank">
<p> <i class="file alternate icon"></i> Homework </p>
</a>
<a class="item" href="https://www.youtube.com/channel/UCVHvjtdIZI40TWd5-64hTLQ/videos" target="_blank">
<p> <i class="youtube icon"></i> Review Videos </p>
</a>
<a class="item" href="resource.html" target="_blank">
<p> <i class="graduation cap
icon"></i> Course Resources </p>
</a>
<div class="ui fitted divider"></div>
<!-- Internal links -->
<a class="item" href="#cal">
Calendar
</a>
<a class="item" href="#projects">
Projects
</a>
<a class="item" href="#exams">
Exams
</a>
<a class="item" href="#admin">
<span class="ui text"> Admin Requests</span>
</a>
<a class="item" href="#staff">
Staff
</a>
<!-- Internal links -->
<div class="ui fitted divider"></div>
<!-- External links -->
<a class="item" href="https://piazza.com/class/knrnu8jxk6j45o" target="_blank">
<p> <i class="talk outline icon small"> </i> Piazza </p>
</a>
<!--
<a class="item" href="https://umich.instructure.com/courses/391021/external_tools/28616" target="_blank">
<i class="video icon big"></i>
<br>
Lecture Recordings
</a>
-->
<a class="item" href="https://drive.google.com/drive/folders/1psCcgcbHtlgMfX4kuzDkIAxX4_PKUuSv?usp=sharing" target="_blank">
<p> <i class="google icon"></i> Files </p>
</a>
<a class="item" href="https://eecsoh.eecs.umich.edu/queues/1h8szIgIhnCDBbxfVvKkZTf9VHm" target="_blank">
<p> <i class="help circle icon"></i> Office Hours </p>
</a>
<a class="item" href="https://autograder.io/web/course/112" target="_blank">
<p> <i class="upload icon"></i> Autograder </p>
</a>
<a class="item" href="https://www.gradescope.com/courses/264474" target="_blank">
<p> <i class="chart bar icon"></i> Gradescope </p>
</a>
<a class="item" href="https://umich.instructure.com/courses/438322" target="_blank">
<p> <i class="globe icon"></i> Canvas </p>
</a>
<div class="ui fitted divider"></div>
<!-- External links -->
</div>
<!-- Main page -->
<div class="pusher">
<br>
<br>
<div class="ui floated sticky launch right attached fixed centered button" id="left-sidebar-toggle">
<i class="bars icon"></i>
</div>
<br>
<br>
<div class="ui text container">
<h1 class="ui image header">
<img src="images/um_seal.gif" class="ui rounded image">
<div class="content">
EECS 370: Intro to Computer Organization
<div class="inline sub header">
<i>The University of Michigan, Spring 2021</i>
</div>
</div>
</h1>
<p>
<span class="ui left pointing red basic label">
Looking for <a href="w21">Winter 2021</a>?
</span>
</p>
<!-- Announcements -->
<div class="ui info message">
<div class="header">
Class logistics
</div>
<p>
We are looking forward to having you join us for the spring semester! Attendance is <i>not</i> required for lectures (recordings will be made available afterwards), however live attendance is required for your registered discussion section. Make sure that you can attend the section you are enrolled in.
</p>
<p>
<a href="https://umich.zoom.us/j/93810696596">Zoom link for live lectures</a>
</p>
</div>
<div class="ui section divider"></div>
<h2 id="cal"> Calendar </h2>
<div id="dualcal"></div>
<!--
Google Calendar
The FullCalendar JS library inserts a Google Calendar here. See
the JavaScript source code at the end of this file. Remember to
update the 'googleCalendarId' found in the JavaScript code.
-->
<!-- TODO: Update this Google Calendar link -->
<p>
<a href="https://calendar.google.com/calendar/u/0/embed?src=umich.edu_1qdkqoboj1g15u19lldahd5jas%40group.calendar.google.com&ctz=America%2FDetroit" target="_blank">
Course Calendar
</a>
|
<a href="https://calendar.google.com/calendar/embed?src=c_m7lcgbjruajiss89kc24j2ptmc%40group.calendar.google.com&ctz=America%2FDetroit" target="_blank">
Office Hours Calendar
</a>
</p>
<div class="ui section divider"></div>
<!-- Projects section-->
<h2 id="projects">Projects</h2>
<div class="ui two stackable cards" id="project-cards">
<a class="ui card" target="_blank" href="projects/p1_spec.html">
<div class="content">
<div class="description">
Project 1
</div>
<div class="meta">
<i> Assembler, Simulator, Assembly-Language Multiplier</i>
</div>
</div>
</a>
<a class="ui card" target="_blank" href="projects/p2_spec.html">
<div class="content">
<div class="description">
Project 2
</div>
<div class="meta">
<i>Assembler and Linker</i>
</div>
</div>
</a>
</div>
<div class="ui two stackable cards" id="project-cards">
<a class="ui card" target="_blank" href="projects/p3_spec.html">
<div class="content">
<div class="description">
Project 3
</div>
<div class="meta">
<i> LC-2K Pipelined Simulator</i>
</div>
</div>
</a>
<a class="ui card" target="_blank" href="projects/p4_spec.html">
<div class="content">
<div class="description">
Project 4
</div>
<div class="meta">
<i> LC-2K Cache Simulator</i>
</div>
</div>
</a>
</div>
<div class="ui section divider"></div>
<!-- Exams section -->
<h2 id="exams">Exams</h2>
<ul>
<li>Midterm: 5/27 7-9pm</li>
<li>Final: 6/25 4-6pm</li>
</ul>
<div class="ui two stackable cards" id="project-cards">
<a class="ui card" target="_blank" href="https://drive.google.com/drive/u/1/folders/1peoKjJ4OBOQUYjy9FMSL3YccqlmsOfFb">
<div class="content">
<div class="description">
Pratice Midterms
</div>
</div>
</a>
<a class="ui card" target="_blank" href="https://drive.google.com/drive/u/1/folders/1djKqkBWz_C_3cl6_DIKHAyLf5uakTzIB">
<div class="content">
<div class="description">
Practice Midterm Solutions
</div>
</div>
</a>
</div>
<div class="ui section divider"></div>
<!-- Administrative Requests section -->
<h2 id="admin">Admin Requests</h2>
<div class="ui three stackable cards" id="project-cards">
<a class="ui card" target="_blank" href="https://forms.gle/wrYWLijSWKoKMgmq8">
<div class="content">
<div class="description">
General Admin Requests
</div>
</div>
</a>
<a class="ui card" target="_blank" href="https://forms.gle/3fRuVtXAGSa6zpA58">
<div class="content">
<div class="description">
Exam Conflict Form
</div>
</div>
</a>
<a class="ui card" target="_blank" href="https://forms.gle/wzW7f1PVmPQYVbgo8">
<div class="content">
<div class="description">
Special Accomodations Form
</div>
</div>
</a>
</div>
<div class="ui section divider"></div>
<!-- Staff section -->
<h2 id="staff">Staff</h2>
<div class="ui three stackable special cards">
<!-- Instructors -->
<div class="card">
<div class="blurring dimmable image">
<div class="ui inverted dimmer">
<div class="content">
<div class="center">
<p><i class="icon envelope"></i><a href="mailto:[email protected]">[email protected]</a></p>
<p><i class = "icon windows"></i> Windows ,<i class="icon linux"></i>Linux</p>
</div>
</div>
</div>
<img src="images/jbbeau.jpg">
</div>
<div class="content">
<p class="header">Prof. Jon "Yo Teach" Beaumont</p>
<div class="meta">
<span style ="font-weight:bold;font-size:18px">Instructor</span>
<p> <b>Ask me about :</b> Doing undergrad through PhD at Michigan, making Neopolitan pizza from scratch, running triathlons, quantum computing</p>
</div>
</div>
</div>
</div> <!-- ui three stackable special cards -->
<div class="ui section divider"></div>
<div class="ui three stackable special cards">
<!-- IAs/GSIs -->
<div class="card">
<div class="blurring dimmable image">
<div class="ui inverted dimmer">
<div class="content">
<div class="center">
<p><i class="icon envelope"></i><a href="mailto:[email protected]">[email protected]</a></p>
<p>CLion on <i class="icon apple"></i>MacOS, <i class="icon ubuntu"></i>Ubuntu</p>
</div>
</div>
</div>
<img src="images/aisaav_cropped.jpeg">
</div>
<div class="content">
<p class="header">Alexandra Saavedra </p>
<div class="meta">
<span style ="font-weight:bold;font-size:18px">IA</span>
<p> <b>Ask me about :</b> Computer Science, Cognitive Science, Double Majoring, Machine Learning, Art/Creativity, Music, Boxing, Rock climbing, Internships, and the Society of Hispanic Professional Engineers</p>
</div>
</div>
</div>
<div class="card">
<div class="blurring dimmable image">
<div class="ui inverted dimmer">
<div class="content">
<div class="center">
<p><i class="icon envelope"></i><a href="mailto:[email protected]">[email protected]</a></p>
<p><i class="icon vscode"></i>VSCode on </i><i class="icon windows"></i>Windows, <i class="icon ubuntu"></i>Ubuntu, <i class="icon linux"></i>CAEN Linux, <i class="icon apple"></i>MacOS</p>
</div>
</div>
</div>
<img src="images/nelsontm_cropped.jpeg">
</div>
<div class="content">
<p class="header">Thomas Mason Nelson (Mason)</p>
<div class="meta">
<span style ="font-weight:bold;font-size:18px">IA</span>
<p> <b>Ask me about :</b>EECS 482, Texas, CoE Honors, Eagle scout, Minors in Math and Latin, Graduating early, video games (racing, fighter, battle royale), Michigan Cru, dual booting, Mazda 3, Texas again (yeehaw)</p>
</div>
</div>
</div>
<div class="card">
<div class="blurring dimmable image">
<div class="ui inverted dimmer">
<div class="content">
<div class="center">
<p><i class="icon envelope"></i><a href="mailto:[email protected]">[email protected]</a></p>
<p>XCode, CLion, Vim on <i class="icon apple"></i>MacOS</p>
</div>
</div>
</div>
<img src="images/danlliu_cropped.png">
</div>
<div class="content">
<p class="header">Daniel Liu</p>
<div class="meta">
<span style ="font-weight:bold;font-size:18px">IA</span>
<p> <b>Ask me about :</b> Anything in 370, designing my own programming languages, doing a dual degree, Minecraft, Starcraft II, why virtual memory is the best part of 370</p>
</div>
</div>
</div>
</div> <!-- ui three stackable special cards -->
<div class="ui section divider"></div>
</div><!-- ui text container -->
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script>
// Sidebar show and hide logic.
//
// On large screens, show the sidebar by default. On small screens, hide it.
(function() {
renderSidebar();
})();
function isSmallScreen() {
return innerWidth < 1000;
}
function renderSidebar() {
$sidebar = $('.ui.sidebar');
$sidebar.sidebar({
dimPage: false,
transition: 'overlay',
mobileTransition: 'overlay',
exclusive: false,
closable: false
});
$sidebar.sidebar('attach events', '#left-sidebar-toggle');
$sidebar.sidebar('attach events', '#close_sidebar_button');
if (!isSmallScreen()) {
$sidebar.sidebar('toggle');
}
}
</script>
<script>
// Highlights the last selected item
$('.ui.blue.menu')
.on('click', '.item', function() {
if(!$(this).hasClass('dropdown') && !$(this).hasClass('external')) {
$(this)
.addClass('active teal')
.siblings('.item')
.removeClass('active teal');
}
});
</script>
<script>
// Dims the staff cards
$('.special.cards .image').dimmer({
on: 'hover'
});
</script>
<script>
// Insert Google Calendar in <div id="calendar">
//
// REMINDER: update googleCalendarId each semester
//
// Uses the FullCalendar library and connects to Google Calendar
// https://fullcalendar.io/docs
// https://fullcalendar.io/docs/google-calendar
function recolorCalendarEvent(arg) {
// TODO: Consider updating these strings based on your Google Calendar needs
// Change calendar event colors based on string prefix
var color_basil = 'rgb(57, 125, 73)';
var color_cornflowerblue = 'rgb(100, 149, 237)';
var color_blueberry = 'rgb(64, 84, 175)';
var color_saddlebrown = 'rgb(119, 33, 32)';
var color_darkseagreen = 'rgb(143, 188, 143)';
var color_darkblue = 'rgb(23, 37, 42)';
var color_blue = 'rgb(42, 71, 82)';
var color_teal = 'rgb(58, 175, 169)';
var color_lighterTeal = 'rgb(43, 122, 120)';
var color_lightestTeal = 'rgb(222, 242, 241)';
if (arg.event.title.toLowerCase().includes('oh') ){
arg.backgroundColor = color_teal;
arg.borderColor = color_teal;
}
else if (arg.event.title.toLowerCase().includes('office hour')) {
arg.backgroundColor = color_teal;
arg.borderColor = color_teal;
}
else if (arg.event.title.toLowerCase().includes('lecture')) {
arg.backgroundColor = color_darkblue;
arg.borderColor = color_darkblue;
}
else if (arg.event.title.toLowerCase().includes('discussion')) {
arg.backgroundColor = color_lighterTeal;
arg.borderColor = color_lighterTeal;
}
else if (
arg.event.title.toLowerCase().includes('due') ||
arg.event.title.toLowerCase().includes('deadline') ||
arg.event.title.toLowerCase().includes('exam')
) {
arg.backgroundColor = color_saddlebrown;
arg.borderColor = color_saddlebrown;
}
else if (arg.event.title.toLowerCase().includes('proffice hours')) {
arg.backgroundColor = color_lightestTeal;
arg.borderColor = color_lightestTeal;
}
else {
arg.backgroundColor = color_blue;
arg.borderColor = color_blue;
}
}
function addPopup(arg) {
// Add a popup to a calendar event
//
// arg.event.extendedProps contains extra information from the Google
// Calendar event, e.g., description and location.
var element = arg.el;
var location = arg.event.extendedProps.location || '';
var description = arg.event.extendedProps.description || '';
// Remove link to Google Calendar automatically added by FullCalendar
$(element).removeAttr('href');
// Add Popup to DOM, links in the location field are clickable
// https://semantic-ui.com/modules/popup.html#/usage
//
// NOTE: overflow:scroll avoids text spilling out of the popup on iOS.
if (location.toLowerCase().startsWith('http')) {
var location_html = `<a href="${location}" target="_blank">${location}</a>`;
} else {
var location_html = `${location}<br>${description}`;
}
$(element).popup({
on: 'click',
html: `
<div class="header">${arg.event.title}</div>
<div class="content" style="overflow:auto">${location_html}</div>
`,
});
}
</script>
<script>
// Insert Google Calendar in <div id="calendar">
//
// REMINDER: update googleCalendarId each semester
//
// Uses the FullCalendar library and connects to Google Calendar
// https://fullcalendar.io/docs
// https://fullcalendar.io/docs/google-calendar
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('dualcal');
var calendar = new FullCalendar.Calendar(calendarEl, {
// Google Calendar API, DO NOT CHANGE
// https://fullcalendar.io/docs/google-calendar
googleCalendarApiKey: 'AIzaSyCR6M8NZ-KfOBZXdTcLNGcGDbOQWplqtqw',
// Google Calendar ID CHANGE THIS EACH SEMESTER
events: {
// TODO: Update this Google calendar ID based on the Google calendar URL
googleCalendarId: '[email protected]',
},
// Tool bar options. Hide "today" button on mobile to save space.
// https://fullcalendar.io/docs/headerToolbar
customButtons: {
ohbutton: {
text: 'Course Calendar',
click: function() {
var originalCalendarSource = calendar.getEventSources()[0]
originalCalendarSource.remove()
if(calendar.getEventSources().length < 1){
calendar.addEventSource({
googleCalendarId: '[email protected]',
});
}
calendar.render();
}
},
coursebutton: {
text: 'Office Hours',
click: function() {
var originalCalendarSource = calendar.getEventSources()[0]
originalCalendarSource.remove()
if(calendar.getEventSources().length < 1){
calendar.addEventSource({
googleCalendarId: '[email protected]',
});
}
calendar.render();
}
}
},
headerToolbar: {
end: isSmallScreen() ? 'prev,next ohbutton,coursebutton' : 'prev,next timeGridWeek,timeGridFourDay ohbutton,coursebutton',
},
views: {
timeGridFourDay: {
type: 'timeGrid',
duration: { days: 4 },
buttonText: '4 day'
}
} ,
height: 650,
// View options
// https://fullcalendar.io/docs/timegrid-view
initialView: isSmallScreen() ? 'timeGridDay' : 'timeGridWeek',
allDaySlot: true,
nowIndicator: true,
scrollTime: "08:00:00",
// Selectively recolor calendar events
// https://fullcalendar.io/docs/event-render-hooks
eventContent: recolorCalendarEvent,
// Add click-for-popup to calendar events
// https://fullcalendar.io/docs/event-render-hooks
eventDidMount: addPopup,
aspectRatio: isSmallScreen() ? .75 : 1.35,
});
calendar.render();
});
function recolorCalendarEvent(arg) {
// TODO: Consider updating these strings based on your Google Calendar needs
// Change calendar event colors based on string prefix
var color_basil = 'rgb(57, 125, 73)';
var color_cornflowerblue = 'rgb(100, 149, 237)';
var color_blueberry = 'rgb(64, 84, 175)';
var color_saddlebrown = 'rgb(119, 33, 32)';
var color_darkseagreen = 'rgb(143, 188, 143)';
var color_darkblue = 'rgb(23, 37, 42)';
var color_blue = 'rgb(42, 71, 82)';
var color_teal = 'rgb(58, 175, 169)';
var color_lighterTeal = 'rgb(43, 122, 120)';
var color_lightestTeal = 'rgb(222, 242, 241)';
if (arg.event.title.toLowerCase().includes('oh') ){
arg.backgroundColor = color_teal;
arg.borderColor = color_teal;
}
else if (arg.event.title.toLowerCase().includes('office hour')) {
arg.backgroundColor = color_teal;
arg.borderColor = color_teal;
}
else if (arg.event.title.toLowerCase().includes('lecture')) {
arg.backgroundColor = color_darkblue;
arg.borderColor = color_darkblue;
}
else if (arg.event.title.toLowerCase().includes('discussion')) {
arg.backgroundColor = color_lighterTeal;
arg.borderColor = color_lighterTeal;
}
else if (
arg.event.title.toLowerCase().includes('due') ||
arg.event.title.toLowerCase().includes('deadline') ||
arg.event.title.toLowerCase().includes('exam')
) {
arg.backgroundColor = color_saddlebrown;
arg.borderColor = color_saddlebrown;
}
else if (arg.event.title.toLowerCase().includes('proffice hours')) {
arg.backgroundColor = color_lightestTeal;
arg.borderColor = color_lightestTeal;
}
else {
arg.backgroundColor = color_blue;
arg.borderColor = color_blue;
}
}
function addPopup(arg) {
// Add a popup to a calendar event
//
// arg.event.extendedProps contains extra information from the Google
// Calendar event, e.g., description and location.
var element = arg.el;
var location = arg.event.extendedProps.location || '';
var description = arg.event.extendedProps.description || '';
// Remove link to Google Calendar automatically added by FullCalendar
$(element).removeAttr('href');
// Add Popup to DOM, links in the location field are clickable
// https://semantic-ui.com/modules/popup.html#/usage
//
// NOTE: overflow:scroll avoids text spilling out of the popup on iOS.
if (location.toLowerCase().startsWith('http')) {
var location_html = `<a href="${location}" target="_blank">${location}</a>`;
} else {
var location_html = `${location}<br>${description}`;
}
$(element).popup({
on: 'click',
html: `
<div class="header">${arg.event.title}</div>
<div class="content" style="overflow:auto">${location_html}</div>
`,
});
}
</script>
</body>
</html>