-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexploreedit.html
More file actions
322 lines (264 loc) · 16.6 KB
/
exploreedit.html
File metadata and controls
322 lines (264 loc) · 16.6 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
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html>
<head>
<title>AllerGPS - Explore</title>
<!-- Metadata tags for browsers-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Tyler Duckworth" />
<meta name="Resource-type" content="Document" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Favicon Code-->
<link rel="icon" type="image/gif" href="img/pin_drop.gif" />
<!--Google Fonts-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:thin">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif">
<!--CSS-->
<link rel="stylesheet" href="libs/wowjs/animate.css">
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.css' rel='stylesheet' />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.1/mapbox-gl-geocoder.css' type='text/css' />
<link rel="stylesheet" type="text/css" href="css/general.css"/>
<link href="//cdn.rawgit.com/noelboss/featherlight/1.7.12/release/featherlight.min.css" type="text/css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!--JavaScript-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
<script src="//cdn.rawgit.com/noelboss/featherlight/1.7.12/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js'></script>
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.1/mapbox-gl-geocoder.min.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<style>
body { margin:0; padding:0; }
#map { width:100%;height:45rem; }
.explore {
padding-top: 5em;
}
.pc:hover {
cursor: pointer;
}
.che {
align-content: center;
margin-top:-1%;
background-color: rgba(255, 255, 255, 0.5);
}
.pic {
width: 5%;
height: 5%;
}
#buttons {
width: 40%;
margin-left:20%;
margin-right:20%;
}
.grades {
font-size: 200%;
}
@media only screen and (max-width: 1100px) {
.pl-4 {
padding-left:5rem!important;
}
.pl-5 {
padding-left:5.5rem!important;
}
.grades {
font-size:150%;
}
.che {
align-content: center;
margin-top:-2%;
background-color: rgba(255, 255, 255, 0.5);
}
.pic {
width: 20%;
height: 20%;
}
.ints {
margin-top:1em;
width: 10em;
margin-left:30%;
height:3em;
margin-right: 50%;
}
.int {
margin-top:1em;
margin-left:30%;
width: 10em;
height:3em;
}
#buttons {
padding-top: 1em;
padding-left: 0em;
margin-left: 0em;
}
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$(".button-collapse").sideNav();
});
</script>
</head>
<!--
There are many classes and IDs used in this website.
The class 'wow' denotes WOW.js, followed by the animation of choice, including 'fadeIn,' 'fadeInDown', or 'fadeUp' along with variables changing length and delay
ID 'fullpage', subsequent class 'section', and other markers ['section0', 'section1', etc.] denote the section of the page that will be affected by fullPage.js, in this case, everything but the navbar
Class 'sec1' denotes the main text in each of the slides on this page and the About page. It can be seen at Line 222 of general.css.
The Bootstrap classes 'col', 'mx-auto', and 'd-block' are used to correctly space the navbar and the footer.
The Bootstrap class 'col' and 'row' are also used to correctly space images and text.
In this file:
The 'intro' class is a general color and font-weight style for the text in this page. For more info, see Line 116-119 of general.css
-->
<body class="bod">
<!--Navbar, fixed and mobily enabled-->
<nav class="thing hones">
<div class="nav-wrapper">
<div class="row navth">
<a href="#" data-activates="mobile-demo" class="button-collapse mobars"><i class="fa fa-bars fa-4 mobars" aria-hidden="true"></i></a>
<h1 class="hones logo links navy col mx-auto d-block wow fadeInDown" data-wow-duration="3s" style="text-align:center;"><a href="index.html" class="as">Home</a></h1>
<h1 class="col hones links navy mx-auto d-block wow fadeInDown" data-wow-duration="2s" data-wow-delay="1s" style="text-align:center;"><a href="#" class="as">Explore</a></h1>
<h1 class="col hones links navy mx-auto d-block wow fadeInDown" data-wow-duration="2s" data-wow-delay="2s" style="text-align:center;"><a href="other/about.html" class="as">About</a></h1>
</div>
<!--Mobile Pullout Navbar-->
<ul class="side-nav sidle" id="mobile-demo" style="background-color:#7791C2;">
<li><h1 class="hones logo link" style="text-align:center;"><a href="index.html" class="as mobil">Home</a></h1></li>
<li><h1 class="hones link" style="text-align:center;"><a href="#" class="as mobil">Explore</a></h1></li>
<li><h1 class="hones link" style="text-align:center;"><a href="other/about.html" class="as mobil">About</a></h1></li>
</ul>
</div>
</nav>
<!--
Start of webpage content.
-->
<div class="explore">
<div class="che center">
<!--Instructions on how to work the website are made possible with the FeatherLight.js library. FeatherLight creates amazing LightBox effects on elements..-->
<!--Buttons that trigger the plots on the map. Each allergy is specific to each button-->
<button data-featherlight="#inst" class="int">Instructions</button>
<div id="buttons" class="row">
<img src="img/markers/nuts.png" id="nuts" class="pc pic"/>
<img src="img/markers/peanutlarge.png" id="peanuts" class="pc pic"/>
<img src="img/markers/wheatlarge.png" id="wheat" class="pc pic"/>
<img src="img/markers/seafoodlarge.png" id="seafood" class="pc pic"/>
<img src="img/markers/dairylarge.png" id="dairy" class="pc pic"/>
</div>
<button id="clear" class="ints">Clear</button>
</div>
<!--This div holds the map. The map will be instantiated in search.js.-->
<div id='map'></div>
<!--
This section serves to explain how we grade our restaurants and deem them graphable.
To see this in action, look at allergps.json.
In the future, we hope to add an inverse graphing function, where it graphs all of the restaurants that one CAN'T go to.
-->
<div class="grading">
<h1 class="grades wow fadeIn" data-wow-duration="1.5s" style="font-size: 300%;">What grading system do we use for our restaurants?</h1>
<div class="row grade">
<p class="col wow fadeInDown">0</p>
<p class="col wow fadeInDown" data-wow-delay="1.5s" data-wow-duration="1s">1</p>
<p class="col wow fadeInDown" data-wow-delay="2.5s" data-wow-duration="1s">2</p>
<p class="col wow fadeInDown" data-wow-delay="3.5s" data-wow-duration="1s">3</p>
<p class="col wow fadeInDown" data-wow-delay="4.5s" data-wow-duration="1s">4</p>
<p class="col wow fadeInDown" data-wow-delay="4.5s" data-wow-duration="1s">5</p>
</div>
<p class="grades wow fadeInUp padsides" data-wow-delay="5.5s" style="padding-bottom:2em;">We use a custom-made grading system for each of the restaurants <br />to allow you to scale how safe it is to eat there.
The resturant are scaled in a system from 1-5,<br /> similar to DefCon with 1 being the safest and 5 being the most hazardous. <br /></p>
</div>
<!--Footer-->
<div class="section mobfo" id="section5 section-footer" style="background-color:#7791C2;">
<div class="intro">
<div class="row" style="color:#F9F7F7;">
<!--First column-->
<div class="col-md-4">
<h5 class="title mb-2 mt-0 pt-4 pb-3 font-bold wow fadeInDown">AllerGPS</h5>
<p class="wow fadeIn" data-wow-delay="1s" data-wow-duration="1s">Our Mission: To make the experience of finding food easier for those with allergies.
</p>
</div>
<hr class="clearfix w-100 d-md-none">
<!--Second column-->
<div class="col-md-2 mx-auto">
<h5 class="title mb-2 mt-0 pt-4 pb-3 pl-4 ml-4 font-bold wow fadeInDown" data-wow-delay="1.5s" style="text-align:center">Navigation</h5>
<ul>
<li style="color:white;" class="navg wow fadeIn" data-wow-delay="1.75s" data-wow-duration="1s"><a href="index.html" style="color:white;">Home</a></li>
<li style="color:white;" class="navg wow fadeIn" data-wow-delay="2s" data-wow-duration="1s"><a href="#" style="color:white;">AllerSearch</a></li>
<li style="color:white;" class="navg wow fadeIn" data-wow-delay="2.25s" data-wow-duration="1s"><a href="other/about.html" style="color:white;">About Us</a></li>
</ul>
</div>
<hr class="clearfix w-100 d-md-none">
<!--Third column-->
<div class="col-md-2 mx-auto">
<h5 class="title mb-2 mt-0 pt-4 pb-3 pl-5 ml-4 font-bold wow fadeInDown others" data-wow-delay="2.5s">Other</h5>
<ul>
<li style="color:white;" class="navg wow fadeIn" data-wow-delay="2.75s" data-wow-duration="1s"><a href="other/terms.html" style="color:white;">Terms of Use</a></li>
<li style="color:white;" class="navg wow fadeIn" data-wow-delay="3s" data-wow-duration="1s"><a href="other/privacy.html" style="color:white;">Privacy Policy</a></li>
<li style="color:white;" class="navg wow fadeIn" data-wow-delay="3.25s" data-wow-duration="1s"><a href="other/privacy.html#sixthPage/1" style="color:white;">Contact Us</a></li>
<li style="color:white;" class="navg wow fadeIn" data-wow-delay="3.5s" data-wow-duration="1s"><a href="https://goo.gl/forms/dtnMAdgdxDjXvuH03" style="color:white;">Help</a></li>
</ul>
</div>
</div>
</div>
<hr width="75%">
<!--Copyright-->
<div class="footer-copyright my-copy" style="color:#F9F7F7;">
<div class="container-fluid wow fadeInUp" data-wow-delay="4s" style="vertical-align:middle;">
Ⓒ 2018 Copyright: AllerGPS Inc.
</div>
</div>
</div>
</div>
<!--This div holds the FeatherLight content that the button Instructions displays.-->
<div id="quickSlide">
<div class="lightbox" id="inst">
<div class="instruct">
<h1 style="font-size: 200%;text-align:center;">Instructions</h1>
<ol style="padding-left:5em">
<li><p style="font-size: 150%">Click the Geolocate button in the top right hand corner of the map.</p></li>
<li><p style="font-size: 150%">Click one of the buttons. If you can't see anything, zoom out.</p></li>
<li><p style="font-size: 150%">Feel free to stack allergies on top of each other to see what restaurants share traits.</p></li>
<li><p style="font-size: 150%">If you can't see an allergy, press the Clear button and press the allergy's button again!</p></li>
</ol>
</div>
</div>
</div>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<!--Links to the GeoJSON and JSON files that contain geographic data.
GeoJSON Sample:
{
"type": "Feature",
"properties": {
"title": "Sweet P's Downtown Dive", <-- The name of the restaurant for the popup to display
"tel": "(865) 281-1738", <-- The telephone number of the restaurant at that location
"category": "restaurant",
"address": "410 W Jackson Ave" <-- The address of the restaurant at that location
},
"place_name": "Sweet P's Downtown Dive, 410 W Jackson Ave, Knoxville, Tennessee 37902, United States",
"geometry": {
"type": "Point",
"coordinates": [
-83.921701, <--\ These numbers are longitude and latitude that we use to plot the point on the map.
35.967979 <--/
]
}
},
-->
<script src="markers/allergps.json"></script>
<script src='markers/markers.js'></script>
<script src='markers/peanuts.js'></script>
<script src='markers/dairy.js'></script>
<script src='markers/wheat.js'></script>
<script src='markers/seafood.js'></script>
<!--
search.js is the main script that creates the map and more.
If you want to know more, see the full documentation in search.js
-->
<script src="js/search.js"></script>
<!--Essential WOW.js code that enables all of the when-visible animations-->
<script src="libs/wowjs/wow.js"></script>
<script>
new WOW().init();
</script>
</body>
</html>