aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-03-25 11:51:37 -0500
committerJesús <heckyel@hyperbola.info>2019-03-25 11:51:37 -0500
commit2764af128e53d47fab9a60a512ca47c3124345d3 (patch)
tree915278b7106c9640f5ee4153705725ba6d3a1626
parente8e749091e10d44131fe68203fbcae1fb0a6c789 (diff)
downloadcl-theme-2764af128e53d47fab9a60a512ca47c3124345d3.tar.lz
cl-theme-2764af128e53d47fab9a60a512ca47c3124345d3.tar.xz
cl-theme-2764af128e53d47fab9a60a512ca47c3124345d3.zip
added demo playlist
-rw-r--r--index.html2
-rw-r--r--post.html63
-rw-r--r--post2.html391
3 files changed, 398 insertions, 58 deletions
diff --git a/index.html b/index.html
index 8309c2b..f8119c4 100644
--- a/index.html
+++ b/index.html
@@ -164,7 +164,7 @@
<!-- post header -->
<div class="card-content-header">
- <h4 class="title is-4"><a href="post.html">Header for Post</a></h4>
+ <h4 class="title is-4"><a href="post2.html">Header for Post</a></h4>
</div>
<!-- end of post header -->
diff --git a/post.html b/post.html
index c18aece..9307e22 100644
--- a/post.html
+++ b/post.html
@@ -9,6 +9,9 @@
<link rel="stylesheet" href="dist/css/bulma.css">
<link rel="stylesheet" href="dist/css/style.css">
+ <!-- aplaylist -->
+ <link rel="stylesheet" href="dist/css/aplaylist.css">
+
</head>
<body>
<!-- navigation -->
@@ -396,62 +399,8 @@
<script src="dist/js/navbar-burger.js"></script>
<!-- end of navbar-burger -->
- <!-- playlist -->
- <script>
- init();
-
- function init(){
- var video = document.getElementById('video');
- var playlist = document.getElementById('playlist');
- var tracks = playlist.getElementsByTagName('a');
- video.volume = 0.50;
-
- //Cuenta los tracks
- for(var track in tracks) {
- var link = tracks[track];
- if(typeof link === "function" || typeof link === "number") continue;
- link.addEventListener('click', function(e) {
- e.preventDefault();
- var song = this.getAttribute('href');
- run(song, video, this);
- });
- }
- //Agregamos evento para reproducir el siguiente items
- video.addEventListener('ended',function(e) {
- for(var track in tracks) {
- var link = tracks[track];
- var nextTrack = parseInt(track) + 1;
- if(typeof link === "function" || typeof link === "number") continue;
- if(!this.src) this.src = tracks[0];
- if(track == (tracks.length - 1)) nextTrack = 0;
- console.log(nextTrack);
- if(link.getAttribute('href') === this.src) {
- var nextLink = tracks[nextTrack];
- run(nextLink.getAttribute('href'), video, nextLink);
- break;
- }
- }
- });
- }
-
- function run(song, video, link){
- var parent = link.parentElement;
- //Quita el active de todos los elementos de la lista
- var items = parent.parentElement.getElementsByTagName('li');
- for(var item in items) {
- if(items[item].classList)
- items[item].classList.remove("is-active-play");
- }
-
- //Agrega active a este elemento
- parent.classList.add("is-active-play");
-
- //Inicia la reproducción
- video.src = song;
- video.load();
- video.play();
- }
- </script>
- <!-- /playlist -->
+ <!-- aplaylist -->
+ <script src="dist/js/aplaylist.js"></script>
+ <!-- /aplaylist -->
</body>
</html>
diff --git a/post2.html b/post2.html
new file mode 100644
index 0000000..e8f6aa1
--- /dev/null
+++ b/post2.html
@@ -0,0 +1,391 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>Conocimientos Libres</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <!-- stylesheets -->
+ <link rel="stylesheet" href="dist/css/bulma.css">
+ <link rel="stylesheet" href="dist/css/style.css">
+
+ <!-- single playlist -->
+ <link rel="stylesheet" href="dist/css/playlist.css">
+
+ </head>
+ <body>
+ <!-- navigation -->
+ <header class="navigation">
+ <nav class="navbar">
+ <div class="container">
+ <!-- nav site title -->
+ <!-- Input for menu-mobile with checkbox-->
+ <input id="navbar-toggle-cbox" role="button" type="checkbox">
+ <!-- End Input for menu-mobile with checkbox-->
+ <div class="navbar-brand">
+ <a class="navbar-item">
+ <h3 class="title is-3" style="color: white;">CL</h3>
+ </a>
+ <!-- this "navbar-burger" hamburger menu is only visible on mobile -->
+ <label class="navbar-burger" for="navbar-toggle-cbox" data-target="navMenu">
+ <span></span>
+ <span></span>
+ <span></span>
+ </label>
+ <!-- end of burger -->
+ </div>
+
+ <!-- this "navbar-menu" is hidden on mobile -->
+ <div id="navMenu" class="navbar-menu">
+ <ul class="navbar-end">
+ <li><a href="index.html" class="navbar-item is-tab">Home</a></li>
+ <li><a href="post.html" class="navbar-item is-tab is-active">Static Post</a></li>
+ <li><a href="about.html" class="navbar-item is-tab">About</a></li>
+ <li><a href="contact.html" class="navbar-item is-tab">Contact</a></li>
+ </ul>
+ </div>
+ <!-- end of nav -->
+ </div>
+ </nav>
+ </header>
+ <!-- end navigation -->
+
+ <!-- page header (title, etc) -->
+ <div class="main-header">
+ <section class="hero">
+ <div class="hero-body">
+ <div class="container">
+ <div class="has-text-centered">
+ <!-- header &&subheader -->
+ <h1 class="title is-1 is-spaced">Conocimientos Libres</h1>
+ <h4 class="subtitle is-4">Sitio de información sobre Software Libre</h4>
+ <!-- end of header && subheader -->
+ </div>
+ </div>
+ </div>
+ </section>
+ </div>
+ <!-- end page header -->
+
+ <!-- page content -->
+ <div class="main-content">
+ <div class="container">
+ <!-- start of posts -->
+ <div class="columns is-multiline is-centered">
+ <!-- start of post -->
+ <article class="column is-7">
+ <div class="card">
+ <!-- image for post -->
+ <div class="card-image">
+ <figure class="image">
+ <img src="https://placehold.it/745x372" alt="Image">
+ </figure>
+ </div>
+ <!-- end of image for post -->
+
+ <!-- post header -->
+ <div class="card-content-header has-text-centered">
+ <h4 class="title is-4">Header for Post</h4>
+ </div>
+ <!-- end of post header -->
+
+ <!-- post content -->
+ <div class="card-content">
+ <div class="content">
+ <div class="card-inner-wrapper">
+ <!-- post text -->
+ <div class="card-content-text has-text-justified">
+ <p> Phasellus bibendum lectus magna, vitae sagittis orci feugiat non. Aenean varius diam vel nunc tincidunt congue. In hendrerit nulla quis justo hendrerit placerat. Aliquam volutpat nisl id nulla scelerisque, et dictum metus interdum. Integer hendrerit pellentesque velit, efficitur dapibus enim efficitur nec. Integer quis imperdiet nulla, in commodo lectus. Nunc vitae diam accumsan, rutrum urna vitae, ultricies velit. Vivamus rhoncus volutpat quam, id iaculis erat placerat vitae. Proin vehicula sodales odio, et dignissim turpis aliquet vel.</p>
+ <p>Donec id nulla mauris. Suspendisse auctor felis id orci pulvinar, quis ultricies enim porttitor. Maecenas posuere, metus nec luctus interdum, sapien velit faucibus turpis, in cursus magna nulla vitae elit. Phasellus eleifend nulla eu facilisis malesuada. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla at ex et orci rutrum venenatis et gravida elit. Phasellus fermentum, metus vel euismod finibus, velit arcu euismod ipsum, vitae dapibus ipsum magna sit amet elit. In vestibulum, urna ut fringilla mollis, augue turpis laoreet metus, id placerat quam odio vel justo. Phasellus a lectus et felis porta tempor. </p>
+
+ <aside class="single-play-menu">
+
+ <video id="video" class="player-ply" playsinline controls poster='https://conocimientoslibres.tuxfamily.org/en/wp-content/uploads/article/images/2018/05/curso-hyperbola-1.png'>
+ <source src="https://archive.org/download/hyperbola-video-1/Hyperbola%20Base%20%2B%20Usuario%201%E2%81%846.webm" type="video/webm"/>
+ <p>Lo siento, tu navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p>
+ </video>
+
+
+ <video id="video" class="player-ply" playsinline controls poster='https://conocimientoslibres.tuxfamily.org/en/wp-content/uploads/article/images/2018/05/curso-hyperbola-1.png'>
+ <source src="https://archive.org/download/hyperbola-video-1/Hyperbola%20Base%20%2B%20Usuario%201%E2%81%846.webm" type="video/webm"/>
+ <p>Lo siento, tu navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p>
+ </video>
+
+ <video id="video" class="player-ply" playsinline controls poster='https://conocimientoslibres.tuxfamily.org/en/wp-content/uploads/article/images/2018/05/curso-hyperbola-1.png'>
+ <source src="https://archive.org/download/hyperbola-video-1/Hyperbola%20Base%20%2B%20Usuario%201%E2%81%846.webm" type="video/webm"/>
+ <p>Lo siento, tu navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p>
+ </video>
+
+
+ <video id="video" class="player-ply" playsinline controls poster='https://conocimientoslibres.tuxfamily.org/en/wp-content/uploads/article/images/2018/05/curso-hyperbola-1.png'>
+ <source src="https://archive.org/download/hyperbola-video-1/Hyperbola%20Base%20%2B%20Usuario%201%E2%81%846.webm" type="video/webm"/>
+ <p>Lo siento, tu navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p>
+ </video>
+
+
+ <video id="video" class="player-ply" playsinline controls poster='https://conocimientoslibres.tuxfamily.org/en/wp-content/uploads/article/images/2018/05/curso-hyperbola-1.png'>
+ <source src="https://archive.org/download/hyperbola-video-1/Hyperbola%20Base%20%2B%20Usuario%201%E2%81%846.webm" type="video/webm"/>
+ <p>Lo siento, tu navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p>
+ </video>
+
+ </aside>
+
+ </div>
+ <!-- end of post text -->
+
+ <!-- post footer -->
+ <div class="card-content-footer-small">
+ <div class="navbar is-social-center">
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#gnusocial" />
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#diaspora" />
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#mastodom" />
+ </svg>
+ </span>
+ </a>
+ </div>
+ <!-- post footer nav -->
+ <div class="columns">
+ <div class="column has-text-left">
+ <a class="button is-small is-button-grey" href="index.html">Back to Home</a>
+ </div>
+ <div class="column has-text-right">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#calendar" />
+ </svg>
+ </span>
+ <small>11:09 PM - 1 Jan 2019</small>
+ </div>
+ </div>
+ <!-- end of post footer nav -->
+ </div>
+ <!-- end of post footer -->
+
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- end of post content -->
+
+ <!-- post comments -->
+ <div class="comments-content">
+ <!-- comment header -->
+ <div class="comments-header has-text-centered">
+ <h4 class="title is-4">Comments</h4>
+ </div>
+ <!-- end of comment header -->
+
+ <div class="comments-wrapper">
+ <!-- comments content -->
+ <div class="comments-content">
+ <!-- start of comment -->
+ <div class="media">
+ <!-- comment user image -->
+ <figure class="media-left">
+ <p class="image is-64x64">
+ <img src="https://bulma.io/images/placeholders/128x128.png" alt="placeholder">
+ </p>
+ </figure>
+ <!-- end of comment user image -->
+
+ <!-- comment content -->
+ <div class="media-content">
+ <div class="content">
+ <p>
+ <strong>Barbara Middleton</strong>
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis porta eros lacus, nec ultricies elit blandit non. Suspendisse pellentesque mauris sit amet dolor blandit rutrum. Nunc in tempus turpis.</p>
+ <small><a>Like</a> | <a>Reply</a> | 3 hrs</small>
+ </div>
+
+ <!-- start of sub-comment -->
+ <div class="media">
+ <!-- sub-comment user image -->
+ <figure class="media-left">
+ <p class="image is-48x48">
+ <img src="https://bulma.io/images/placeholders/96x96.png" alt="placeholder">
+ </p>
+ </figure>
+ <!-- end of sub-comment user-image -->
+
+ <!-- start of sub-comment content -->
+ <div class="media-content">
+ <div class="content">
+ <p>
+ <strong>Sean Brown</strong>
+ <p>Donec sollicitudin urna eget eros malesuada sagittis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam blandit nisl a nulla sagittis, a lobortis leo feugiat.</p>
+ <small><a>Like</a> | <a>Reply</a> | 2 hrs</small>
+ </div>
+
+ <!-- start of sub-sub-comment -->
+ <div class="media">
+ <p>Vivamus quis semper metus, non tincidunt dolor. Vivamus in mi eu lorem cursus ullamcorper sit amet nec massa.</p>
+ </div>
+ <!-- end of sub-sub-comment -->
+
+ <!-- start of sub-sub-comment -->
+ <div class="media">
+ <p>Morbi vitae diam et purus tincidunt porttitor vel vitae augue. Praesent malesuada metus sed pharetra euismod. Cras tellus odio, tincidunt iaculis diam non, porta aliquet tortor.</p>
+ </div>
+ <!-- end of sub-sub-comment -->
+ </div>
+ <!-- end of sub-comment content -->
+
+ </div>
+ <!-- end of sub-comment -->
+
+ <!-- start of sub-comment -->
+ <div class="media">
+ <!-- start of sub-comment user image -->
+ <figure class="media-left">
+ <p class="image is-48x48">
+ <img src="https://bulma.io/images/placeholders/96x96.png" alt="placeholder">
+ </p>
+ </figure>
+ <!-- end of sub-comment user image -->
+
+ <!-- start of sub-comment content -->
+ <div class="media-content">
+ <div class="content">
+ <p>
+ <strong>Kayli Eunice </strong>
+ <p>Sed convallis scelerisque mauris, non pulvinar nunc mattis vel. Maecenas varius felis sit amet magna vestibulum euismod malesuada cursus libero. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus lacinia non nisl id feugiat.</p>
+ <small><a>Like</a> | <a>Reply</a> | 2 hrs</small>
+ </div>
+ </div>
+ <!-- end of sub-comment content -->
+ </div>
+ <!-- end of sub-comment -->
+
+ </div>
+ <!-- end of comment content -->
+ </div>
+ <!-- end of comments -->
+
+ <!-- form begin -->
+ <div class="media">
+ <figure class="media-left">
+ <p class="image is-64x64">
+ <img src="https://bulma.io/images/placeholders/128x128.png" alt="placeholder">
+ </p>
+ </figure>
+ <div class="media-content">
+ <div class="field">
+ <p class="control">
+ <textarea class="textarea" placeholder="Add a comment..."></textarea>
+ </p>
+ </div>
+ <div class="field">
+ <p class="control">
+ <button class="button is-button-grey">Post comment</button>
+ </p>
+ </div>
+ </div>
+ </div>
+ <!-- form end -->
+
+ </div>
+ </div>
+ </div>
+ <!-- end of comments -->
+
+ </article>
+ <!-- end of post -->
+ </div>
+ <!-- end of post column -->
+ </div>
+ </div>
+ <!-- end of page content -->
+
+ <!-- footer: will stick to the bottom -->
+ <footer class="footer footer-top-shadow">
+ <!-- header nav content -->
+ <div class="navbar is-social-center">
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#diaspora"/>
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#gnusocial"/>
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#pump"/>
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#pixelfed"/>
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#peertube"/>
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#mediagoblin"/>
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#matrix"/>
+ </svg>
+ </span>
+ </a>
+ <a class="navbar-item" href="">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#rss"/>
+ </svg>
+ </span>
+ </a>
+ </div>
+ <!-- end of header nav content -->
+ <div class="container has-text-centered">
+ <span class="soumaicon">
+ <svg>
+ <use href="./dist/images/icons/master.svg#libregit"/>
+ </svg>
+ </span>
+ <p>template by <a href="https://libregit.org/heckyel">libregit.org/heckyel</a></p>
+ <p>this template is Free Software</p>
+ </div>
+ </footer>
+ <!-- end of footer -->
+ <!-- navbar-burger -->
+ <script src="dist/js/navbar-burger.js"></script>
+ <!-- end of navbar-burger -->
+ </body>
+</html>