-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·332 lines (272 loc) · 11.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Bent Creek Loops - Choose Your Adventure!</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Add custom CSS here -->
<link href="css/shop-item.css" rel="stylesheet">
<!-- leaflet js/css -->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.1/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.1/leaflet.js"></script>
<!-- bent creek loop js -->
<script src="js/bcl.js"></script>
<style>
#map { position:relative; width:100%; height: 467px; }
#map-sub1 { position:relative; top:0; bottom:0; width:250px; height: 75px; }
#map-sub2 { position:relative; top:0; bottom:0; width:250px; height: 75px; }
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47315207-1', 'yonderhub.github.io');
ga('send', 'pageview');
</script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#home">Bent Creek Loops</a>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="well well-lg">
<h2 class="text-center" >Create Do</h3>
<h2 class="text-center">Share</h3>
<hr>
<form class="form-horizontal" role="form">
<div class="form-group">
<label for="iDistance" class="control-label">
Total distance
</label>
<input type="number" class="form-control" id="iDistance"
placeholder="Maximum Distance">
</div>
<div class="form-group">
<label for="sStartPT" class="control-label">
Starting at:
</label>
<select id="sStartPT" class="form-control">
<option value="2526" >Rice Pinacle Parking Area</option>
<option value="14985" >Hard Times Parking Area</option>
<option value="15099" >Ledford Branch Parking Area</option>
</select>
</div>
<!--
<div class="form-group">
<label for="sFeature" class="control-label">
Including a:
</label>
<select iDistance="sFeature" class="form-control " disabled="">
<option>Downhill</option>
<option>Climb</option>
<option>Waterfall</option>
<option>View</option>
</select>
</div>
-->
<hr>
<div class="form-group">
<button type="button" id="bLoop" class="btn btn-primary " onclick="BCL.createloop($('#sStartPT').val(),$('#iDistance').val())">
Create Loop
<span class="glyphicon glyphicon-exclamation-sign"></span>
</button>
</div>
</form>
<h3>What is this?</h3>
<p>
Ever wanted to create a new loop in Bent Creek based on a distance?
Well here it is, a simple web app that takes a distance, a staring point,
and a feature - downhill, climb, or view. Click Create Loop and viola you have a loop!
Then get out and Hike, Bike, or Run.
</p>
<p>
Give it try tell us what your think!
</p>
</div><!-- /well -->
<!--
<div class="well">
<h3>What is this?</h3>
<p>
Ever wanted to create a new loop in Bent Creek based on a distance?
Well here it is, a simple web app that takes a distance, a staring point,
and a feature - downhill, climb, or view. Click Create Loop and viola you have a loop!
Then get out and Hike, Bike, or Run.
</p>
<p>
Give it try tell us what your think!
</p>
</div>
-->
</div>
<div class="col-md-8">
<div class="thumbnail">
<div id='map'>
<img class="img-responsive" src="http://placehold.it/748x467" alt="">
</div>
<div class="caption-full">
<h4 class="pull-right"><span id="theDistance">0</span> miles</h4>
<h4><a href="#" id="theLoopName">No Loops Yet</a></h4>
<p><span id="theTrails">No Loops enter criteria on left to start creating your loop</span></p>
</div>
<!--
<div class="ratings">
<p class="pull-right">3 reviews</p>
<p>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
4.0 stars
</p>
</div>
-->
</div>
<!--
<div class="well">
<div class="text-left">
<h4>Addtional options:</h4>
</div>
<hr>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
Option 2
<span class="pull-right text-primary">9.5 miles</span>
</h4>
</div>
<div class="panel-body">
<div class="media">
<a class="pull-left" href="#">
<div id='map-sub1'>
<img class="media-object" src="http://placehold.it/250x75" alt="...">
</div>
</a>
<div class="media-body">
option 2 includes trail 1, trail 2, trail 3...
</div>
</div>
</div>
</div>
<hr>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
Option 3
<span class="pull-right text-primary">11.1 miles</span>
</h4>
</div>
<div class="panel-body">
<div class="media">
<a class="pull-left" href="#">
<div id='map-sub2'>
<img class="media-object" src="http://placehold.it/250x75" alt="...">
</div>
</a>
<div class="media-body">
option 3 includes trail 1, trail 2, trail 3...
<p><em>Downhill,Climb</em></p>
</div>
</div>
</div>
</div>
<hr>
<div class="text-right">
<a class="btn btn-success">More options <span class="glyphicon glyphicon-chevron-down"></span></a>
</div>
</div>
<div class="well">
<h3>Review - comming soon!</h3>
<div class="text-right">
<a class="btn btn-success">Leave a Review</a>
</div>
<hr>
<div class="row">
<div class="col-md-12">
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
Anonymous <span class="pull-right">10 days ago</span>
<p>Awesome Route!</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12">
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
Anonymous <span class="pull-right">12 days ago</span>
<p>Did this one, never thought to do it like this.</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12">
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star"></span>
<span class="glyphicon glyphicon-star-empty"></span>
Anonymous <span class="pull-right">15 days ago</span>
<p>Wow!</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<hr>
<footer>
<div class="row">
<div class="col-lg-12">
<p>Copyright © YonderHub 2013 | Choose Your Adventure!</p>
</div>
</div>
</footer>
</div>
-->
<!-- JavaScript -->
<script src="js/jquery-1.10.2.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/bootstrap.js"></script>
<script>
var map = L.map('map').setView([35.4900, -82.6300], 14);
L.tileLayer('http://api.tiles.mapbox.com/v3/daveism.gk7mbi1f/{z}/{x}/{y}.png', {
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>;Loops by YonderHub',
maxZoom: 18
}).addTo(map);
var mapsub1 = L.map('map-sub1').setView([35.4900, -82.6300], 14);
L.tileLayer('http://api.tiles.mapbox.com/v3/daveism.gk7mbi1f/{z}/{x}/{y}.png', {
attribution: '',
maxZoom: 18
}).addTo(mapsub1);
var mapsub2 = L.map('map-sub2', 'examples.map-9d0r2yso').setView([35.4900, -82.6300], 14);
L.tileLayer('http://api.tiles.mapbox.com/v3/daveism.gk7mbi1f/{z}/{x}/{y}.png', {
attribution: '',
maxZoom: 18
}).addTo(mapsub2);
</script>
</body>
</html>