forked from chainfire21/Project1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
191 lines (168 loc) · 8.01 KB
/
index.html
File metadata and controls
191 lines (168 loc) · 8.01 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Eco Status</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Changa|Josefin+Slab|Rancho" rel="stylesheet">
<!-- Compressed CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.0-rc.3/dist/css/foundation.min.css"
integrity="sha256-b2khkeAav/7kTh0Bs5h1Xw1kqGL56SziJ5zk6bEvnAw= sha384-7nP0F9FVCI9Qg1SfsjHWQd+4ksCAxlF5pibRyPGxwn7NJpu1XuSaOoMh8JHIDSdk sha512-Rcgo7Zj9clxZoGtt4CBj1aEtCL9gBd64nYl3hkKEuWDwtK7hKY6c4D5vL4njDseuz31u1WWSM42SbvYe/3CZYQ=="
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/style.css" />
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
</head>
<body>
<div class="grid-container">
<div class="reveal" id="sign-up" data-reveal>
<form id="signup-form">
<input type="text" placeholder="Email" id="signupEmail">
<br>
<input type="text" placeholder="Password" id="signupPassword">
<br>
<button class="button" type="submit" data-close="sign-up">create</button>
</form>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="reveal" id="sign-in" data-reveal>
<form id="login-form">
<input type="text" placeholder="Email" id="loginEmail">
<br>
<input type="text" placeholder="Password" id="loginPassword">
<br>
<button class="button" type="submit" data-close="sign-in">login</button>
</form>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="reveal" id="sign-out" data-reveal>
signed out
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="page-border">
<div class="grid-x grid-margin-y align-middle">
<div class="cell small-4">
<div id="city-state" class="validate">
<form id="search-form">
<input class="typeahead drop-shadow" id="input-location" type="text" title="City Name, 2-Digit State or Country"
pattern="^[A-Za-z ]+(?:,?\s+)[A-Za-z]{2,}$" placeholder="City Name, State">
<button id="location-submit" type="submit" class="success button">Go</button>
</form>
</div>
<button id="fav-button" type="button" class="success button">Add Favorite</button>
<button id="remove-button" type="button" class="success button">Remove</button>
<!-- dropdown -->
<div class="hide">
<select id="fav-select" onchange="selectFav()">
<option disabled selected>Favorites</option>
</select>
</div>
</div>
<header class="cell small-4">
<h1 class="text-center cell">Eco Status</h1>
</header>
<div class="cell small-4 text-right">
<div id="loggedin"></div>
<button class="button success" data-open="sign-up" id="sign-up-btn">Sign Up</button>
<button class="button success" data-open="sign-in" id="sign-in-btn">Sign In</button>
<button class="button success" data-open="sign-out" id="sign-out-btn">Sign Out</button>
</div>
</div>
<div class="grid-x grid-margin-y">
<div class="cell" id="map-area">
<div class="cell drop-shadow" id="map"></div>
</div>
</div>
</div>
<div class="reveal text-center" id="error-modal" data-reveal>
<p class="lead">Im sorry, we could not find that city.</p>
<button id="close-modal" class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="grid-x grid-margin-x grid-margin-y">
<div class="cell" id="pollu">
<h2>Pollution level</h2>
<div id="pollu"><h3></h3></div>
</div>
<div class="grid-x grid-margin-x grid-margin-y">
<div class="cell" id="searches">
<h2>Recent Searches</h2>
</div>
<div class="cell auto">
<div class="card drop-shadow">
<div class="card-divider">
Air Pollution: 120 AQI
</div>
<div id="favMap1"></div>
</div>
</div>
<div class="cell auto">
<div class="card drop-shadow">
<div class="card-divider">
Air Pollution: 200 AQI
</div>
<div id="favMap2"></div>
</div>
</div>
<div class="cell auto">
<div class="card drop-shadow">
<div class="card-divider">
Air Pollution: 100 AQI
</div>
<div id="favMap3"></div>
</div>
</div>
<div class="cell auto">
<div class="card drop-shadow">
<div class="card-divider">
Air Pollution: 223 AQI
</div>
<div id="favMap4"></div>
</div>
</div>
</div>
<div class="grid-x">
<div class="cell">
<h2>Historical Data</h2>
</div>
<div class="cell" id="historical-data">
</div>
</div>
</div>
<!-- jQuery must be imported before Foundation -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<!-- Compressed Foundation JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.0-rc.3/dist/js/foundation.min.js" integrity="sha256-l1HhyJ0nfWQPdwsVJLNq8HfZNb3i1R9M82YrqVPzoJ4= sha384-NH8utV74bU+noXiJDlEMZuBe34Bw/X66sw22frHkgIs8R1QKWc8ckxYB4DheLjH4 sha512-JMs3Y+JjY+DhwVOPeJhkLM/0FeK9ANxvuYiHGpGp7Q2kMlmNEN/2v6TkrXdirxqB3DHxPlQ8iMxvb/eSPCF5CA=="
crossorigin="anonymous"></script>
<!-- users -->
<script src="./assets/js/login.js"></script>
<!-- Function for generating air pollution triangles -->
<script src="./assets/js/showAir.js"></script>
<!-- Generate Google Maps maps -->
<script src="./assets/js/initMap.js"></script>
<!-- Google Maps API -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA1cMSk9b4rKrqw74cT7mgOoV0OyY_VEHc&callback=initMaps"
async defer></script>
<!-- Javascript for city and states -->
<script src="./assets/js/cityState.js"></script>
<!-- Javascritp for typeahead from Jquery -->
<script src="./assets/js/typeahead.js"></script>
<!-- Javascript for abbreviation of states -->
<script src="./assets/js/stateAbbr.js"></script>
<!-- D3 Link -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<!-- Javascript for historical data -->
<script src="./assets/js/historicalData.js"></script>
<!-- Javascript Logic -->
<script src="./assets/js/logic.js"></script>
</body>
</html>