-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_googlecalendar_eq_res.html
81 lines (59 loc) · 3.58 KB
/
index_googlecalendar_eq_res.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
<html>
<head>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous" ></script>
<script src="js/jqueryAIO.min.js" defer></script>
<script src="https://unpkg.com/mqtt/dist/mqtt.min.js" type="text/javascript"></script>
</head>
<body>
<div style="font-size:2.2em;text-align:center;width:1000px;margin-bottom:5px">Maker Hub Equipment Reservations</div>
<div style="font-size:1.2em;text-align:center;width:1000px;margin-bottom:5px">See Staff to Make a Reservation</div>
<div class="calendar"></div>
<div class="doorbellcontainer"></div>
<div class="aiomessagecontainer"></div>
<div class="addtome"></div>
<script type="text/javascript">
$(function(){
function placeCalendar(){
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth();
month=month+1;
if (month < 10)
month = "0" + month;
var day= date.getDate();
if (day < 10)
day = "0" + day;
var datestring=year+month+day;
//https://calendar.google.com/calendar/embed?showNav=0&showPrint=0&&mode=DAY&showTabs=0&showCalendars=0&showTz=0&showTitle=0&showDate=0&mode=WEEK&dates="+datestring+"/"+datestring+"&height=1240&wkst=1&bgcolor=%23FFFFFF&src=georgetown.edu_i0bt8dt9hb0gbcsueu21tko9cs%40group.calendar.google.com&color=%2329527A&ctz=America%2FNew_York
//\"https://www.google.com/calendar/b/0/embed?showTitle=0&showPrint=0&showCalendars=0&showTz=0&mode=DAY&dates="+datestring+"/"+datestring+"&height=440&wkst=2&hl=en_GB&bgcolor=%23ffffff&src=[YOUR CALENDAR URL];color=%238C500B&ctz=Europe%2FBerlin\"
//<iframe src="https://calendar.google.com/calendar/embed?src=georgetown.edu_i0bt8dt9hb0gbcsueu21tko9cs%40group.calendar.google.com&ctz=America%2FNew_York" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
// $(".calendar").html("<iframe scrolling=\"yes\" src=\"https://calendar.google.com/calendar/embed?output=embed&showNav=0&showPrint=0&&mode=DAY&showTabs=0&showCalendars=0&showTz=0&showTitle=0&showDate=0&mode=WEEK&dates="+datestring+"/"+datestring+"&height=1240&wkst=1&bgcolor=%23FFFFFF&src=georgetown.edu_i0bt8dt9hb0gbcsueu21tko9cs%40group.calendar.google.com&color=%2329527A&ctz=America%2FNew_York\" style=\" border-width:0 \" width=\"1200\" height=\"880\" frameborder=\"0\" scrolling=\"no\"></iframe>");
$(".calendar").html('<iframe src="https://calendar.google.com/calendar/embed?showTitle=0&showNav=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&mode=DAY&height=1240&wkst=1&bgcolor=%23FFFFFF&src=georgetown.edu_i0bt8dt9hb0gbcsueu21tko9cs%40group.calendar.google.com&color=%23711616&ctz=America%2FNew_York" style="border-width:0" width="1200" height="880" frameborder="0" scrolling="no"></iframe>');
}
// setupAIOMessageContainer(".aiomessagecontainer");
$(".doorbellcontainer").aioAlert({
group : "MakerHubEvents",
feedname : "backdoorbell",
fontcolor : "black",
textOverride : "DOORBELL",
bordercolor : "#F0004E",
bgcolor1 : "red",
bgcolor2 : "yellow"
});
$(".aiomessagecontainer").aioAlert({
group : "MakerHubEvents",
feedname : "signagemessage",
fontcolor : "black",
bordercolor : "#F0004E",
bgcolor1 : "lightgreen",
bgcolor2 : "green"
});
placeCalendar();
setInterval(placeCalendar, 60000);
});
</script>
</body>
</html>