|
| 1 | +<!DOCTYPE HTML> |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | + <head> |
| 4 | + <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> |
| 5 | + <link href="assets/css/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css"> |
| 6 | + <link href="assets/css/jquery-ui-1.10.2.custom.min.css" media="screen" rel="stylesheet" type="text/css"> |
| 7 | + <link href="assets/css/stream.css" media="screen" rel="stylesheet" type="text/css"> |
| 8 | + <script src="assets/js/jquery-1.11.1.min.js" type="text/javascript"></script> |
| 9 | + <script src="assets/js/jquery-ui-1.10.2.custom.min.js" type="text/javascript"></script> |
| 10 | + <script src="../dist/filter.js" type="text/javascript"></script> |
| 11 | + <script src="data/movies.js" type="text/javascript"></script> |
| 12 | + <script src="stream.js" type="text/javascript"></script> |
| 13 | + </head> |
| 14 | + <body> |
| 15 | + <div class="container"> |
| 16 | + <h1 class="title">Filter.js</h1> |
| 17 | + <div class="sidebar col-span-3"> |
| 18 | + <div class="row"> |
| 19 | + <h4 class="col-span-6"> Movies (<span id="total_movies">250</span>)</h4> |
| 20 | + <div class="col-span-6 progress"> |
| 21 | + <div class="progress-bar" id="stream_progress" style="width: 0%">0 %</div> |
| 22 | + </div> |
| 23 | + </div> |
| 24 | + <div> |
| 25 | + <input type="text" id="searchbox" placeholder="Search..."> |
| 26 | + <span class="glyphicon glyphicon-search search-icon"></span> |
| 27 | + </div> |
| 28 | + <div class="criteria" id="rating_criteria"> |
| 29 | + <h4>Rating</h4> |
| 30 | + <span id="rating_range_label" class="slider-label">8 - 10</span> |
| 31 | + <div id="rating_slider" class="slider"></div> |
| 32 | + <input type="hidden" id="rating_filter" value="8-10"/> |
| 33 | + </div> |
| 34 | + <div class="criteria" id="runtime_criteria"> |
| 35 | + <h4>Runtime</h4> |
| 36 | + <span id="runtime_range_label" class="slider-label">50 mins - 250 mins</span> |
| 37 | + <div id="runtime_slider" class="slider"></div> |
| 38 | + <input type="hidden" id="runtime_filter" value="50-250"> |
| 39 | + </div> |
| 40 | + <div class="criteria" id="year_criteria"> |
| 41 | + <h4>Year</h4> |
| 42 | + <select id="year_filter" class="col-span-8"> |
| 43 | + <option value="1920-2020">All (1920 - 2020)</option> |
| 44 | + <option value="1920-1930">1920 - 1930</option> |
| 45 | + <option value="1931-1940">1931 - 1940</option> |
| 46 | + <option value="1941-1950">1941 - 1950</option> |
| 47 | + <option value="1951-1960">1951 - 1960</option> |
| 48 | + <option value="1961-1970">1961 - 1970</option> |
| 49 | + <option value="1971-1980">1971 - 1980</option> |
| 50 | + <option value="1981-1990">1981 - 1990</option> |
| 51 | + <option value="1991-2000">1991 - 2000</option> |
| 52 | + <option value="2001-2010">2001 - 2010</option> |
| 53 | + <option value="2011-2020">2011 - 2020</option> |
| 54 | + </select> |
| 55 | + </div> |
| 56 | + <div class="criteria" id="genre_criteria"> |
| 57 | + <h4>Genre</h4> |
| 58 | + <div class="checkbox"> |
| 59 | + <label> |
| 60 | + <input type="checkbox" value="All" id="all_genre"> All |
| 61 | + </label> |
| 62 | + </div> |
| 63 | + <div class="checkbox"> |
| 64 | + <label> |
| 65 | + <input type="checkbox" value="Crime"> Crime |
| 66 | + </label> |
| 67 | + </div><div class="checkbox"> |
| 68 | + <label> |
| 69 | + <input type="checkbox" value="Drama"> Drama |
| 70 | + </label> |
| 71 | + </div><div class="checkbox"> |
| 72 | + <label> |
| 73 | + <input type="checkbox" value="Thriller"> Thriller |
| 74 | + </label> |
| 75 | + </div><div class="checkbox"> |
| 76 | + <label> |
| 77 | + <input type="checkbox" value="Adventure"> Adventure |
| 78 | + </label> |
| 79 | + </div><div class="checkbox"> |
| 80 | + <label> |
| 81 | + <input type="checkbox" value="Western"> Western |
| 82 | + </label> |
| 83 | + </div><div class="checkbox"> |
| 84 | + <label> |
| 85 | + <input type="checkbox" value="Action"> Action |
| 86 | + </label> |
| 87 | + </div><div class="checkbox"> |
| 88 | + <label> |
| 89 | + <input type="checkbox" value="Biography"> Biography |
| 90 | + </label> |
| 91 | + </div><div class="checkbox"> |
| 92 | + <label> |
| 93 | + <input type="checkbox" value="History"> History |
| 94 | + </label> |
| 95 | + </div><div class="checkbox"> |
| 96 | + <label> |
| 97 | + <input type="checkbox" value="War"> War |
| 98 | + </label> |
| 99 | + </div><div class="checkbox"> |
| 100 | + <label> |
| 101 | + <input type="checkbox" value="Fantasy"> Fantasy |
| 102 | + </label> |
| 103 | + </div><div class="checkbox"> |
| 104 | + <label> |
| 105 | + <input type="checkbox" value="Sci-Fi"> Sci-Fi |
| 106 | + </label> |
| 107 | + </div><div class="checkbox"> |
| 108 | + <label> |
| 109 | + <input type="checkbox" value="Mystery"> Mystery |
| 110 | + </label> |
| 111 | + </div><div class="checkbox"> |
| 112 | + <label> |
| 113 | + <input type="checkbox" value="Romance"> Romance |
| 114 | + </label> |
| 115 | + </div><div class="checkbox"> |
| 116 | + <label> |
| 117 | + <input type="checkbox" value="Family"> Family |
| 118 | + </label> |
| 119 | + </div><div class="checkbox"> |
| 120 | + <label> |
| 121 | + <input type="checkbox" value="Horror"> Horror |
| 122 | + </label> |
| 123 | + </div><div class="checkbox"> |
| 124 | + <label> |
| 125 | + <input type="checkbox" value="Film-Noir"> Film-Noir |
| 126 | + </label> |
| 127 | + </div><div class="checkbox"> |
| 128 | + <label> |
| 129 | + <input type="checkbox" value="Comedy"> Comedy |
| 130 | + </label> |
| 131 | + </div><div class="checkbox"> |
| 132 | + <label> |
| 133 | + <input type="checkbox" value="Animation"> Animation |
| 134 | + </label> |
| 135 | + </div><div class="checkbox"> |
| 136 | + <label> |
| 137 | + <input type="checkbox" value="Musical"> Musical |
| 138 | + </label> |
| 139 | + </div><div class="checkbox"> |
| 140 | + <label> |
| 141 | + <input type="checkbox" value="Music"> Music |
| 142 | + </label> |
| 143 | + </div><div class="checkbox"> |
| 144 | + <label> |
| 145 | + <input type="checkbox" value="Sport"> Sport |
| 146 | + </label> |
| 147 | + </div></div> |
| 148 | + |
| 149 | + </div> |
| 150 | + <div class="sorting content col-span-9"> |
| 151 | + </div> |
| 152 | + <div class="movies content col-span-9" id="movies"> |
| 153 | + </div> |
| 154 | + <script id="movie-template" type="text/html"> |
| 155 | + <div class="col-span-4 movie"> |
| 156 | + <div class="thumbnail"> |
| 157 | + <span class="label label-success rating"><%= rating %> |
| 158 | + <i class="glyphicon glyphicon-star"></i> |
| 159 | + </span> |
| 160 | + <div class="caption"> |
| 161 | + <h4><%= name %></h4> |
| 162 | + <div class="outline"> |
| 163 | + <%= outline %> |
| 164 | + <span class="runtime"> |
| 165 | + <i class="glyphicon glyphicon-time"></i> |
| 166 | + <%= runtime %> mins. |
| 167 | + </span> |
| 168 | + </div> |
| 169 | + <div class="detail"> |
| 170 | + <dl> |
| 171 | + <dt>Director</dt> |
| 172 | + <dd><%= director %></dd> |
| 173 | + <dt>Actors</dt> |
| 174 | + <dd><%= stars %></dt> |
| 175 | + <dt>Year</dt> |
| 176 | + <dd><%= year %></dd> |
| 177 | + </dl> |
| 178 | + </div> |
| 179 | + </div> |
| 180 | + </div> |
| 181 | + </div> |
| 182 | + </script> |
| 183 | + <script id="genre_template" type="text/html"> |
| 184 | + <div class="checkbox"> |
| 185 | + <label> |
| 186 | + <input type="checkbox" value="<%= genre %>"> <%= genre %> |
| 187 | + </label> |
| 188 | + </div> |
| 189 | + </script> |
| 190 | + </body> |
| 191 | + </html> |
0 commit comments