watch.html 11 KB

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