-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (91 loc) · 3.83 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
<!DOCTYPE html>
<html>
<head>
<title>Discover Old Europe</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, shrink-to-fit=no, initial-scale=1">
<meta name="Travel Planner" content="Page dedicated to exploring old Europe." />
<link rel="shortcut icon" type="image/x-icon" href="img/icons8/map-and-marker.png" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
</head>
<body class = "container-fluid">
<nav id="mySidenav" class="sidenav">
<div class="form-group row">
<div class="col-sm-9 col-sm-offset-1">
<input class="form-control" type="text" id="searchText" data-bind="textInput: searchTerm">
</div>
<div class="col-sm-1">
<button type="button" class="close" aria-label="Close" onclick='closeNav()'><span aria-hidden="true">×</span></button>
</div>
</div>
<div class="form-group row">
<div class="col-sm-4 col-sm-offset-1">
<button class="btn btn-primary"
data-bind="click: function() {
userSearch();
}">
Google Search</button>
</div>
<div class="col-sm-4 col-sm-offset-1">
<button class="btn btn-primary"
data-bind="click: function() {
filterMarkersBySearch(markers);
}">
Filter Category</button>
</div>
</div>
<!--Adapted from code found on Stack Overflow
http://stackoverflow.com/questions/18432577/stacked-tabs-in-bootstrap-3 -->
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#categories" data-toggle="tab">Categories</a></li>
<li><a href="#places" data-toggle="tab">Places</a></li>
<li><a href="#credits" data-toggle="tab">Credits</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="categories">
<div data-bind="foreach: categoryViewModel.categories">
<div class="row">
<div class="col-md-12">
<a href="#" data-bind="text: categoryName, click: link"></a>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="places">
<div data-bind="foreach: displayedPlaces">
<div class="row">
<div class="col-md-12">
<a href="#" data-bind="text: name, click: link,
event: { mouseover: mouseover, mouseout: mouseout }"></a>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="credits">
<div data-bind="foreach: creditsViewModel.credits">
<div class="row">
<div class="col-md-12">
<a href="#" data-bind="text: creditText, click: link"></a>
</div>
</div>
</div>
</div>
</div>
</div>
</nav>
<span id="site-title" style="font-size:30px;cursor:pointer" onclick="toggleNav()">☰ Travel Dreamer Planner</span>
<div id="map"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/lib/knockout-3.4.0.js"></script>
<script src="js/app.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD5rdxfX_sDJf5PZfMAIYGb67EHYn50UJw&libraries=places&callback=initMap" onerror="googleError()">
</script>
</body>
</html>