forked from EloquentStudio/filter.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
111 lines (109 loc) · 3.97 KB
/
Copy pathmap.html
File metadata and controls
111 lines (109 loc) · 3.97 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="assets/css/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css">
<link href="assets/css/jquery-ui-1.10.2.custom.min.css" media="screen" rel="stylesheet" type="text/css">
<link href="assets/css/stream.css" media="screen" rel="stylesheet" type="text/css">
<script src="https://maps.googleapis.com/maps/api/js?v=3.16&key=AIzaSyBWcRdeBybFQUpx5tyfIw1QbwskiRuFsdc" type="text/javascript"></script>
<script src="assets/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="assets/js/jquery-ui-1.10.2.custom.min.js" type="text/javascript"></script>
<script src="filter.min.js" type="text/javascript"></script>
<script src="data/places.js" type="text/javascript"></script>
<script src="map.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<h1 class="title">FILTER.JS</h1>
<div class="sidebar col-md-3">
<div>
<h4 class='col-md-6'>Places (<span id="total_places">0</span>)</h4>
</div>
<div>
<label class="sr-only" for="searchbox">Search</label>
<input type="text" class="form-control" id="searchbox" placeholder="Search …">
<span class="glyphicon glyphicon-search search-icon"></span>
</div>
</br>
<div class="well">
<fieldset id="rating_criteria">
<legend>Rating</legend> <span id="rating_range_label" class="slider-label">4 - 5</span>
<div id="rating_slider" class="slider">
</div>
<input type="hidden" id="rating_filter" value="4-5">
</fieldset>
</div>
<div class="well">
<fieldset id="is_closed_criteria">
<legend>Open / Closed</legend>
<div class="checkbox">
<label>
<input type="checkbox" value="true" name="is_closed" checked>
<span>Open</span>
</label>
<label>
<input type="checkbox" value="false" name="is_closed" checked>
<span>Closed</span>
</label>
</div>
</fieldset>
</div>
<div class="well">
<fieldset>
<legend>Categories</legend>
<div class="checkbox">
<label>
<input type="checkbox" value="All" id="all_categories" checked>
<span>All</span>
</label>
</div>
<div id="categories_criteria"></div>
</fieldset>
</div>
</div>
<div class="col-md-9">
<div id="map" class="map"></div>
<div class="places content row" id="places"> </div>
</div>
</div>
<script id="place-template" type="text/html">
<div class="col-md-4 movie">
<div class="thumbnail">
<span class="label label-success rating"><%= rating %>
<i class="glyphicon glyphicon-star"></i>
</span>
<div class="caption">
<h4><%= name %></h4>
<div class="outline">
<%= description %>
<span class="open-close">
<i class="glyphicon glyphicon-time"></i>
<%= is_closed ? 'Closed' : 'Open' %>
</span>
</div>
<div class="detail">
<dl>
<dt>Categories</dt>
<dd><%= categories.join(', ') %></dd>
<% if(phone){ %>
<dt>Phone</dt>
<dd><%= phone %></dt>
<% } %>
<dt>Address</dt>
<dd><%= address %></dd>
</dl>
</div>
</div>
</div>
</div>
</script>
<script id="category-template" type="text/html">
<div class="checkbox">
<label>
<input type="checkbox" value="<%= value %>">
<span><%= name %></span>
</label>
</div>
</script>
</body>
</html>