forked from luesjo12/Weatherscan
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaeris.php
More file actions
181 lines (138 loc) · 5.02 KB
/
aeris.php
File metadata and controls
181 lines (138 loc) · 5.02 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
<!DOCTYPE html>
<html>
<?php
$cache = 0;
$cacheStr = '?baxza33';
if ($cache==0) $cacheStr = '?' . date('l jS \of F Y h:i:s A');
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Weatherscan</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link media="screen" type="text/css" rel="stylesheet" href="//cdn.aerisjs.com/aeris-interactive/assets/css/default/style.css">
<link media="screen" type="text/css" rel="stylesheet" href="//api.tiles.mapbox.com/mapbox.js/v2.2.1/mapbox.css">
<link rel="stylesheet" href="css/style.css<?=$cacheStr ?>" />
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="//api.tiles.mapbox.com/mapbox.js/v2.2.1/mapbox.js"></script>
<script type="text/javascript" src="//cdn.aerisjs.com/aeris-interactive/aim-leaflet.js"></script>
<script type="text/javascript" src="js/jplayer/jquery.jplayer.min.js"></script>
<script src="http://cdn.date-fns.org/v2.0.0-alpha0/date_fns.min.js"></script>
<script type="text/javascript" src="js/utils.js<?=$cacheStr ?>"></script>
<script type="text/javascript" src="js/audio.js<?=$cacheStr ?>"></script>
<script type="text/javascript" src="js/groupull.js<?=$cacheStr ?>"></script>
<script type="text/javascript" src="js/dataManager.js<?=$cacheStr ?>"></script>
<script type="text/javascript" src="js/loops.js<?=$cacheStr ?>"></script>
<script type="text/javascript" src="js/weather.js<?=$cacheStr ?>"></script>
<div id="main" class="container">
<img id="template" src="images/template-4k.png" />
<div id="info-slides">
<div class="info-slide radar-slide">
<div class="info-header">
<div>Local Doppler Radar
<div class="radar-color-legend">Past 3 Hours<br>Light <img src="images/precip-legend.png" alt="Past 3 Hours" /> Heavy</div>
</div>
</div>
<div id="radar-1" class="map"></div>
</div>
</div>
<div id="date-time">
<div id="date"></div>
<div id="time"></div>
</div>
<div id="city"></div>
<div id="conditions-icon"></div>
<div id="current-conditions">
<div id="now">now</div>
<div id="current-temp"></div>
<div id="current-info"></div>
</div>
<div id="minimap-title">PAST 3 HOURS</div>
<div id="minimap"></div>
<div id="logo-area"><img src="images/midco_logo.png"/></div>
<div id="forecast-shadow">
<div id="forecast-header">
<div id="forecast-city"></div><div id="forecast-title"></div>
</div>
<div id="forecast-text"><div>Retrieving forecast data...</div></div>
<div id="forecast-tiles"></div>
</div>
<div id="marquee1" class="marquee">
<div id="marquee-container">
<div id="marquee-now"><span class="track-info"></span></div>
<!--div id="marquee-tonight"></div-->
</div>
</div>
<img id="arrow-img" src="images/NOW.png<?=$cacheStr ?>"/>
<div id="marquee2" class="marquee"><div>
You are watching an emulation of the Weatherscan IntelliStar system. Weatherscan is a digital cable and satellite television network that is owned by a consortium owned in turn by NBCUniversal and investment firms The Blackstone Group and Bain Capital. A spinoff of The Weather Channel, Weatherscan features uninterrupted local weather information in graphical format on a continuous loop that is generated by an IntelliStar unit installed at the cable provider's headend; unlike The Weather Channel, Weatherscan does not feature on-air talent of any kind.
</div></div>
</div>
<script type="text/javascript">
$(function() {
// set your mapbox access token
L.mapbox.accessToken = 'pk.eyJ1Ijoic3dhbGRuZXIiLCJhIjoiY2o4ZGpjcnVvMHBhazMzcDVnanZmd2lobCJ9.Kr5329g4YyZIlnYfHNXRWA';
var aerisMapBuilder = new aeris.interactive.MapAppBuilder({
apiId: 'G99TzbQi5wXjWSLq7U0x3',
apiSecret: 'wHjpONXg3Nlhh2u2GJuibDhRZWEcs5mMFsT6vuJd',
el: '#radar-1',
modules: {
map: {
baseLayer: new aeris.maps.layers.MapBox({
mapBoxId: 'swaldner.306d8456' //'swaldner.4158bce2' //'swaldner.306d8456'
})
},
animation: {
speed: 100,
futureSpeed: 200,
from: new Date(Date.now() - 3600 * 4 * 1000),
to: new Date(Date.now()),
useBigTimeline: false,
boundsMenu:{
min: [
{
value: 1000 * 60 * 60,
label: '1 hour ago'
},
{
value: 1000 * 60 * 60 * 2,
label: '2 hours ago'
},
{
value: 1000 * 60 * 60 * 3,
label: '3 hours ago'
}
],
max: [
{
value: 1000 * 60 * 60,
label: 'next 1 hour'
},
{
value: 1000 * 60 * 60 * 2,
label: 'next 2 hours'
},
{
value: 1000 * 60 * 60 * 3,
label: 'next 3 hours'
}
]
}
}
}
//}
});
aerisMapBuilder
.start()
.done(function() {
$('i.aeris-playIcon.aeris-icon-play').click();
console.log('Aeris Interactive Maps is initialized.');
})
.fail(function(err) {
console.error(err);
});
});
</script>
</body>
</html>