forked from popcorn-time/popcorn-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
150 lines (130 loc) · 5.62 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="css/app.css" />
<link rel="stylesheet" type="text/css" href="js/vendor/video-js/video-js.css" />
</head>
<body>
<header id="header">
<nav class="btn-set">
<button class="btn-os close"></button>
<button class="btn-os min"></button>
</nav>
<h1>Popcorn Time</h1>
</header>
<div id="notification"></div>
<div id="catalog-select">
<div class="search">
<input type="text" placeholder="Search" data-translate="search" />
<i class="fa fa-search"></i>
</div>
<h4 data-translate="movies">Movies</h4>
<ul class="categories">
</ul>
</div>
<section class="container">
<sidebar class="hidden"></sidebar>
</section>
<script id="sidebar-tpl" type="text/x-template">
<div class="play">
<div class="closer"><i class="fa fa-times"></i></div>
<div class="poster-cont">
<ul class="movie-config">
<% if (typeof subtitles !== 'undefined') { %>
<li class="options">
<%= Language['subtitledIn'] %>
<% for (var i = 0, keys = _.keys(subtitles), l = keys.length; i < l; ++i) { %>
<span class="available-subtitles">
<img src="../images/<%= keys[i] %>.png" alt="<%= Languages[keys[i]] %>" />
</span>
<% } %>
</li>
<% } %>
<% if (this.model.get('quality') && this.model.get('torrents')) { %>
<li class="options">
<%= Language['quality'] %>
<% if (this.model.get('torrents')["720p"] && this.model.get('torrents')["1080p"]) { %>
<div class="quality switch white">
<input type="radio" name="switch" id="switch-off"<% if (this.model.get('quality') === '720p') { %> checked<% } %>>
<input type="radio" name="switch" id="switch-on"<% if (this.model.get('quality') === '1080p') { %> checked<% } %>>
<label for="switch-off">720p</label>
<label for="switch-on">1080p</label>
<span class="toggle"></span>
</div>
<% } else { %>
<span class="quality"><%= quality %></span>
<% } %>
</li>
<% } %>
</ul>
<img class="big-poster" src="<%= bigImage %>" alt="<%= title %>" />
</div>
<div class="side-content">
<% if (this.model.get('torrents')) { %>
<a href="" class="p_tooltip play-button"><%= Language['watchItNow'] %></a>
<% } %>
<div>
<h2><%= title %></h2>
<span><%= year %></span>
<p><%= synopsis %></p>
<p class="duration"><i class="fa fa-clock-o"></i> <%= runtime %> <%= Language['durationUnit'] %></p>
<% var p_rating = (this.model.get('voteAverage') / 10) * 5 %>
<div class="rating" data-rating="<%= voteAverage %>">
<ul class="votes">
<% for (var i = 0; i < 5; i++) { %>
<% if(p_rating > 0 + i && p_rating < 0.5 + i){ %>
<i class="fa fa-star-o"></i>
<% }else if (p_rating >= 0.5 + i && p_rating < 1 + i){ %>
<i class="fa fa-star-half"></i>
<% }else if(p_rating >= 1 + i ){ %>
<i class="fa fa-star"></i>
<% } %>
<% }; %>
</ul>
<ul class="empty_votes">
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
</ul>
</div>
<i data-placement="left" data-toggle="tooltip" title="<%= health %> health" class="health <%= health %> fa fa-flash"></i>
</div>
</div>
</div>
</script>
<div class="popcorn-load hidden">
<div class="wrapper">
<span class="spinner"></span>
<span class="text"></span>
<div class="progressbar"><div class="progress"></div></div>
<div class="progressinfo"></div>
</div>
<a href="javascript:;" class="btn-close"><img src="/images/close.svg" width="50" /></a>
</div>
<div id="video-container"></div>
<script src="js/vendor/jquery-2.1.0.min.js"></script>
<script src="js/vendor/underscore.js"></script>
<script src="js/vendor/backbone-1.1.0.js"></script>
<script src="js/vendor/bootstrap-tooltip.min.js"></script>
<script src="js/vendor/config.js"></script>
<script src="js/app.js"></script>
<script src="js/vendor/video-js/video.dev.js"></script>
<script src="js/frontend/app.js"></script>
<script src="js/frontend/providers/torrents.js"></script>
<script src="js/frontend/providers/cache.js"></script>
<script src="js/frontend/providers/themoviedb.js"></script>
<script src="js/frontend/providers/opensubtitles.js"></script>
<script src="js/frontend/models/movie.js"></script>
<script src="js/frontend/views/page.js"></script>
<script src="js/frontend/views/listview.js"></script>
<script src="js/frontend/views/movie.js"></script>
<script src="js/frontend/views/sidebar.js"></script>
<script src="js/frontend/controllers/home.js"></script>
<script src="js/frontend/controllers/search.js"></script>
<script src="js/frontend/controllers/filter.js"></script>
<script src="js/frontend/router.js"></script>
</body>
</html>