-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (63 loc) · 3.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vacation Planner Map</title>
<meta name="description" content="Vacation planning map application. A single-page application featuring a map of a future vacation spot.">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" defer></script>
<script src="js/bootstrap.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.1/knockout-min.js" defer></script>
<script src="js/api/wiki.js" defer></script>
<script src="js/api/google.js" defer></script>
<script src="js/models/location.js" defer></script>
<script src="js/viewmodels/app.js" defer></script>
</head>
<body class="container-fluid">
<header>
<div class="row">
<div class="col-xs-12 text-center">
<h1 data-bind="text: pageTitle" id="title">Vacation Planner Map</h1>
</div>
</div>
</header>
<!-- Button to collapse #location-div. Only visible at 768px -->
<button type="button" id="collapse-btn" class="btn btn-success btn-sm visible-xs hidden-sm hidden-md hidden-lg" data-toggle="collapse" data-target="#location-div">
<span class="glyphicon glyphicon-collapse-down"></span> Open
</button>
<!-- #location-div collapses at 768px for mobile -->
<div class="row">
<div class="panel-collapse collapse in" id="location-div">
<div class="col-xs-9 col-sm-4 col-md-3 col-xl-3 list-group location-list scroll-div">
<h2 data-bind="text: locationsTitle">Locations</h2>
<!-- filter textbox. realtime updates list-group -->
<div class="input-group">
<div class="input-group-addon" id="filter-icon"><span class="glyphicon glyphicon-filter"></span></div>
<input type="text" id="txt-filter" data-bind="textInput : currentFilter" class="form-control" placeholder="Name, city, or zip">
<span class="input-group-addon" data-bind="click: clearFilter.bind($data,locations)" data-toggle="tooltip" data-placement="bottom" title="Clear Filter">
<span class="glyphicon glyphicon-remove"></span>
</span>
</div>
<!-- Build list-group based on current textbox filter -->
<div data-bind="foreach: distinctCities">
<div class="panel panel-default">
<div class="panel-heading">
<h3 data-bind="text: $data[0].city() + ', ' + $data[0].state()"></h3>
</div>
<div data-bind="foreach: $data">
<a href="#" class="list-group-item list-group-item-action" data-bind="click: function(){$root.clickMarker($data)}, event: { mouseover: $root.hoverLocationLink, mouseout: $root.hoverLocationLink}, attr: { id: $index() }">
<span data-bind="text: name"></span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Google Maps div. Fullscreen -->
<main id="map"></main>
</body>
</html>