-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
66 lines (66 loc) · 2.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Should I ride?</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body id="app">
<div class="container">
<div class="nav">
<div class="location"><img src="img/location.svg" alt="location icon"><span id="location">charlotte</span><span id="zip"></span></div>
<div class="settings" id="settings" onclick="togglePreferences()"><img src="img/settings.svg" alt="location icon"></div>
</div>
<div class="weather">
<div class="weather-details">
<h1 class="decision fallin" id="decision">Should I ride?</h1>
</div>
<div id="weather-metrics" class="weather-details">
<div class="weather-part">
<div class="temp"><span id="temp">--</span>°</div>
<div class="high-low-temp"><span id="low-temp">--</span>° | <span id="high-temp">--</span>°</div>
</div>
<div class="weather-part">
<div>
<img class="condition-icon" id="condition-icon" src="" alt="">
</div>
<div class="condition"><span id="condition">--</span></div>
</div>
<div class="weather-part">
<div class="precip"><span id="pop">--</span><span class="superscript">%</span></div>
<div class="precip-label">precip</div>
</div>
</div>
<!-- <div class="weather-details">
<div class="weather-part">
<div class="daylight">4h 30m</div>
<div class="daylight-left">light left</div>
</div>
<div class="weather-part">
<div class="wind-condition"><span id="wind-description"></span>light winds</div>
<div class="wind-speed"><span id="wind-speed">11</span>-<span id="wind-gust">12</span> mph</div>
</div>
</div> -->
</div>
<div class="footer">
<div><span id="observed-time"></span</div>
</div>
</div>
<div id="pref-container" class="pref-container prefs-hidden"></div>
<div id="pref" class="pref prefs-hidden">
<div class="form">
<h1>I'll ride if...</h1>
<p>it's above <span id="min-temp-value"></span>°F</p>
<input type="range" min="0" max="80" step="5" value="50" class="temp-slider" id="min-temp">
<p>it's below <span id="max-temp-value"></span>°F</p>
<input type="range" min="60" max="130" step="5" value="100" class="temp-slider" id="max-temp">
<p>there's less than a <span id="max-precip-value"></span>% change of rain</p>
<input type="range" min="10" max="100" step="10" value="30" class="temp-slider" id="max-precip">
<button onclick="togglePreferences();recalculateWithNewPrefs();" id="calculate-with-prefs-button">Should I ride?</button>
</div>
</div>
<script src="js/numchi.js"></script>
<script src="js/app.js"></script>
</body>
</html>