-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathschedule.html
59 lines (49 loc) · 2.24 KB
/
schedule.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
<!--
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base href="">
<title>Google Santa Tracker Schedule</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Lobster|Roboto&subset=all">
<link rel="stylesheet" href="sass/santatracker.css">
</head>
<body style="padding: 20px; overflow: auto">
<h1>Schedule</h1>
<ul id="schedule" style="padding: 10px; background: #fff; list-style: none;"></ul>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="js/houses.js"></script>
<script>
var loc = location.href;
var pageUrl = loc.substr(0, loc.lastIndexOf('/schedule.html'));
for (var i = 0; i < HOUSES.length; i++) {
var house = HOUSES[i];
var module = house.module;
var date = house.launchDate;
var t = date.getTime() - 10 * 1000; // Minus 10 seconds so we can watch the house open
var url = pageUrl + '/?timestamp_override=' + t;
var dom = $('<li>' + date + ' - ' + module +
': Tracker <a href="' + url + '#village">Village</a> - <a href="' + url + '#' + module + '">Scene</a></li>');
$('#schedule').append(dom);
}
var t = new Date('2014/12/24 20:59:39').getTime();
var url = pageUrl + '/?timestamp_override=' + t;
var dom = $('<li">30 seconds before take off: <a href="' + url + '#village">Village</a></li>');
$('#schedule').append(dom);
var t = new Date('2014/12/24 21:00:39').getTime();
var url = pageUrl + '/?timestamp_override=' + t;
var dom = $('<li>30 seconds after take off: <a href="' + url + '#village">Village</a></li>');
$('#schedule').append(dom);
</script>
</body>
</html>