forked from EloquentStudio/filter.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto.html
More file actions
251 lines (249 loc) · 9.23 KB
/
Copy pathauto.html
File metadata and controls
251 lines (249 loc) · 9.23 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
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
<!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="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/movies.js" type="text/javascript"></script>
<script src="auto.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'>Movies (<span id="total_movies">0</span>)</h4>
</div>
<div>
<label class="sr-only" for="searchbox">Search</label>
<input type="text" class="form-control" id="searchbox" placeholder="Search …" fjs-search>
<span class="glyphicon glyphicon-search search-icon"></span>
<code><input type="text" fjs-search> <kbd>OR</kbd> <input type="text" fjs-search="name,year"></code>
</div>
<br>
<div class="well">
<fieldset id="rating_criteria">
<legend>Rating</legend>
<span id="rating_range_label" class="slider-label">8 - 10</span>
<div id="rating_slider" class="slider"></div>
<input type="hidden" id="rating_filter" value="8-10" fjs-criteria="field=rating,type=range">
</fieldset>
<code><input type="text" fjs-criteria="field=rating,type=range"></code>
</div>
<div class="well">
<fieldset id="runtime_criteria">
<legend>Runtime</legend> <span id="runtime_range_label" class="slider-label">50 mins - 250 mins</span>
<div id="runtime_slider" class="slider"> </div>
<input type="hidden" id="runtime_filter" value="50-250" fjs-criteria="field=runtime,type=range">
<code><input type="text" fjs-criteria="field=runtime,type=range"></code>
</fieldset>
</div>
<div class="well">
<fieldset id="year_criteria">
<legend>Year</legend>
<code><input type="text" fjs-criteria="field=year,type=range,all=all"></code>
<select class="form-control" id="year_filter" fjs-criteria="field=year,type=range,all=all">
<option value="all">All (1920 - 2020)</option>
<option value="1920-1930">1920 - 1930</option>
<option value="1931-1940">1931 - 1940</option>
<option value="1941-1950">1941 - 1950</option>
<option value="1951-1960">1951 - 1960</option>
<option value="1961-1970">1961 - 1970</option>
<option value="1971-1980">1971 - 1980</option>
<option value="1981-1990">1981 - 1990</option>
<option value="1991-2000">1991 - 2000</option>
<option value="2001-2010">2001 - 2010</option>
<option value="2011-2020">2011 - 2020</option>
</select>
</fieldset>
</div>
<div class="well">
<fieldset id="genre_criteria">
<legend>Genre</legend>
<code><input type="text" fjs-criteria="field=genre,ele=#genres input:checkbox"></code>
<div class="checkbox">
<label>
<input type="checkbox" value="All" id="all_genre">
<span>All</span>
</label>
</div>
<div id="genres">
<div class="checkbox" fjs-criteria="field=genre,ele=#genres input:checkbox">
<label>
<input type="checkbox" value="Crime">
<span>Crime</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Drama">
<span>Drama</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Thriller">
<span>Thriller</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Adventure">
<span> Adventure </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Western">
<span> Western </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Action">
<span> Action </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Biography">
<span> Biography </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="History">
<span> History </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="War">
<span/>War</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Fantasy">
<span>Fantasy</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Sci-Fi">
<span>Sci-Fi</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Mystery">
<span>Mystery</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Romance">
<span>Romance </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Family">
<span> Family </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Horror">
<span> Horror </span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Film-Noir">
<span>Film-Noir</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Comedy">
<span>Comedy</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Animation">
<span>Animation</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Musical">
<span>Musical</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Music">
<span>Music</span>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="Sport">
<span>Sport</span>
</label>
</div>
</div>
</fieldset>
</div>
</div>
<div class="col-md-9">
<code><div fjs-items="template=#movie-template"><div/></code>
<div class="movies content row" id="movies" fjs-items="template=#movie-template"></div>
</div>
</div>
</div>
</div>
<script id="movie-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><%= _fid %>. <%= name %></h4>
<div class="outline">
<%= outline %>
<span class="runtime">
<i class="glyphicon glyphicon-time"></i>
<%= runtime %> mins.
</span>
</div>
<div class="detail">
<dl>
<dt>Director</dt>
<dd><%= director %></dd>
<dt>Actors</dt>
<dd><%= stars %></dt>
<dt>Year</dt>
<dd><%= year %></dd>
</dl>
</div>
</div>
</div>
</div>
</script>
<script id="genre_template" type="text/html">
<div class="checkbox">
<label>
<input type="checkbox" value="<%= genre %>"> <%= genre %>
</label>
</div>
</script>
</body>
</html>