-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
89 lines (69 loc) · 2.98 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
<!DOCTYPE html>
<html>
<head>
<link href="css/clock.css" rel="stylesheet" type="text/css">
<link href="css/alarm.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8">
<title>JS Clock</title>
</head>
<body onload="getTime();setOptions();getTemp();">
<h3 class="name">
Tim's Clock
</h3>
<div id="clock"></div>
<br>
<img id="forecastIcon"></img>
<div id="alarmContainer">
<div id="alarmHeader" class="flexable">
<h2>Alarms</h2>
<input type="button" class="button" value="Add Alarm" onclick="showAlarmPopup();"/>
</div>
<div id="noAlarmsSet"><br>No Alarms Set</div>
<div id="alarms"></div>
</div>
<div id="mask" class="hide"></div>
<div id="popup" class="hide">
<h1>Add Alarm</h1>
<div id="timeContainer">
<select id="hours"></select> <!-- dynamically set with setOptions() -->
<select id="mins"></select> <!-- dynamically set with setOptions() -->
<select id="ampm">
<option>am</option>
<option>pm</option>
</select>
</div>
<input type="text" id="alarmName" placeholder="Alarm Name"/>
<div class="flexable">
<input type="button" class="button" value="Cancel" onclick="hideAlarmPopup();"/>
<input type="button" class="button" value="Save Alarm" onclick="addAlarm();"/>
</div>
</div>
<br>
<!--
Below we include the Login Button social plugin. This button uses
the JavaScript SDK to present a graphical Login button that triggers
the FB.login() function when clicked.
-->
<span id="loginButton">
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();">
</fb:login-button>
</span>
<div id="userName"></div>
<br>
<div id="forecastLabel"></div>
<div id="city">Loading location...</div>
<script src="//cdn.optimizely.com/js/2507791631.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="http://www.parsecdn.com/js/parse-1.3.4.min.js" type="text/javascript"></script>
<script src="js/clock.js" type="text/javascript"></script>
<script src="js/fbLogin.js" type="text/javascript"></script>
<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-60127713-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>