-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
133 lines (126 loc) · 6.09 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>☔️Ark</title>
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>
<link rel='stylesheet' href='./assets/fontawesome-subset/css/all.min.css'>
<link rel="stylesheet" href="./assets/style.css">
<link rel="stylesheet" href="./assets/style.icons.css">
<link rel="stylesheet" href="./assets/style.night.css">
</head>
<body>
<div class="container-fluid">
<header class="row">
<div class="col py-3 px-4 d-flex justify-content-between align-items-center">
<h1 class="m-0 fs-3"><i class="fal fa-umbrella"></i> Ark</h1>
<button class="btn btn-outline-primary border-0" id="open-settings"><i class="fal fa-cog fa-fw fa-lg"></i><span class="sr-only">Settings</span></button>
</div>
</header>
<!-- START WEATHER DISPALY -->
<main class="row my-5">
<div class="col px-0">
<!-- START CURRENT CONDITIONS -->
<div class="px-4">
<div id="ark-location" class="ark-data-skeleton my-3 text-center"> </div>
<div id="ark-current-description" class="ark-data-skeleton my-3 text-center"> </div>
<div id="ark-current-temp" class="ark-data-skeleton my-3 mx-auto text-center"> </div>
<div class="text-center my-3">
<div id="ark-current-hilow" class="ark-data-skeleton d-inline-flex align-items-center justify-content-around">
<span class="me-2">Low: </span>
<span id="ark-current-temp-low"> </span>
<span class="ms-4 me-2">High: </span>
<span id="ark-current-temp-high"> </span>
</div>
</div>
<div id="ark-status" class="ark-data-skeleton text-sm text-center text-faded my-3">
Last updated
<span id="ark-request-time"> </span>
<button class="btn btn-sm btn-outline-primary border-0 align-middle" id="ark-get-weather">
<i class="far fa-redo"></i>
<span class="sr-only">Update Weather</span>
</button>
</div>
</div>
<!-- END CURRENT CONDITIONS -->
<!-- START DAILY FORECAST -->
<div id="ark-hourly-forecast" class="mt-5 pb-3">
</div>
<!-- END DAILY FORECAST -->
<!-- START DAILY FORECAST -->
<div id="ark-daily-forecast" class="mt-5">
</div>
<!-- END DAILY FORECAST -->
</div>
</main>
<!-- END SETTINGS PANEL -->
<!-- START SETTINGS PANEL -->
<aside id="settings" class="container-fluid">
<header class="row">
<div class="col py-3 px-4 d-flex justify-content-between align-items-center">
<h1 class="m-0 fs-3">Settings</h1>
<button class="btn btn-outline-primary border-0" id="close-settings">
<i class="fal fa-times fa-fw fa-lg"></i>
<span class="sr-only">Close Settings</span>
</button>
</div>
</header>
<div class="row">
<div class="col px-4">
<form id="settings">
<div class="row my-3">
<label for="weather-api-key" class="col-sm-5 col-form-label">Weather API Key</label>
<div class="col-sm-7">
<div class="input-group input-group-sm">
<input type="text" class="form-control" id="weather-api-key" name="weather-api-key" size="15">
<button class="btn btn-outline-primary" id="weather-api-key-set">Set</button>
</div>
</div>
</div>
<div class="row my-3">
<label for="geocode-api-key" class="col-sm-5 col-form-label">LocationIQ API Key</label>
<div class="col-sm-7">
<div class="input-group input-group-sm">
<input type="text" class="form-control" id="geocode-api-key" name="geocode-api-key" size="15">
<button class="btn btn-outline-primary" id="geocode-api-key-set">Set</button>
</div>
</div>
</div>
<div class="row my-3">
<label for="apikey" class="col-sm-5 col-form-label">Units</label>
<div class="col-sm-7">
<div class="btn-group" role="group">
<input class="btn-check" type="radio" name="unit" id="fahrenheit" value="imperial" autocomplete="off">
<label class="btn btn-sm btn-outline-primary" for="fahrenheit">°F</label>
<input class="btn-check" type="radio" name="unit" id="celsius" value="metric" autocomplete="off">
<label class="btn btn-sm btn-outline-primary" for="celsius">°C</label>
</div>
</div>
</div>
<div class="row my-3">
<label for="apikey" class="col-sm-5 col-form-label">Location</label>
<div class="col-sm-7">
<div class="input-group input-group-sm">
<span class="input-group-text">Lat</span>
<input type="text" class="form-control" id="location-lat" name="location-lat" size="15">
<span class="input-group-text">Lon</span>
<input type="text" class="form-control" id="location-lon" name="location-lon" size="15">
</div>
</div>
</div>
<div class="row my-3">
<label for="apikey" class="col-sm-5 col-form-label">Clear stored data</label>
<div class="col-sm-7">
<button class="btn btn-sm btn-outline-danger" id="clear-info">Clear Data</button>
</div>
</div>
</form>
</div>
</div>
</aside>
<!-- END SETTINGS PANEL -->
</div>
<script src="./assets/script.js"></script>
</body>
</html>