watch.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. {% extends "layout.html" %} {% block body %}
  2. <link rel="stylesheet" type="text/css" href="/css/style.css">
  3. </div>
  4. {% if layout == 'filme' %}
  5. <script>
  6. var bgzao = "/img/obsabsorver.jpg";
  7. var lb = {};
  8. lb.videos = [{
  9. title: '{{ title }}',
  10. subtitle: '{{ subtitle }}',
  11. placeholder: '{{ imgbg }}',
  12. video: '{{ video }}',
  13. thumb480: '{{ thumb480 }}',
  14. thumb130: '{{ thumb130 }}',
  15. runtime: '{{ runtime }}'
  16. }];
  17. </script>
  18. <style media="screen" type="text/css">
  19. #pl-final-screen {
  20. display: none;
  21. background: no-repeat center / cover url({{ imgbg }});
  22. z-index: 1;
  23. }
  24. </style>
  25. </head>
  26. <libreplayer>
  27. <body onload="Q()" id="go" class="libreplayer">
  28. <div id="pl-player" class="stretch loading">
  29. <div id="pl-video-wrap" class="stretch">
  30. <div id="pl-video" class="stretch"></div>
  31. <div id="pl-placeholder" class="stretch"></div>
  32. </div>
  33. <div id="pl-player-overlay" class="stretch">
  34. <img class="pl-loading" src="/img/loading.png">
  35. <div id="pl-player-title">
  36. <h1 class="titlePlayer"></h1>
  37. <h3 class="titlePlayer"></h3>
  38. </div>
  39. <button type="button" id="exit-button" class="exit-button" onClick="javascript: history.go(-1)"><img src="/img/ico-exit.png"></button>
  40. <div id="pl-player-ctrl-wrap">
  41. <div id="pl-playback-progress-wrap">
  42. <div id="pl-playback-progress">
  43. <div id="pl-playback-loaded"></div>
  44. <div id="pl-playback-position">
  45. <div id="pl-playback-position-bullet"></div>
  46. </div>
  47. </div>
  48. <div id="pl-playback-time">
  49. 00:00
  50. </div>
  51. </div>
  52. <div id="pl-player-ctrl">
  53. <div id="pl-playback-ctrls-wrap" class="play">
  54. <button type="button" id="pl-playback-play" class="pl-button"><img src="/img/ico-play.png"></button>
  55. <button type="button" id="pl-playback-pause" class="pl-button"><img src="/img/ico-pause.png"></button>
  56. <div class="sep"></div>
  57. </div>
  58. <div id="pl-audio-ctrls-wrap" class="volume">
  59. <button type="button" id="pl-audio-volume" class="pl-button"><img src="/img/ico-volume.png"></button>
  60. <button type="button" id="pl-audio-mute" class="pl-button"><img src="/img/ico-mute.png"></button>
  61. <div class="sep"></div>
  62. <div id="pl-volume-wrap">
  63. <div>
  64. <div id="pl-volume">
  65. <div id="pl-volume-bar">
  66. <div id="pl-volume-bar-bullet"></div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div id="pl-info-wrap">
  73. <span id="pl-info-series"></span>
  74. <span id="pl-info-episode"></span>
  75. <div class="sep"></div>
  76. </div>
  77. <div id="pl-navigation-ctrls-wrap">
  78. <!--<button type="button" id="pl-next" class="pl-button"><img src="/img/ico-next.png"></button>-->
  79. <div id="pl-next-popup">
  80. <div class="inner">
  81. <h4>Próximo episódio</h4>
  82. <div id="pl-next-popup-info">
  83. <div>
  84. <div id="pl-next-popup-image">
  85. <img src="/img/ico-play-next.png">
  86. </div>
  87. </div>
  88. <div>
  89. <h2 id="pl-next-popup-subtitle"></h2>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div id="pl-fs-wrap">
  96. <button type="button" id="pl-fs" class="pl-button"><img src="/img/ico-fullscreen.png"></button>
  97. <button type="button" id="pl-fs-ex" class="pl-button"><img src="/img/ico-fullscreen-exit.png"></button>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div id="pl-up-next" class="stretch">
  103. <div>
  104. <div id="pl-up-next-bg" class="stretch"></div>
  105. <div id="pl-up-next-info">
  106. <div id="pl-up-next-title">
  107. <h1></h1>
  108. <h3></h3>
  109. <p>01/04/2017 L <span id="pl-runtime"></span>min</p>
  110. </div>
  111. <div id="pl-up-next-timer-wrap">
  112. <span>O próximo episódio começa em </span>
  113. <span id="pl-up-next-timer">15 segundos</span>
  114. </div>
  115. <div id="pl-up-next-go">
  116. <div id="pl-up-next-image" class="stretch">
  117. <img src="/img/ico-play-next.png">
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <div id="pl-watch-again" class="stretch"></div>
  123. </div>
  124. <div id="pl-final-screen" class="stretch">
  125. <div id="pl-final-watch-again" class="stretch">
  126. <div class="pl-classifique">
  127. <span>Classifique:</span>
  128. <img src="/img/stars.png">
  129. </div>
  130. </div>
  131. <div id="pl-segunda-temporada">
  132. <a href="/" style="border-bottom: 0px solid;"><img src="/img/ico-exit.png" title="Voltar"></a>
  133. </div>
  134. </div>
  135. </div>
  136. <div id="pl-mobile">
  137. <img class="pl-loading" src="/img/loading.png" style="opacity: 1">
  138. </div>
  139. </body>
  140. <p align="center">
  141. <img src="/img/cargando.svg">
  142. </p>
  143. <script type="text/javascript" src="/js/yt.js"></script>
  144. {% if layout == 'filme' %}
  145. <script type="text/javascript" src="/js/script.js"></script>
  146. {% endif %} {% if layout == 'serie' %}
  147. <script type="text/javascript" src="/js/script2.js"></script>
  148. {% endif %}
  149. </html>
  150. </libreplayer>
  151. {% endif %}
  152. <!-- SERIES -->
  153. {% if layout == 'serie' %}
  154. <script>
  155. var lb = {};
  156. lb.videos = [{% for ep in eps %}
  157. {
  158. title: '{{ title }}',
  159. subtitle: '{{ ep.subtitle }}',
  160. placeholder: '{{ imgbg }}',
  161. video: '{{ ep.video }}',
  162. thumb480: '{{ ep.thumb480 }}',
  163. thumb130: '{{ ep.thumb130 }}',
  164. runtime: '0'
  165. }
  166. {% if ep.last == true %}
  167. {% else %},
  168. {% endif %}
  169. {% endfor %}
  170. ];
  171. lb.player.prototype.hookListeners = function() {
  172. this.elControlNext.addEventListener('click', this.onNextClick.bind(this));
  173. this.elControlsNav.addEventListener('mouseenter', this.onNextHover.bind(this));
  174. this.elControlsNav.addEventListener('mouseleave', this.onNextLeave.bind(this));
  175. }
  176. </script>
  177. <style media="screen" type="text/css">
  178. #pl-final-screen {
  179. display: none;
  180. background: no-repeat center / cover url({{ imgbg }});
  181. z-index: 1;
  182. }
  183. </style>
  184. </head>
  185. <body onload="Q()" id="go">
  186. <div id="pl-player" class="stretch loading">
  187. <div id="pl-video-wrap" class="stretch">
  188. <div id="pl-video" class="stretch"></div>
  189. <div id="pl-placeholder" class="stretch"></div>
  190. </div>
  191. <div id="pl-player-overlay" class="stretch">
  192. <img class="pl-loading" src="/img/loading.png">
  193. <div id="pl-player-title">
  194. <h1 class="titlePlayer"></h1>
  195. <h3 class="titlePlayer"></h3>
  196. </div>
  197. <button type="button" id="exit-button" class="exit-button" onClick="javascript: history.go(-1)"><img src="/img/ico-exit.png"></button>
  198. <div id="pl-player-ctrl-wrap">
  199. <div id="pl-playback-progress-wrap">
  200. <div id="pl-playback-progress">
  201. <div id="pl-playback-loaded"></div>
  202. <div id="pl-playback-position">
  203. <div id="pl-playback-position-bullet"></div>
  204. </div>
  205. </div>
  206. <div id="pl-playback-time">
  207. 00:00
  208. </div>
  209. </div>
  210. <div id="pl-player-ctrl">
  211. <div id="pl-playback-ctrls-wrap" class="play">
  212. <button type="button" id="pl-playback-play" class="pl-button"><img src="/img/ico-play.png"></button>
  213. <button type="button" id="pl-playback-pause" class="pl-button"><img src="/img/ico-pause.png"></button>
  214. <div class="sep"></div>
  215. </div>
  216. <div id="pl-audio-ctrls-wrap" class="volume">
  217. <button type="button" id="pl-audio-volume" class="pl-button"><img src="/img/ico-volume.png"></button>
  218. <button type="button" id="pl-audio-mute" class="pl-button"><img src="/img/ico-mute.png"></button>
  219. <div class="sep"></div>
  220. <div id="pl-volume-wrap">
  221. <div>
  222. <div id="pl-volume">
  223. <div id="pl-volume-bar">
  224. <div id="pl-volume-bar-bullet"></div>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. <div id="pl-info-wrap">
  231. <span id="pl-info-series"></span>
  232. <span id="pl-info-episode"></span>
  233. <div class="sep"></div>
  234. </div>
  235. <div id="pl-navigation-ctrls-wrap">
  236. <button type="button" id="pl-next" class="pl-button"><img src="/img/ico-next.png"></button>
  237. <div id="pl-next-popup">
  238. <div class="inner">
  239. <h4>Próximo episódio</h4>
  240. <div id="pl-next-popup-info">
  241. <div>
  242. <div id="pl-next-popup-image">
  243. <img src="/img/ico-play-next.png">
  244. </div>
  245. </div>
  246. <div>
  247. <h2 id="pl-next-popup-subtitle"></h2>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. <div id="pl-fs-wrap">
  254. <button type="button" id="pl-fs" class="pl-button"><img src="/img/ico-fullscreen.png"></button>
  255. <button type="button" id="pl-fs-ex" class="pl-button"><img src="/img/ico-fullscreen-exit.png"></button>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. <div id="pl-up-next" class="stretch">
  261. <div>
  262. <div id="pl-up-next-bg" class="stretch"></div>
  263. <div id="pl-up-next-info">
  264. <div id="pl-up-next-title">
  265. <p><span id="pl-runtime"></span></p>
  266. </div>
  267. <div id="pl-up-next-timer-wrap">
  268. <span>O próximo episódio começa em </span>
  269. <span id="pl-up-next-timer"> 15 segundos</span>
  270. </div>
  271. <div id="pl-up-next-go">
  272. <div id="pl-up-next-image" class="stretch">
  273. <img src="/img/ico-play-next.png">
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. <div id="pl-watch-again" class="stretch"></div>
  279. </div>
  280. <div id="pl-final-screen" class="stretch">
  281. <div id="pl-final-watch-again" class="stretch">
  282. <div class="pl-classifique">
  283. <span>Classifique:</span>
  284. <img src="/img/stars.png">
  285. </div>
  286. </div>
  287. <div id="pl-segunda-temporada">
  288. <a href="/" style="border-bottom: 0px solid;"><img src="/img/ico-exit.png" title="Voltar"></a>
  289. </div>
  290. </div>
  291. </div>
  292. <div id="pl-mobile">
  293. <img class="pl-loading" src="/img/loading.png" style="opacity: 1">
  294. </div>
  295. </body>
  296. <p align="center">
  297. <img src="/img/cargando.svg">
  298. </p>
  299. <script type="text/javascript" src="/js/script2.js"></script>
  300. <script type="text/javascript" src="/js/yt.js"></script>
  301. </html>
  302. {% endif %} {% endblock %}