-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (41 loc) · 1.22 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
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="1800" >
<meta name="theme-color" content="#000000">
<base href="/x-weather/">
<link rel="manifest" href="./manifest.json">
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link href="./src/globalStyles.css" rel="stylesheet">
<title>XWeather</title>
<script>
window.addEventListener('DOMContentLoaded', () => {
// refresh every half hour
window.setTimeout(() => {
window.location.reload(true)
}, 30 * 60 * 1000)
})
</script>
</head>
<body>
<x-weather
appid="NOT_A_REAL_APP_ID"
host="api.openweathermap.org"
latitude="49.2406"
longitude="-98.5375"
placename="Manitou, Manitoba"
>
<x-current primaryscale="c"></x-current>
<x-forecast days="14" primaryscale="c"></x-forecast>
</x-weather>
<script type="module">
import { defineCustomElements } from './dist/esm/defineCustomElements.js'
defineCustomElements()
</script>
<script type="module">
import registerServiceWorker from './service-worker/registerServiceWorker.js'
registerServiceWorker(document.querySelector('base').href.slice(0, -1))
</script>
</body>
</html>