-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
385 lines (324 loc) · 12.7 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
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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<!DOCTYPE html>
<html>
<head>
<title>Built By Cody Zazulak</title>
<script type="text/javascript" src='js/jquery-2.1.0.js'></script>
<script type="text/javascript" src='js/stellar.js'></script>
<script type="text/javascript" src='js/easing.js'></script>
<script type="text/javascript" src='js/waypoints.js'></script>
<script type="text/javascript" src='js/main.js'></script>
<script type="text/javascript" src='nivo-slider/jquery.nivo.slider.js'></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
function initialize() {
var theirLatLng = new google.maps.LatLng(49.264184, -123.024240);
var newLatLng = new google.maps.LatLng(49.267559, -123.145486);
var newestLatLng = new google.maps.LatLng(49.315876, -123.099030);
var centerLatLng = new google.maps.LatLng(49.293612, -123.091853);
var mapOptions = {
zoom: 13,
center: centerLatLng,
zoomControl: false,
streetViewControl: false,
overviewMapControl: false,
panControl: false,
scaleControlOptions: false,
scrollwheel: false
}
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
//firstLocation
var contentString1 = '<div id="content">'+
'<div id="siteNotice">'+
'</div>'+
'<h4 id="firstHeading" class="firstHeading">Brian Jessel BMW</h4>'+
'<div id="bodyContent">'+
'</div>'+
'</div>';
var infowindow = new google.maps.InfoWindow({
content: contentString1
});
var theirMarker = new google.maps.Marker({
position: theirLatLng,
map: map,
animation: google.maps.Animation.DROP,
title: 'Starbucks'
});
google.maps.event.addListener(theirMarker, 'click', function() {
infowindow.open(map,theirMarker);
});
//secondLocation
var contentString2 = '<div id="content">'+
'<div id="siteNotice">'+
'</div>'+
'<h4 id="firstHeading" class="firstHeading">The BMW Store</h4>'+
'<div id="bodyContent">'+
'</div>'+
'</div>';
var infowindow2 = new google.maps.InfoWindow({
content: contentString2
});
var newMarker = new google.maps.Marker({
position: newLatLng,
map: map,
animation: google.maps.Animation.DROP,
title: 'Meat & Bread'
});
google.maps.event.addListener(newMarker, 'click', function() {
infowindow2.open(map,newMarker);
});
//lastLocation
var contentString3 = '<div id="content">'+
'<div id="siteNotice">'+
'</div>'+
'<h4 id="firstHeading" class="firstHeading">Park Shore BMW</h4>'+
'<div id="bodyContent">'+
'</div>'+
'</div>';
var infowindow3 = new google.maps.InfoWindow({
content: contentString3
});
var newestMarker = new google.maps.Marker({
position: newestLatLng,
map: map,
animation: google.maps.Animation.DROP,
title: 'Water St. Cafe'
});
google.maps.event.addListener(newestMarker, 'click', function() {
infowindow3.open(map,newestMarker);
});
infowindow.open(map,theirMarker);
infowindow2.open(map,newMarker);
infowindow3.open(map,newestMarker);
// Try HTML5 geolocation
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var pos = new google.maps.LatLng(position.coords.latitude,
position.coords.longitude);
var infowindow = new google.maps.InfoWindow({
map: map,
position: pos,
content: 'Your Location'
});
map.setCenter(centerLatLng);
}, function() {
handleNoGeolocation(true);
});
} else {
// Browser doesn't support Geolocation
handleNoGeolocation(false);
}
}
function handleNoGeolocation(errorFlag) {
if (errorFlag) {
var content = 'Error: The Geolocation service failed.';
} else {
var content = 'Error: Your browser doesn\'t support geolocation.';
}
var options = {
map: map,
position: new google.maps.LatLng(60, 105),
content: content
};
var infowindow = new google.maps.InfoWindow(options);
map.setCenter(options.position);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
$('#slider2').nivoSlider();
$('#slider3').nivoSlider();
$('#slider4').nivoSlider();
});
</script>
<script type="text/javascript" src='js/instafeed.js'>></script>
<script type="text/javascript">
var feed = new Instafeed({
get: 'tagged',
tagName: 'mpower',
clientId: '9adfdeb82a644586af20f5454760b76f',
template: '<img src="{{image}}" />',
limit: 32
});
feed.run();
</script>
<link rel="stylesheet" type="text/css" href="nivo-slider/nivo-slider.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<nav>
<ul class="navigation">
<li data-slide='1'><a href="#">BMW</a></li>
<li data-slide='2'><a href="#">M3</a></li>
<li data-slide='3'><a href="#">M4</a></li>
<li data-slide='4'><a href="#">M5</a></li>
<li data-slide='5'><a href="#">M6</a></li>
<li data-slide='6'><a href="#">Map</a></li>
<li data-slide='7'><a href="#">Fans</a></li>
<li data-slide='8'><a href="#">Outro</a></li>
</ul>
</nav>
<div class="main">
<!-- Title page -->
<div class="slide" id="slide1" data-slide='1' data-stellar-background-ratio='0.5'>
<div class="container">
<div class="row">
<div class="upfront"><h1>The Ultimate Driving Machine</h1></div>
</div>
</div>
<span class="glyphicon glyphicon-chevron-down button" data-slide='2' title=""></span>
</div>
<!-- M3 -->
<div class="slide" id="slide2" data-slide='2' data-stellar-background-ratio='0.5'>
<div class="container">
<div class="row">
<div><h1 class="m6" style="font-style: italic; font-weight: bold;">
<font style="color: rgb(70, 130, 255);">/</font><font style="color: rgb(0, 25, 70);">/</font><font style="color: rgb(255, 5, 20);">/</font>M3</h1></div>
</div>
</div>
<div id="slider" class="nivoSlider">
<img src="img/s2pics/1.jpg" alt="" />
<img src="img/s2pics/2.jpg" alt="" />
<img src="img/s2pics/3.jpg" alt="" />
</div>
<div class="container">
<div class="row">
<div class="infoBox">
<h2>430 Hp / Inline 6 Engine</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h2>0-60 Mp/h: 4.4s</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h5>MSRP: $84,000</h5>
</div>
</div>
</div>
<span class="glyphicon glyphicon-chevron-down button" data-slide='3' title=""></span>
</div>
<!-- M4 -->
<div class="slide" id="slide3" data-slide='3' data-stellar-background-ratio='0.5'>
<div class="container">
<div class="row">
<div><h1 class="m6" style="font-style: italic; font-weight: bold;"><font style="color: rgb(70, 130, 255);">/</font><font style="color: rgb(0, 25, 70);">/</font><font style="color: rgb(255, 5, 20);">/</font>M4</h1></div>
</div>
</div>
<div id="slider2" class="nivoSlider">
<img src="img/s3pics/1.jpg" alt="" />
<img src="img/s3pics/2.jpg" alt="" />
<img src="img/s3pics/3.jpg" alt="" />
</div>
<div class="container">
<div class="row">
<div class="infoBox">
<h2>430 Hp / Inline 6 Engine</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h2>0-60 Mp/h: 4.3s</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h5>MSRP: $85,000</h5>
</div>
</div>
</div>
<span class="glyphicon glyphicon-chevron-down button" data-slide='4' title=""></span>
</div>
<!-- M5 -->
<div class="slide" id="slide4" data-slide='4' data-stellar-background-ratio='0.5'>
<div class="container">
<div class="row">
<div><h1 class="m6" style="font-style: italic; font-weight: bold;"><font style="color: rgb(70, 130, 255);">/</font><font style="color: rgb(0, 25, 70);">/</font><font style="color: rgb(255, 5, 20);">/</font>M5</h1></div>
</div>
</div>
<div id="slider3" class="nivoSlider">
<img src="img/s4pics/1.jpg" alt="" />
<img src="img/s4pics/2.jpg" alt="" />
<img src="img/s4pics/3.jpg" alt="" />
</div>
<div class="container">
<div class="row">
<div class="infoBox">
<h2>560 Hp / V8 Engine</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h2>0-60 Mp/h: 4.3s</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h5>MSRP: $109,000</h5>
</div>
</div>
</div>
<span class="glyphicon glyphicon-chevron-down button" data-slide='5' title=""></span>
</div>
<!-- M6 -->
<div class="slide" id="slide5" data-slide='5' data-stellar-background-ratio='0.5'>
<div class="container">
<div class="row">
<div><h1 class="m6" style="font-style: italic; font-weight: bold;"><font style="color: rgb(70, 130, 255);">/</font><font style="color: rgb(0, 25, 70);">/</font><font style="color: rgb(255, 5, 20);">/</font>M6</h1></div>
</div>
</div>
<div id="slider4" class="nivoSlider">
<img src="img/s5pics/1.jpg" alt="" />
<img src="img/s5pics/2.jpg" alt="" />
<img src="img/s5pics/3.jpg" alt="" />
</div>
<div class="container">
<div class="row">
<div class="infoBox">
<h2>560 Hp / V8 Engine</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h2>0-60 Mp/h: 4.1s</h2>
</div>
</div>
<div class="row">
<div class="infoBox">
<h5>MSRP: $119,000</h5>
</div>
</div>
</div>
<span class="glyphicon glyphicon-chevron-down button" data-slide='6' title=""></span>
</div>
<!-- MAPS Page -->
<div class="slide slide6" data-slide='6'><div id="map-canvas"></div><span class="glyphicon glyphicon-chevron-down button" data-slide='7' title=""></span>
</div>
<!-- Insta Page -->
<div class="slide slide7" data-slide='7'>
<div id="instafeed" class="gallery"></div>
<span class="glyphicon glyphicon-chevron-down button" data-slide='8' title=""></span>
</div>
<!-- END Page -->
<div class="slide" id="slide8" data-slide='8' data-stellar-background-ratio='0.5'>
<h1 class="centerBig" data-stellar-ratio='3'>See You On The Road!</h1>
<!-- Social Container Start -->
<div class="socialButtons" data-stellar-ratio='5'>
<ul class="social">
<li class="facebook"><a href="https://www.facebook.com/codyzazulak" class="entypo-facebook"></a></li>
<li class="twitter"><a href="https://twitter.com/CodyZazulak" class="entypo-twitter"> </a></li>
<li class="github"><a href="https://github.com/codyzazulak1" class="entypo-github"> </a></li>
<li class="linked-in"><a href="http://www.linkedin.com/in/codyzazulak1" class="entypo-linkedin"> </a></li>
</ul>
</div>
<!-- Social Container End -->
<span class="glyphicon glyphicon-chevron-up button" data-slide='1' title=""></span>
</div>
</div>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
</body>
</html>