2022-02-02 18:13:35 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="stylesheet" href="./style.css">
|
|
|
|
<title>Educational Bitcoin videos</title>
|
|
|
|
</head>
|
2021-12-24 03:34:45 +01:00
|
|
|
<body>
|
2022-02-02 18:13:35 +01:00
|
|
|
<h3 class="heading">Bitcoin educational videos </h3>
|
|
|
|
<div class="container">
|
|
|
|
<div class="main-video">
|
|
|
|
<div class="video">
|
|
|
|
<video controls autoplay>
|
|
|
|
<source src="00-intro.mp4" type="video/mp4">
|
|
|
|
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
|
|
|
|
|
|
|
</video>
|
|
|
|
<h3 class="title">01. Intro</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="video-list">
|
|
|
|
<div class="vid active">
|
|
|
|
<video controls muted autoplay>
|
|
|
|
<source src="00-intro.mp4" type="video/mp4">
|
|
|
|
<track default src="00-intro.vtt" kind="captions" srclang="en" label="English">
|
|
|
|
|
|
|
|
</video>
|
|
|
|
<h3 class="title">01. Intro</h3>
|
|
|
|
</div>
|
2021-12-24 03:34:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-02 18:13:35 +01:00
|
|
|
<div class="vid">
|
|
|
|
<video controls muted autoplay>
|
|
|
|
<source src="01-analogies.mp4" type="video/mp4">
|
|
|
|
<track default src="01-analogies.vtt" kind="captions" srclang="en" label="English">
|
|
|
|
|
|
|
|
</video>
|
|
|
|
<h3 class="title">02. Analogies</h3>
|
|
|
|
</div>
|
|
|
|
<div class="vid">
|
|
|
|
<video controls muted autoplay>
|
|
|
|
<source src="02-principles.mp4" type="video/mp4">
|
|
|
|
<track default src="02-principles.vtt" kind="captions" srclang="en" label="English">
|
|
|
|
|
|
|
|
</video>
|
|
|
|
<h3 class="title">03. Principles</h3>
|
|
|
|
</div>
|
|
|
|
<div class="vid">
|
|
|
|
<video controls muted autoplay>
|
|
|
|
<source src="03-faq.mp4" type="video/mp4">
|
|
|
|
<track default src="03-faq.vtt" kind="captions" srclang="en" label="English">
|
|
|
|
|
|
|
|
</video>
|
|
|
|
<h3 class="title">04. FAQ</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"/> -->
|
|
|
|
<script>
|
|
|
|
let listVideo= document.querySelectorAll('.video-list .vid');
|
|
|
|
let mainVideo= document.querySelector('.main-video video')
|
|
|
|
let title = document.querySelector('.main-video .title')
|
|
|
|
listVideo.forEach(video =>{
|
|
|
|
video.onclick = () =>{
|
|
|
|
listVideo.forEach(vid => vid.classList.remove('active'));
|
|
|
|
video.classList.add('active');
|
|
|
|
console.log("video",video)
|
|
|
|
let src = document.getElementsByClassName('active').item('video').children[0].currentSrc;
|
|
|
|
// let src = $('.active').children[0].currentSrc;
|
|
|
|
if(video.classList.contains('active')){
|
|
|
|
// let src = video
|
|
|
|
console.log("here is the src",src)
|
|
|
|
mainVideo.src = src;
|
|
|
|
let text = video.children[1].innerHTML;
|
|
|
|
title.innerHTML = text;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
</script>
|
2021-12-24 03:34:45 +01:00
|
|
|
</body>
|
2022-02-02 18:13:35 +01:00
|
|
|
</html>
|