-
Notifications
You must be signed in to change notification settings - Fork 2
/
dashboard.html
230 lines (207 loc) · 9.39 KB
/
dashboard.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="shortcut icon" type="image/jpg" href="./assets/images/favicon-16x16.png" />
<title>Powder Bound</title>
<!-- LEAFLET -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ=="
crossorigin="" />
<!-- FONTAWESOME ICONS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" />
<!-- BULMA -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" />
<!-- GOOGLE FONTS -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./assets/css/profile.css" />
<link rel="stylesheet" href="./assets/css/index.css" />
<link rel="stylesheet" href="./assets/css/dashboard.css" />
</head>
<body class="hero is-fullheight">
<!-- DESKTOP / TABLET BULMA BREAKPOINT USING THE IS HIDDEN MOBILE CLASS -->
<header>
<div class="is-flex is-justify-content-space-between header is-hidden-mobile">
<a class="button header-button is-info" href="./index.html">Go Back</a>
<p class="title mb-1">Powder Bound</p>
<button class="button header-button is-info" id="profile-button-desktop">
Profile
</button>
</div>
<!-- MOBILE BULMA BREAKPOINT USING THE IS HIDDEN TABLE BREAKPOINT -->
<div class="is-flex header is-hidden-tablet">
<p class="title mb-1">Powder Bound</p>
<div class="is-flex is-justify-content-space-between">
<a class="button header-button is-info" href="./index.html">Go Back</a>
<button class="button header-button is-info" id="profile-button-mobile">
Profile
</button>
</div>
</div>
<div class="is-flex is-justify-content-center">
<h1 class="sub-title dashboard-title" id="skiAreaName">
My Fav Resort
</h1>
</div>
</header>
<main>
<div class="tile is-ancestor">
<div class="tile is-12">
<!-- POW METER WRAPPER -->
<div class="tile is-parent is-3 is-vertical ml-2 mr-1 custom-mobile-margin">
<article id="powmeter-wrapper"
class="tile is-child notification is-info custom-tile custom-mobile-margin custom-opacity">
<p class="subtitle">pow meter</p>
<div class="content powMeterSection">
<section id="snowConditions">
<h3 class="powText">Snow Conditions</h3>
<label class="powText" id="lblDate"></label><br />
<label class="powText" id="lblSNOTELName"></label><br />
<label class="powText" id="lblElevation"></label><br />
<label class="powText" id="lblDistance"></label><br />
<label class="powText" id="lblSnowDepth"></label><br />
<label class="powText" id="lblChangeInSnowDepth"></label><br />
<label class="powText" id="lblAirTemperature"></label><br />
<figure class="is-image is-square">
<img id="powMeterImage" src="./assets/images/loading-v2.gif" />
</figure>
</section>
</div>
</article>
<!-- STATIC MAP WRAPPER -->
<article id="staticmap-wrapper"
class="tile is-child notification is-info custom-tile custom-mobile-margin custom-opacity">
<p class="subtitle">Map</p>
<section class="mapSection" id="mapArea">
<img id="staticMap" />
</section>
<i class="fa fa-arrows-alt has-text-white is-size-4 full-screen" aria-hidden="" id="full-screen-icon"></i>
</article>
</div>
<!-- DIRECTIONS WRAPPER -->
<div id="directions-wrapper " class="tile is-parent ml-1 mr-2 custom-mobile-margin custom-opacity">
<article class="tile is-child box notification is-info custom-tile">
<p class="subtitle">Directions</p>
<form>
<input id="txtStartAddress" type="text" class="input" placeholder="Address or Coordinates" required />
<div class="inputParent is-fullwidth">
<input id="txtStartDate" type="date" class="input mr-1" required />
<input id="txtStartTime" type="time" class="input ml-1" value="09:00" required />
</div>
<button id="btnUpdate" class="button updateButton is-fullwidth">
Update
</button>
</form>
<section class="box table-container custom-table" id="drivingDirections">
<table class="table is-fullwidth">
<thead>
<!-- <tr>
<th class="has-text-centered" colspan="5">
<a id="gmDirections" class="button updateButton" target="blank">Google Map Directions</a>
</th>
</tr> -->
<tr>
<th id="tdArrivalTime" colspan="2"></th>
<th id="tdTotalTime"></th>
<th id="tdTotalDistance" colspan="2"></th>
</tr>
<tr>
<th>#</th>
<th>Directions</th>
<th>Time</th>
<th>Distance</th>
<th>Map</th>
</tr>
</thead>
<tbody id="tblDirections"></tbody>
</table>
</section>
<footer class="p-0">
<a id="gmDirections" class="button updateButton m-auto" target="blank">Google Map Directions</a>
</footer>
</article>
</div>
<!-- WEATHER WRAPPER -->
<div class="tile is-parent is-3 ml-1 mr-2 custom-mobile-margin custom-opacity" id="weather-wrapper">
<article class="tile is-child box notification is-info custom-tile">
<p class="subtitle">weather</p>
<!-- WEATHER CONTENT -->
<!-- TAB NAVIGATION -->
<div class="box">
<div class="tabs is-toggle is-fullwidth is-medium m-2">
<ul class="m-0">
<li class="is-active daily" id="daily-tab">
<a class="daily all-custom-tab-color">
<span class="icon is-small daily"><i class="fas fa-calendar" aria-hidden="true"></i></span>
<span class="subtitle2">Daily</span>
</a>
</li>
<li class="hourly" id="hourly-tab">
<a class="hourly all-custom-tab-color">
<span class="icon is-small hourly"><i class="fas fa-hourglass" aria-hidden="true"></i></span>
<span class="subtitle2">Hourly</span>
</a>
</li>
</ul>
</div>
<div class="columns is-desktop mt-2" id="custom-weather-container">
<div class="row" id="weather-elements">
<!-- WEATHER CONTENT -->
</div>
</div>
</div>
</article>
</div>
</div>
</div>
</main>
<!-- VALIDATION MODAL -->
<div class="modal custom-font" id="validation-modal">
<div class="modal-background"></div>
<div class="modal-card" style="width: 350px">
<header class="modal-card-head">
<p class="modal-card-title custom-letter-spacing" id="modal-title">
Modal title
</p>
<button class="delete" id="close-modal" aria-label="close"></button>
</header>
<section class="modal-card-body">
<p id="modal-body">Content</p>
</section>
<footer class="modal-card-foot">
<button class="button is-success delete-button hide" id="delete-button">
Delete
</button>
<button class="button cancel-button hide" id="cancel-button">
Cancel
</button>
</footer>
</div>
</div>
<!-- MOMENT -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/moment.min.js"></script>
<!-- JQUERY Library -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- JQUERY UI -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!-- LEAFLET -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-BB3hKbKWOc9Ez/TAwyWxNXeoV9c1v6FIeYiBieIWkpLjauysF18NzgR1MBNBXf8/KABdlkX68nAhlwcDFLGPCQ=="
crossorigin=""></script>
<!-- <script src="./assets/js/testAutoComplete.js"></script>
<script src="./assets/js/testDirectionsData.js"></script>
<script src="./assets/js/testWeatherData.js"></script> -->
<script src="./assets/js/config.js"></script>
<script src="./assets/js/utils.js"></script>
<script src="./assets/js/skiAreas.js"></script>
<script src="./assets/js/stations.js"></script>
<script src="./assets/js/snotel.js"></script>
<script src="./assets/js/weather.js"></script>
<script src="./assets/js/dashboard.js"></script>
</body>
</html>