-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
451 lines (449 loc) · 17.6 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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!DOCTYPE html>
<html lang="en">
<head>
<title>Lake Forest Weather - Home</title>
<link async rel="stylesheet" type="text/css" href="normalize.css">
<link rel="preconnect" href="https://www.google-analytics.com">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://pagead2.googlesyndication.com">
<link rel="preconnect" href="https://ambientweather.herokuapp.com">
<link rel="preconnect" href="https://maps.darksky.net">
<link rel="preconnect" href="https://fonts.googleapis.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#0843a3"/>
<meta name="author" content="ALEEF02">
<meta name="Description" content="Your Local Weather for Lake Forest, CA. Created and Operated by ALEEF02. Get information about past, present, and future weather from stations right in Lake Forest">
<meta charset="utf-8">
<meta name="keywords" content="LF Weather, Lake Forest Weather, Lake Forest, Lake Forest California, Lake Forest California Weather, ALEEF02">
<link rel="manifest" href="manifest.json">
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="apple-touch-icon" href="weatherIcons/apple-touch-icon.png">
<link rel="apple-touch-startup-image" href="weatherIcons/apple-touch-icon.png">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<link rel="icon" sizes="16x16 32x32" href="favicon.ico">
<script async src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-52495574-19"></script>
<script defer src="https://www.gstatic.com/firebasejs/5.8.1/firebase-app.js"></script>
<script defer src="https://www.gstatic.com/firebasejs/5.8.1/firebase-database.js"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-52495574-19', {'site_speed_sample_rate': 100});
var trackOutboundLink = function(url) {
gtag('event', 'click', {
'event_category': 'outbound',
'event_label': url,
'transport_type': 'beacon',
'event_callback': function(){document.location = url;}
});
}
if ('serviceWorker' in navigator) {
console.log('Queing Worker...');
window.addEventListener('load', function() {
console.log('Registering Worker...');
navigator.serviceWorker.register('service-worker.js').then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
console.log('ServiceWorker registration failed: ', err);
gtag('event', 'exception', {
'description': ('ServiceWorker registration failed: ' + err),
'fatal': false
});
ga("gtag_UA_52495574_19.send", "event", {
eventCategory: "error",
eventAction: "ServiceWorker",
eventLabel: ('Registration failed: ' + err),
eventValue: 0
});
});
});
} else {
console.log('Browser does not support service worker');
}
</script>
<script async type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script async type="text/javascript" src="main.js"></script>
<script defer type="text/javascript" src="resizeListen.js"></script>
<!-- Adblock Detection -->
<div id="bKSMcyXAlDun">
Hi there. Thank you for choosing LFWeather as your weather provider. I run this website, ad-free and free of charge, with my motivation being the growth of the user experience. While I plan never to serve ads, your adblocker prohibits Google Analytics, which I use to track site usage. By disabling your adblocker, I can better understand and improve the user experience. I will NEVER sell any data collected. Thank you!
</div>
</head>
<body>
<h1>Lake Forest Weather</h1>
<h2>Provided by
<a href="https://aleef.dev" id="changelogLink" onclick="trackOutboundLink('https://aleef.dev'); return false;">
ALEEF02
</a>
</h2>
<div class="linksGroup">
<a class="links" href="about" role="button" name="About & FAQ">
<span>About & FAQ </span>
</a>
</div>
<div class="linksGroup" id="unitsLinksGroup">
<button class="gpsButtons" id="unitsFButton" onClick="setUnit('F', true);" role="button" name="setFahrenheit" disabled>
<span>°F </span>
</button>
<button class="gpsButtons" id="unitsCButton" onClick="setUnit('C', true);" role="button" name="setCelsius">
<span>°C </span>
</button>
<button class="gpsButtons" id="unitsKButton" onClick="setUnit('K', true);" role="button" name="setKelvin">
<span>°K </span>
</button>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<div id="currentText" class="currentText">Current Conditions - Fetching Data...</div>
<div id="errorMessage" class="errorMessage" style="display: none;">There was an error fetching the data</div>
<div class="emergencyAlerts" id="statusAlert">
<div class="emergencyAlertsTitle" id="statusAlertTitle">Operating Normally</div>
<div class="emergencyAlertsDescription" id="statusAlertDescription">There are currently no problems with LF Weather</div>
</div>
<div id="wrapfabtest">
<div class="adBanner">
</div>
</div>
<div style="position: relative;" id="widget-wrap" class="widget-wrap">
<div class="device-widget square temp" id="device-widget square temp" style="height: 200px;">
<div class="device-temp-widget">
<div class="body">
<div class="top">
<span class="device-formatted-data-point fdp tempf">
<span id="temp" class="fdp-val">00.0</span>
<span class="suff">°</span>
</span>
</div>
<div class="bottom">
<div class="device-from-yesterday">
<div class="from down">
<div class="label">Humidity</div>
<span class="device-formatted-data-point fdp tempf">
<span id="humidity" class="fdp-val">0</span>
<span class="suff">%</span>
</span>
</div>
</div>
<div>
<div class="label">Dew Point</div>
<div class="val">
<span class="device-formatted-data-point fdp tempf">
<span id="dewPoint" class="fdp-val">00.0</span>
<span class="suff" id="dewPointSym">°F</span>
</span>
</div>
</div>
<div>
<div class="label">Feels Like</div>
<div class="val">
<span class="device-formatted-data-point fdp tempf">
<span id="feelsLike" class="fdp-val">00.0</span>
<span class="suff" id="feelsLikeSym">°F</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="device-widget square wind">
<div class="wind-widget">
<div class="rel" display="none">
<div class="val maxdailygust">
<span class="device-formatted-data-point fdp windspeedmph">
<span id="windSpeed" class="fdp-val">0.0</span>
<span class="suff"> </span>
</span>
<div class="label">
<span class="device-formatted-data-point fdp windspeedmph">
<span class="fdp-val">0.0</span>
<span class="suff" id="windSpeedSym"> mph</span>
</span>
</div>
<span class="gust">
Gusts
<span class="device-formatted-data-point fdp windgustmph">
<span id="gusts" class="fdp-val">0.0</span>
<span class="suff"> </span>
</span>
</span>
<span class="max">
Max
<span class="device-formatted-data-point fdp maxdailygust">
<span id="maxWind" class="fdp-val">0.0</span>
<span class="suff" id="windMaxSym"> mph</span>
</span>
</span>
</div>
<div id="compass" class="compass" style="transform: rotate(0deg);"></div>
</div>
</div>
</div>
<div class="device-widget square pressure">
<div class="pressure-widget unit-0">
<div class="rel" display="none" style="margin: 15px auto 0px; width: 250px;">
<div id="barometerChangeWrap" class="change stable">
<img src="" class="barometerIcon" id="barometerIcon" style="display: none;" alt="Sustained">
<span class="device-formatted-data-point fdp baromrelin">
<span id="barometerChange" class="fdp-val">0.00</span>
<span class="suff"> inHg/hr</span>
</span>
</div>
<div class="images">
<span class="weatherImages">
<img src="weatherIcons/sunny.png" alt="Sunny" class="wIcon sunny">
<img src="weatherIcons/partlyCloudy.png" alt="Partly Cloudy" class="wIcon partlyCloudy">
<img src="weatherIcons/cloudy.png" alt="Cloudy" class="wIcon cloudy">
<img src="weatherIcons/rainy.png" alt="Rainy" class="wIcon rainy">
<img src="weatherIcons/thunderStorm.png" alt="Thunder" class="wIcon thunderStorm">
</span>
</div>
<div class="gauge">
<div id="barometerPointerIcon" class="compass" style="transform: rotate(-168deg);"></div>
</div>
<div class="barom">
<span class="device-formatted-data-point fdp baromrelin">
<span id="barometerINHG" class="fdp-val">00.00</span>
<span class="suff"> inHg</span>
</span>
</div>
</div>
<div class="forecastLabel">
<span>
Barometric Forecast
</span>
</div>
</div>
</div>
<div class="device-widget square rain">
<div class="rain-widget">
<div class="outer-wrap">
<div class="rainLabel">
<span>Currently: </span>
<span class="rainText" id="rainText" style="color: #FFFFEA">Not Raining</span>
</div>
<div class="rain-wrap zero">
<div class="rain-tube">
<div class="bg">
<div class="rain" style="height: 22px;"></div>
</div>
</div>
<div class="wrap">
<span class="device-formatted-data-point fdp hourlyrainin">
<span class="fdp-val" id="hourlyRain">0.00</span>
<span class="suff" id="hourlyRateSym"> in/hr</span>
</span>
<div class="label">Rate</div>
</div>
</div>
<div class="rain-wrap zero">
<div class="rain-tube">
<div class="bg">
<div class="rain" style="height: 22px;"></div>
</div>
</div>
<div class="wrap">
<span class="device-formatted-data-point fdp eventrainin">
<span class="fdp-val" id="eventRain">0.00</span>
<span class="suff" id="eventRainSym"> in</span>
</span>
<div class="label">Event</div>
</div>
</div>
<div class="rain-wrap zero">
<div class="rain-tube">
<div class="bg">
<div class="rain" style="height: 22px;">
</div>
</div>
</div>
<div class="wrap">
<span class="device-formatted-data-point fdp dailyrainin">
<span class="fdp-val" id="dailyRain">0.00</span>
<span class="suff" id="dayRainSym"> in</span>
</span>
<div class="label">Day</div>
</div>
</div>
</div>
<div class="outer-wrap" id="bottomRain">
<div class="rain-wrap zero">
<div class="rain-tube"></div>
<div class="wrap">
<span class="device-formatted-data-point fdp weeklyrainin">
<span class="fdp-val" id="weeklyRain">0.00</span>
<span class="suff"> in</span>
</span>
<div class="label">Weekly</div>
</div>
</div>
<div class="rain-wrap zero">
<div class="rain-tube"></div>
<div class="wrap">
<span class="device-formatted-data-point fdp monthlyrainin">
<span class="fdp-val" id="monthlyRain">0.00</span>
<span class="suff"> in</span>
</span>
<div class="label">Monthly</div>
</div>
</div>
<div class="rain-wrap zero">
<div class="rain-tube"></div>
<div class="wrap">
<span class="device-formatted-data-point fdp yearlyrainin">
<span class="fdp-val" id="yearlyRain">0.00</span>
<span class="suff"> in</span>
</span>
<div class="label">Yearly</div>
</div>
</div>
</div>
<div class="outer-wrap">
<div id="chart_div" style="margin-top: 5px; height: auto; width: 100%"></div>
</div>
</div>
</div>
<div class="device-widget square air" style="height: 364px;">
<div class="device-air-widget">
<div class="wrap">
<div class="meter">
<div class="needle" id="aqiNeedle" style="height: 345px; transform: rotate(-87deg);"></div>
<span class="device-formatted-data-point fdp pm25">
<span class="fdp-val" id="currentPM25">--</span>
<span class="suff">
<span>
µg/m
<sup>3</sup>
</span>
</span>
</span>
</div>
<div class="bottom">
<div class="label">
<div id="aqiLabel">----</div>
</div>
<div class="stats">
<div class="hr24">24 hr Avg:
<span class="device-formatted-data-point fdp pm25_24h">
<span class="fdp-val" id="averagePM25">----</span>
<span class="suff">
<span>
µg/m
<sup>3</sup>
</span>
</span>
</span>
</div>
<div class="hr24">Hourly Peak:
<span class="device-formatted-data-point fdp pm25">
<span class="fdp-val" id="maxPM25">----</span>
<span class="suff">
<span>
µg/m
<sup>3</sup>
</span>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<center>
<h3 id="forecastTitle" style="padding-top: 25px;">Forecast</h3>
<div id="forecastText" class="currentText"></div>
<div id="forecastContainer" class="forecastContainer" style="display: block;">
<div id="rainCurrentText" class="currentText rain">Fetching Data...</div>
<div class="linksGroup" id="forecastLinksGroup">
<button class="gpsButtons" onClick="getLocation();" role="button" name="useMyLocation">
<span>Use My Location </span>
</button>
<button class="gpsButtons" onClick="getData(false);" role="button" name="useDefaultLocation">
<span>Use Lake Forest </span>
</button>
<div class="clearfix"></div>
</div>
<div class="linksGroup" id="forecastSearchGroup">
<input aria-label="Search Location" type="text" class="weatherLocationSearchBox" id="weatherLocationSearchBox" placeholder="Search Location..." name="weatherLocationSearchBox">
<button class="gpsButtons" onClick="addressToLat();" role="button" name="weatherLocationSearchButton">
<span>Search </span>
</button>
</div>
<div id="forecastErrorMessage" class="errorMessage" style="display: none;">There was an error fetching the data</div>
<div class="emergencyAlerts" id="emergencyAlerts">
<a href="" id="emergencyAlertsLink" onclick="trackOutboundLink(''); return false;">
<div class="emergencyAlertsTitle" id="emergencyAlertsTitle"></div>
</a>
<div class="emergencyAlertsStart" id="emergencyAlertsStart"></div>
<div class="emergencyAlertsExpire" id="emergencyAlertsExpire"></div>
<div class="emergencyAlertsDescription" id="emergencyAlertsDescription"></div>
</div>
</div>
<div class="forecastContainer charts" id="futureForecastContainer">
<div class="futureRain" id="futureRain">
<div class="dailyIconWrap">
<img src="" class="dailyIcon" id="dailyIcon" style="display: none;width: 124px;" alt="Daily Icon">
</div>
<div class="highLowWrap">
<h4 id="high"></h4>
<h4 id="low"></h4>
</div>
<div class="clearfix"></div>
<h4 id="hourlySummary"></h4>
<h5 id="distanceLabel"></h5>
<div class="linksGroup" id="chartButtonsGroup" style="display: none;">
<button class="gpsButtons" id="simpleChartButton" onClick="simpleRainBuildChart(true, false);" role="button" name="simpleChart" disabled>
<span>Simple Chart </span>
</button>
<button class="gpsButtons" id="advancedChartButton" onClick="rainBuildChart(true, false);" role="button" name="advancedChart">
<span>Advanced Chart </span>
</button>
<div class="clearfix"></div>
</div>
<div id="rainChartDiv" style="margin-top: 5px; height: auto; width: 100%; margin-bottom: 30px;"></div>
</div>
<div>
<button class="collapsible">Open Hourly</button>
<div class="content">
<div id="hourlyTimelineDiv" style="margin-top: 5px; height: auto; width: 100%; margin-bottom: 30px;"></div>
</div>
</div>
<div>
<button class="collapsible">Open Daily</button>
<div class="content">
<div id="dailyTimelineDiv" style="margin-top: 5px; height: auto; width: 100%; margin-bottom: 30px;"></div>
</div>
</div>
</div>
<h3>Radar</h3>
<div id="radarContainer" class="radarContainer">
<div class="linksGroup" id="radarLoad">
<button class="gpsButtons" onClick="loadRadar();" role="button" name="loadRadar">
<span>Load Radar </span>
</button>
</div>
<iframe title="Rain Radar" id="map-embed-iframe" frameborder="0" height="0px" width="100%" src=""></iframe>
</div>
<div class="credits">
<p>
Version 3.8.2:
<a href="https://github.com/ALEEF02/lfweather/releases" id="changelogLink" onclick="trackOutboundLink('https://github.com/ALEEF02/lfweather/releases'); return false;">
Changelog
</a>
</p>
</div>
<div class="ad2hs-prompt bounceInUp" style="">
<h5>Try Lake Forest Weather on your homescreen as an app!</h5>
<div class="promptButtonWrap">
<div class="addButton btn">Add</div>
<div class="dismissButton btn">Not Now</div>
</div>
</div>
</center>
<noscript>Please enable Javascript on your device to view the weather!</noscript>
</body>
</html>