watch.html 11 KB

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