This commit is contained in:
parent
c0ce5bca96
commit
a2fb88783e
BIN
00-intro.png
Normal file
BIN
00-intro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 141 KiB |
BIN
01-analogies.png
Normal file
BIN
01-analogies.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
02-principles.png
Normal file
BIN
02-principles.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
03-faq.png
Normal file
BIN
03-faq.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
24
index.html
24
index.html
|
@ -8,14 +8,14 @@
|
||||||
<title>Educational Bitcoin videos</title>
|
<title>Educational Bitcoin videos</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
|
||||||
<h1 class="heading"> Bitcoin educational videos </h1>
|
|
||||||
</div>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Main video container start -->
|
<!-- Main video container start -->
|
||||||
<div class="main-video">
|
<div class="main-video">
|
||||||
|
<h1 class="heading"> Bitcoin educational videos </h1>
|
||||||
|
|
||||||
<div class="video">
|
<div class="video">
|
||||||
<video controls autoplay>
|
<video controls preload="none" poster="00-intro.png">
|
||||||
<source src="00-intro.mp4" type="video/mp4">
|
<source src="00-intro.mp4" type="video/mp4">
|
||||||
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
||||||
</video>
|
</video>
|
||||||
|
@ -28,28 +28,28 @@
|
||||||
<!-- Sidebar scroller start -->
|
<!-- Sidebar scroller start -->
|
||||||
<div class="video-list">
|
<div class="video-list">
|
||||||
<div class="vid active">
|
<div class="vid active">
|
||||||
<video controls muted autoplay>
|
<video controls muted preload="none" poster="00-intro.png">
|
||||||
<source src="00-intro.mp4" type="video/mp4">
|
<source src="00-intro.mp4" type="video/mp4">
|
||||||
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
||||||
</video>
|
</video>
|
||||||
<h3 class="title">01. Intro</h3>
|
<h3 class="title">01. Intro</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="vid">
|
<div class="vid">
|
||||||
<video controls muted autoplay>
|
<video controls muted preload="none" poster="01-analogies.png">
|
||||||
<source src="01-analogies.mp4" type="video/mp4">
|
<source src="01-analogies.mp4" type="video/mp4">
|
||||||
<track default src="01-analogies.vtt" kind="captions" srclang="en" label="English">
|
<track default src="01-analogies.vtt" kind="captions" srclang="en" label="English">
|
||||||
</video>
|
</video>
|
||||||
<h3 class="title">02. Analogies</h3>
|
<h3 class="title">02. Analogies</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="vid">
|
<div class="vid">
|
||||||
<video controls muted autoplay>
|
<video controls muted preload="none" poster="02-principles.png">
|
||||||
<source src="02-principles.mp4" type="video/mp4">
|
<source src="02-principles.mp4" type="video/mp4">
|
||||||
<track default src="02-principles.vtt" kind="captions" srclang="en" label="English">
|
<track default src="02-principles.vtt" kind="captions" srclang="en" label="English">
|
||||||
</video>
|
</video>
|
||||||
<h3 class="title">03. Principles</h3>
|
<h3 class="title">03. Principles</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="vid">
|
<div class="vid">
|
||||||
<video controls muted autoplay>
|
<video controls muted preload="none" poster="03-faq.png">
|
||||||
<source src="03-faq.mp4" type="video/mp4">
|
<source src="03-faq.mp4" type="video/mp4">
|
||||||
<track default src="03-faq.vtt" kind="captions" srclang="en" label="English">
|
<track default src="03-faq.vtt" kind="captions" srclang="en" label="English">
|
||||||
</video>
|
</video>
|
||||||
|
@ -64,22 +64,24 @@
|
||||||
let mainVideo= document.querySelector('.main-video video')
|
let mainVideo= document.querySelector('.main-video video')
|
||||||
let title = document.querySelector('.main-video .title')
|
let title = document.querySelector('.main-video .title')
|
||||||
listVideo.forEach(video =>{
|
listVideo.forEach(video =>{
|
||||||
|
if(video){
|
||||||
video.onclick = () =>{
|
video.onclick = () =>{
|
||||||
listVideo.forEach(vid => vid.classList.remove('active'));
|
listVideo.forEach(vid => vid.classList.remove('active'));
|
||||||
video.classList.add('active');
|
video.classList.add('active');
|
||||||
console.log("video",video)
|
console.log("video",video)
|
||||||
let src = document.getElementsByClassName('active').item('video').children[0].currentSrc;
|
let src = document.getElementsByClassName('active').item('video').children[0].currentSrc;
|
||||||
// let src = $('.active').children[0].currentSrc;
|
let poster = document.getElementsByClassName('active').item('video').children[0].attributes.poster.nodeValue;
|
||||||
if(video.classList.contains('active')){
|
if(video.classList.contains('active')){
|
||||||
// let src = video
|
|
||||||
console.log("here is the src",src)
|
console.log("here is the src",src)
|
||||||
|
console.log("0-0-0-", poster)
|
||||||
mainVideo.src = src;
|
mainVideo.src = src;
|
||||||
|
mainVideo.poster = poster;
|
||||||
let text = video.children[1].innerHTML;
|
let text = video.children[1].innerHTML;
|
||||||
title.innerHTML = text;
|
title.innerHTML = text;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -9,12 +9,12 @@
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading {
|
.heading {
|
||||||
color: dimgrey;
|
color: dimgrey;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
/*text-align: center;*/
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ body {
|
||||||
.container .video-list {
|
.container .video-list {
|
||||||
background: white;
|
background: white;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
height: 520px;
|
height: 100vh;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user