changes basic ui
This commit is contained in:
parent
68bed58cbb
commit
5f96767f49
BIN
00-intro.mp4
BIN
00-intro.mp4
Binary file not shown.
BIN
01-analogies.mp4
BIN
01-analogies.mp4
Binary file not shown.
Binary file not shown.
BIN
03-faq.mp4
BIN
03-faq.mp4
Binary file not shown.
28
index.html
28
index.html
|
@ -8,36 +8,36 @@
|
||||||
<title>Educational Bitcoin videos</title>
|
<title>Educational Bitcoin videos</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<h3 class="heading">Bitcoin educational videos </h3>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="heading"> Bitcoin educational videos </h1>
|
|
||||||
</div>
|
|
||||||
<div class="container">
|
|
||||||
<!-- Main video container start -->
|
|
||||||
<div class="main-video">
|
<div class="main-video">
|
||||||
<div class="video">
|
<div class="video">
|
||||||
<video controls autoplay>
|
<video controls autoplay>
|
||||||
<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>
|
</div>
|
||||||
<!-- Main video container end -->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 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 autoplay>
|
||||||
<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 autoplay>
|
||||||
<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>
|
||||||
|
@ -45,6 +45,7 @@
|
||||||
<video controls muted autoplay>
|
<video controls muted autoplay>
|
||||||
<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>
|
||||||
|
@ -52,14 +53,15 @@
|
||||||
<video controls muted autoplay>
|
<video controls muted autoplay>
|
||||||
<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>
|
||||||
<h3 class="title">04. FAQ</h3>
|
<h3 class="title">04. FAQ</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Sidebar scroller start -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"/> -->
|
||||||
<script>
|
<script>
|
||||||
let listVideo= document.querySelectorAll('.video-list .vid');
|
let listVideo= document.querySelectorAll('.video-list .vid');
|
||||||
let mainVideo= document.querySelector('.main-video video')
|
let mainVideo= document.querySelector('.main-video video')
|
||||||
|
@ -68,16 +70,18 @@
|
||||||
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)
|
||||||
|
let src = document.getElementsByClassName('active').item('video').children[0].currentSrc;
|
||||||
|
// let src = $('.active').children[0].currentSrc;
|
||||||
if(video.classList.contains('active')){
|
if(video.classList.contains('active')){
|
||||||
let src = video.children[0].getAttribute('src');
|
// let src = video
|
||||||
|
console.log("here is the src",src)
|
||||||
mainVideo.src = src;
|
mainVideo.src = src;
|
||||||
let text = video.children[1].innerHTML;
|
let text = video.children[1].innerHTML;
|
||||||
title.innerHTML = text;
|
title.innerHTML = text;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
10
style.css
10
style.css
|
@ -7,12 +7,12 @@
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
body{
|
body{
|
||||||
background: #fff;
|
background: transparent;
|
||||||
}
|
}
|
||||||
.heading{
|
.heading{
|
||||||
color: dimgrey;
|
color: #fff;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
/*text-align: center;*/
|
text-align: center;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ body{
|
||||||
.container .video-list{
|
.container .video-list{
|
||||||
background: white;
|
background: white;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
height: 100%;
|
height: 520px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ body{
|
||||||
}
|
}
|
||||||
|
|
||||||
.container .video-list::-webkit-scrollbar-thumb{
|
.container .video-list::-webkit-scrollbar-thumb{
|
||||||
background: #ccc;
|
background: grey;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user