-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.shtml
More file actions
199 lines (190 loc) · 6.18 KB
/
index.shtml
File metadata and controls
199 lines (190 loc) · 6.18 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Is UMBC Open?</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="Check whether UMBC is currently open for classes and find out about delays and closings." />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59800982-1', 'auto');
ga('send', 'pageview');
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
<script src="cast.js"></script>
<style type="text/css">
.download {
font-weight: 900;
font-size: 25px;
padding: 0px;
}
.dialog-confirm {
font-size: normal;
padding: 0px;
}
.ui-dialog {
background: white;
border-style: solid;
border-width: 2px;
}
.okbutton {
margin: 5px;
background-color:#4467cf;
vertical-align: bottom;
border-radius:6px;
border:2px solid #000000;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:arial;
font-size:20px;
height: 40px;
padding:5px 20px;
text-decoration:none;
text-shadow:0px 1px 0px #2f6627;
}
.okbutton:hover {
background-color:#442abf;
}
.okbutton:active {
position:relative;
top:1px;
}
.nobutton {
margin: 5px;
vertical-align: bottom;
background-color:#cccccc;
border-radius:6px;
border:2px solid #000000;
display:inline-block;
cursor:pointer;
color:#000000;
font-family:arial;
font-size:14px;
width: 160px;
height: 40px;
padding:0px 20px;
text-decoration:none;
}
.nobutton:hover {
background-color:#bbbbbb;
}
.nobutton:active {
position:relative;
top:1px;
}
.ui-dialog-titlebar {
background: white;
border: none;
}
.no-close .ui-dialog-titlebar-close {
display: none;
}
.paw {
color: #000;
position: relative;
cursor: pointer;
background-image: url("/myumbc-sprites.png");
background-position: -512px -160px;
background-repeat: no-repeat;
overflow: hidden;
display: inline-block;
height: 32px;
width: 32px;
vertical-align: top;
position: fixed;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
text-align: center;
border-color: gray;
}
.paw .count {
position: absolute;
bottom: 2px;
left: 3px;
font-size: 12px;
font-weight: bold;
color: #000;
cursor: pointer;
text-align: center;
font-family: Arial;
line-height: 1.24;
border-spacing: 2px;
border-color: gray;
}
</style>
<script type="text/javascript">
function bigger() {
document.getElementById("isopen").style.fontSize = (parseFloat(document.getElementById("isopen").style.fontSize) * 1.2) + "pt";
}
</script>
</head>
<body style="text-align: center; padding-top: 200px; background-color: #ffffff;">
<div id="dialog-confirm" class="dialog-confirm" style="display: none;">
Want to visit an incomplete version of <br />
our website where you <b>can't zoom?</b> <br />
<div class="download">DOWNLOAD OUR APP!</div>
</div>
<a id="isopen" style="font-weight: bold; font-size: 200pt; font-family:
Avenir, sans-serif; text-decoration: none; color: #000000; padding: 0; user-select: none;" onclick="bigger();">
<!--#include virtual="/state.txt" -->
</a>
<div id="detail" style="font-weight: bold; font-size: 40pt; font-family: Avenir, sans-serif; text-decoration: none; color: #000000; padding: 0; font-variant: small-caps;"><!--#include virtual="/detail.txt" --></div>
<!--<div id="shameless-plug" style="font-size: 24pt; font-family: Avenir, sans, sans-serif;"><a href="http://shouldumbcbeopen.com/">Help track the state of UMBC's paths!</a></div>-->
<script type="text/javascript">
$(function() {
if (navigator.userAgent.indexOf("Android") != -1) {
$("#dialog-confirm").show();
$( "#dialog-confirm" ).dialog({
dialogClass: "no-close",
resizable: false,
height:150,
width:300,
modal: true,
buttons: [
{
text: "OK",
"class": 'okbutton',
click: function() {
location.href = "https://play.google.com/store/apps/details?id=com.isumbcopen.android";
}
},
{
text: "No, but ask me again every time",
"class": 'nobutton',
click: function() {
$( this ).dialog( "close" );
}
}
]
});
}
if (document.referrer && document.referrer.indexOf("umbc.edu") != -1) {
var i = 0;
var interval = setInterval(function() {
$("<span>").addClass("count").addClass("first").addClass("last").text(""+(i+1)).appendTo($("<a>").addClass("paw").attr("id", "paw-" + i).attr('href','/paws/').css({left: Math.random() * $(document).width(), top: -40, transform: 'rotate('+((Math.random()-.5)*720)+'deg)'}).data('rand', Math.random() - .5).animate({top: $(document).height()+15, opacity: .1}, {
duration: 500 + Math.random() * 5000,
// easing: "swing",
step: function(n,fx) {
if (fx.prop == "opacity" && Math.abs(n-.1) < .00001) $(this).remove();
}
}).appendTo($(document.body)));
if (++i >= <!--#include virtual="/paws.txt" -->) {
clearInterval(interval);
}
}, 80);
}
});
</script>
<br />
<div id="castbutton">
<img id="casticon" style="visibility:hidden;" src="idle.png" onclick="launchApp()" onmouseover="this.src='hover.png'" onmouseout="this.src='idle.png'" width=80 height=60/>
</div>
</body>
</html>