demo-mix-multicolors.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <!DOCTYPE html>
  2. <html lang="es">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Reproductor LibreVideoJS basado en VideoJS v4.3.</title>
  8. <link rel="author" type="text/plain" href="humans.txt">
  9. <!-- Favicon Libre -->
  10. <link rel="shortcut icon" href="./images/gnu-linux_libre.png">
  11. <!-- Normalizador -->
  12. <link href="./css/normalize.css" rel="stylesheet" type="text/css">
  13. <!--Begin | Estilos de la Página -->
  14. <style>
  15. body {
  16. background-color: #141517;
  17. color: white;
  18. }
  19. .change_color {
  20. text-align: center;
  21. }
  22. .change_color input[type='Button'] {
  23. display: inline-block;
  24. border-style: none;
  25. cursor: pointer;
  26. font-size: 12px;
  27. text-align: center;
  28. margin-top: 10px;
  29. padding: 5px 10px;
  30. }
  31. .change_color input[onclick="multiColor('teal');"] {
  32. background-color: #2ecc71;
  33. }
  34. .change_color input[onclick="multiColor('blue');"] {
  35. background-color: #3498db;
  36. }
  37. .change_color input[onclick="multiColor('yellow');"] {
  38. background-color: #f1c40f;
  39. }
  40. .change_color input[onclick="multiColor('red');"] {
  41. background-color: #e74c3c;
  42. }
  43. .change_color input[onclick="multiColor('purple');"] {
  44. background-color: #9b59b6;
  45. }
  46. .change_color input[onclick="multiColor('grey');"] {
  47. background-color: #9e9e9e;
  48. }
  49. h1,
  50. h2,
  51. h3 {
  52. text-align: center;
  53. }
  54. a {
  55. text-decoration: none;
  56. color: #189e7d;
  57. }
  58. a:hover {
  59. color: #1de9b6;
  60. }
  61. .clase1 {
  62. margin: 20px;
  63. }
  64. p,
  65. .clase2 {
  66. margin: 20px;
  67. }
  68. footer {
  69. background-color: #1e1b1f;
  70. text-align: center;
  71. margin: 20px;
  72. padding: 10px;
  73. }
  74. </style>
  75. <!--Ending | Estilos de la Página -->
  76. <!-- LibreVideoJS Quality -->
  77. <link rel="stylesheet" href="./css/selector/video-quality-selector.css">
  78. <script>
  79. /*
  80. @licstart The following is the entire license notice for the
  81. JavaScript code in this page.
  82. Copyleft 2017 Jesús Eduardo.
  83. The JavaScript code in this page is free software: you can
  84. redistribute it and/or modify it under the terms of the GNU
  85. General Public License (GNU GPL) as published by the Free Software
  86. Foundation, either version 3 of the License, or (at your option)
  87. any later version. The code is distributed WITHOUT ANY WARRANTY;
  88. without even the implied warranty of MERCHANTABILITY or FITNESS
  89. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  90. As additional permission under GNU GPL version 3 section 7, you
  91. may distribute non-source (e.g., minimized or compacted) forms of
  92. that code without the copy of the GNU GPL normally required by
  93. section 4, provided you include this license notice and a URL
  94. through which recipients can access the Corresponding Source.
  95. @licend The above is the entire license notice
  96. for the JavaScript code in this page.
  97. */
  98. </script>
  99. <!-- LibreVideoJS Estilos -->
  100. <script>
  101. var filename = "./css/mix-material/mix-teal.css";
  102. var _color = location.search.split('color=')[1];
  103. if (_color != undefined && _color != "" && _color != "teal")
  104. filename = "./css/mix-material/mix-" + _color + ".css";
  105. var fileref = document.createElement("link");
  106. fileref.setAttribute("rel", "stylesheet");
  107. fileref.setAttribute("type", "text/css");
  108. fileref.setAttribute("href", filename);
  109. document.getElementsByTagName("head")[0].appendChild(fileref);
  110. </script>
  111. <!--LibreVideoJS JavaScript-->
  112. <script src="./js/cliplibrejs.dev.js"></script>
  113. </head>
  114. <body>
  115. <header>
  116. <h1>Reproductor LibreVideoJS</h1>
  117. </header>
  118. <section>
  119. <h2>Sección Libre</h2>
  120. <article class="clase1">
  121. <h3>Vídeo de Software Libre</h3>
  122. <video id="example" controls="controls" preload="none" poster="images/poster.jpg" data-setup="{}">
  123. <source data-res="original" src="https://archive.org/download/libre848x476/libre640x480.ogv" type="video/ogg">
  124. <source data-res="480p" src="https://archive.org/download/libre848x476/libre848x476.ogv" type="video/ogg">
  125. <source data-res="240p" src="https://archive.org/download/libre848x476/libre320x240.ogv" type="video/ogg">
  126. <source data-res="144p" src="https://archive.org/download/libre848x476/libre256x144.ogv" type="video/ogg">
  127. <track kind="captions" src="subtitles/libre_en.vtt" srclang="en" label="English">
  128. <track kind="captions" src="subtitles/libre_es.vtt" srclang="es" label="Español" default="">
  129. <track kind="subtitles" src="subtitles/libre_en.vtt" srclang="en" label="English">
  130. <p class="no_html5">Lo siento, este navegador no soporta HTML 5. Por favor, cambia o actualiza tu navegador Web</p>
  131. </video>
  132. <div class="change_color">
  133. <input type="Button" onclick="multiColor('teal');" value="teal">
  134. <input type="Button" onclick="multiColor('blue');" value="blue">
  135. <input type="Button" onclick="multiColor('yellow');" value="yellow">
  136. <input type="Button" onclick="multiColor('red');" value="red">
  137. <input type="Button" onclick="multiColor('purple');" value="purple">
  138. <input type="Button" onclick="multiColor('grey');" value="grey">
  139. </div>
  140. </article>
  141. </section>
  142. <p>Conferencia de Richard M. Stallman en Retina | España</p>
  143. <p>Puede: <a href="https://archive.org/download/libre848x476/libre640x480.ogv" download="Conferencia-de-Richard-M.-Stallman-en-Retina-España" target="_blank">Descargar el vídeo</a></p>
  144. <aside class="clase2">
  145. <h3>¿Qué es el software Libre?</h3>
  146. <blockquote cite="https://www.gnu.org/home.es.html">
  147. <p>
  148. Software libre significa que los usuarios tienen la libertad de ejecutar, copiar, distribuir, estudiar, modificar y mejorar el software.
  149. </p>
  150. <p>
  151. El software libre es una cuestión de libertad, no de precio. Para entender el concepto, debe pensarse en «Libre» como en «Libertad de expresión», no como en «cerveza gratis».
  152. </p>
  153. </blockquote>
  154. </aside>
  155. <!-- Quality Selector + Hotkeys + Change of Colors-->
  156. <script type="text/javascript">
  157. // Insert class base
  158. var estilos = document.getElementById("example");
  159. estilos.className += " cliplibre-js-responsive-container librevjs-hd cliplibre-js librevjs-libre-mix-skin";
  160. // funciones
  161. cliplibrejs('#example', {
  162. plugins: {
  163. resolutionSelector: {
  164. force_types: ['video/webm', 'video/ogg'],
  165. default_res: "480p",
  166. }
  167. },
  168. nativeControlsForTouch: false
  169. }).ready(function(){
  170. this.hotkeys({
  171. volumeStep: 0.1,
  172. seekStep: 5,
  173. enableMute: true,
  174. enableFullscreen: true,
  175. enableNumbers: true,
  176. });
  177. });
  178. function multiColor(_color) {
  179. history.replaceState({}, '', '?color=' + _color);
  180. location.reload();
  181. };
  182. </script>
  183. <!--
  184. Abajo ↓ : Códigos individuales
  185. -->
  186. <!-- Quality Selector -->
  187. <!--
  188. <script type="text/javascript">
  189. cliplibrejs('#example', {
  190. plugins: {
  191. resolutionSelector: {
  192. force_types: ['video/webm', 'video/ogg'],
  193. default_res: "480p"
  194. }
  195. },
  196. nativeControlsForTouch: false
  197. });
  198. function multiColor(_color) {
  199. history.replaceState({}, '', '?color=' + _color);
  200. location.reload();
  201. };
  202. </script>
  203. -->
  204. <!-- Hotkeys -->
  205. <!--
  206. <script>
  207. // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
  208. cliplibrejs('#example').ready(function() {
  209. this.hotkeys({
  210. volumeStep: 0.1,
  211. seekStep: 5,
  212. enableMute: true,
  213. enableFullscreen: true,
  214. enableNumbers: true
  215. });
  216. });
  217. // @license-end
  218. </script>
  219. -->
  220. <footer>
  221. Basado en VideoJS, depurado y escrito por Jesús Eduardo en el año 2016 - <span id="year"></span>.
  222. </footer>
  223. <!--Script NO necesario - solo para la fecha actual-->
  224. <script src="./js/fecha.js"></script>
  225. </body>
  226. </html>