-
Notifications
You must be signed in to change notification settings - Fork 0
/
Target-Hack-FrontEnd.html
232 lines (184 loc) · 7.72 KB
/
Target-Hack-FrontEnd.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
231
232
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Bootstrap Template -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Expect More, Wait Less </title>
<!-- Bootstrap Latest compiled and minified CSS
< Source: getbootstrap.com/getting-started -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Bootstrap Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<link rel="stylesheet" href="Target-Hack-FrontEnd.css">
</head>
<body>
<nav class="navbar navbar-fixed-top navbar-default" id="mainNav">
<a class="navbar-brand"> Navigate </a>
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#top"> Home </a>
</li>
<li class="nav-item">
<a class="nav-link" href="#intro"> About </a>
</li>
</ul>
</nav>
<div class="jumbotron other-color">
<div class="container">
<div class="row">
<div class="col-md-4">
<img src="target-logo1.png" align= "left">
</div>
<div class="col-md-8" id="jumboText">
<h1> Expect More, Wait Less <small id="catchPhrase">Spend less time in line </small></h1>
</div>
<div id="drop-down">
<select name="hours">
<option value="sevenAM">7 A.M.</option>
<option value="eightAM">8 A.M.</option>
<option value="nineAM">9 A.M.</option>
<option value="tenAM">10 A.M.</option>
<option value="elevenAM">11 A.M.</option>
<option value="twelvePM">12 P.M.</option>
<option value="onePM">1 P.M.</option>
<option value="twoPM">2 P.M.</option>
<option value="threePM">3 P.M.</option>
<option value="fourPM">4 P.M.</option>
<option value="fivePM">5 P.M.</option>
<option value="sixPM">6 P.M.</option>
<option value="sevenPM">7 P.M.</option>
<option value="eightPM">8 P.M.</option>
<option value="ninePM">9 P.M.</option>
<option value="tenPM">10 P.M.</option>
<option value="elevenPM">11 P.M.</option>
</select>
<button type="submit" class="btn btn-default">Find store</button>
</div>
</div>
<!-- <div id="map" ></div> -->
</div>
</div>
<!--
<div class="jumbotron other-color">
<h1> Expect More, Wait Less <small> Spend less time in line </small></h1>
<div class="wrapper">
<div id="drop-down">
<select name="hours">
<option value="sevenAM">7 A.M.</option>
<option value="eightAM">8 A.M.</option>
<option value="nineAM">9 A.M.</option>
<option value="tenAM">10 A.M.</option>
<option value="elevenAM">11 A.M.</option>
<option value="twelvePM">12 P.M.</option>
<option value="onePM">1 P.M.</option>
<option value="twoPM">2 P.M.</option>
<option value="threePM">3 P.M.</option>
<option value="fourPM">4 P.M.</option>
<option value="fivePM">5 P.M.</option>
<option value="sixPM">6 P.M.</option>
<option value="sevenPM">7 P.M.</option>
<option value="eightPM">8 P.M.</option>
<option value="ninePM">9 P.M.</option>
<option value="tenPM">10 P.M.</option>
<option value="elevenPM">11 P.M.</option>
</select>
<button type="submit" class="btn btn-default">Find store</button>
</div>
-->
<!--
<div class="form-group">
<input type="text" class="form-control" placeholder="Enter Zip Code">
</div>
<button type="submit" class="btn btn-default">Find store</button>
</div>
-->
</div>
<div id="body">
<div id="map" ></div>
</div>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 12
});
var infoWindow = new google.maps.InfoWindow({map: map});
// Try HTML5 geolocation.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var pos = {
lat: position.coords.latitude,
lng: position.coords.longitude
};
//infoWindow.setPosition(pos);
//infoWindow.setContent('Location found.');
map.setCenter(pos);
var home = new google.maps.Marker({
position: {lat: position.coords.latitude, lng: position.coords.longitude},
map: map,
icon: pinImageHOME,
title: 'Home'
});
}, function() {
handleLocationError(true, infoWindow, map.getCenter());
});
} else {
// Browser doesn't support Geolocation
handleLocationError(false, infoWindow, map.getCenter());
}
var pinColorBEST = "00FF00";
var pinImageBEST = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColorBEST,
new google.maps.Size(21, 34),
new google.maps.Point(0,0),
new google.maps.Point(10, 34));
var pinColorREG = "FE7569";
var pinImageREG = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColorREG,
new google.maps.Size(21, 34),
new google.maps.Point(0,0),
new google.maps.Point(10, 34));
var pinImageHOME = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|000000",
new google.maps.Size(21, 34),
new google.maps.Point(0,0),
new google.maps.Point(10, 34));
var marker1 = new google.maps.Marker({
position: {lat: 45.0044664, lng: -93.2315656},
map: map,
icon: pinImageBEST,
title: 'Brighton'
});
// infoWindow.setPosition({lat: 45.00450000, lng: -93.235});
// infoWindow.setContent('Best Target');
var marker2 = new google.maps.Marker({
position: {lat: 44.9820453, lng: -93.235701},
map: map,
icon: pinImageREG,
title: 'FifthStreet'
});
var marker3 = new google.maps.Marker({
position: {lat: 44.949411, lng: -93.2370545},
map: map,
icon: pinImageREG,
title: 'Lake'
});
var marker4 = new google.maps.Marker({
position: {lat: 44.9749685, lng: -93.2742589},
map: map,
icon: pinImageREG,
title: 'Nicollet'
});
}
function handleLocationError(browserHasGeolocation, infoWindow, pos) {
infoWindow.setPosition(pos);
infoWindow.setContent(browserHasGeolocation ?
'Error: The Geolocation service failed.' :
'Error: Your browser doesn\'t support geolocation.');
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAAzivmuALt3pxr6235skezostTvaIFp04&callback=initMap"
async defer></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAAzivmuALt3pxr6235skezostTvaIFp04&callback=initMap"
async defer></script>
</body>
</html>