-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (64 loc) · 3.18 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
<!DOCTYPE html>
<html>
<head>
<title>TV Show Ratings</title>
<!-- INCLUDE REQUIRED THIRD PARTY LIBRARY JAVASCRIPT AND CSS -->
<script type="text/javascript" src="js/angular.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
<!-- INCLUDE APPLICATION SPECIFIC CSS AND JAVASCRIPT -->
<script type="text/javascript" src="js/tv-premieres-app/app.js"></script>
<script type="text/javascript" src="js/tv-premieres-app/controllers/mainController.js"></script>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class='banner'>
<div class='container'>
<h1>TV SHOW RATINGS</h1>
</div>
</div>
<div class="container main-frame" ng-app="TVPremieresApp" ng-controller="mainController" ng-init="init()">
<div class="search-box row-fluid form-inline">
<label>Filter: </label>
<input type="text" ng-model="filterText"/>
<label>Genre: </label>
<select ng-model="genreFilter" ng-options="label for label in availableGenres">
<option value="">All</option>
</select>
<label>Order by: </label>
<select ng-model="orderField" ng-options="label for label in orderFields" class="input-medium"></select>
<select ng-model="orderReverse"class="input-medium">
<option value="true">Descending</option>
<option value="false">Ascending</option>
</select>
</div>
<div class="results-top"></div>
<div class="results-container">
<ul class="episode-list">
<li ng-repeat="tvshow in results | filter: filterText | isGenre:genreFilter | orderBy:customOrder:orderReverse">
<div class="row-fluid">
<div class="span3">
<img src="{{tvshow.episode.images.screen}}" />
<div class="ratings"><strong>Ratings:</strong> <span class="label"><i class="icon-thumbs-up"></i> {{tvshow.episode.ratings.loved}}</span> <span class="label"><i class="icon-thumbs-down"></i> {{tvshow.episode.ratings.hated}}</span> <span class="label label-important" ng-class="{'label-success': tvshow.episode.ratings.percentage >= 50}"><strong>%</strong> {{tvshow.episode.ratings.percentage}}</div>
</div>
<div class="span6">
<h3>{{tvshow.show.title}}: {{tvshow.episode.title}}</h3>
<p>{{tvshow.episode.overview}}</p>
</div>
<div class="span3">
<div class="fulldate pull-right label label-info">{{tvshow.date}}</div>
<ul class="show-info">
<li><strong>On Air:</strong> {{tvshow.show.air_day}} {{tvshow.show.air_time}}</li>
<li><strong>Network:</strong> {{tvshow.show.network}}</li>
<li><strong>Season #:</strong> {{tvshow.episode.season}}</li>
<li><strong>Genres:</strong> <span class="label label-inverse genre" ng-repeat="genre in tvshow.show.genres" ng-click="setGenreFilter(genre)">{{genre}}</span></li>
</ul>
</div>
</div>
</li
</ul>
</div>
<div class="results-bottom"></div>
</div>
</body>
</html>