Compare commits
No commits in common. "master" and "master" have entirely different histories.
BIN
00-intro.png
BIN
00-intro.png
Binary file not shown.
Before Width: | Height: | Size: 141 KiB |
BIN
01-analogies.png
BIN
01-analogies.png
Binary file not shown.
Before Width: | Height: | Size: 21 KiB |
Binary file not shown.
Before Width: | Height: | Size: 26 KiB |
BIN
03-faq.png
BIN
03-faq.png
Binary file not shown.
Before Width: | Height: | Size: 28 KiB |
85
index.html
85
index.html
|
@ -1,21 +1,21 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="./style.css">
|
<link rel="stylesheet" href="./style.css">
|
||||||
<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 preload="none" poster="00-intro.png">
|
<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>
|
||||||
|
@ -28,65 +28,56 @@
|
||||||
<!-- 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 preload="none" poster="00-intro.png">
|
<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>
|
||||||
<img src="00-intro.png" alt="00-intro" data-video="00-intro.mp4" data-vtt="00-intro.vtt">
|
|
||||||
|
|
||||||
<h3 class="title">01. Intro</h3>
|
<h3 class="title">01. Intro</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="vid">
|
<div class="vid ">
|
||||||
<img src="01-analogies.png" alt="01-analogies" data-video="01-analogies.mp4" data-vtt="01-analogies.vtt">
|
<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">
|
||||||
<img src="02-principles.png" alt="02-principles" data-video="02-principles.mp4" data-vtt="02-principles.vtt">
|
<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">
|
||||||
<img src="03-faq.png" alt="03-faq" data-video="03-faq.mp4" data-vtt="03-faq.vtt">
|
<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>
|
||||||
<h3 class="title">04. FAQ</h3>
|
<h3 class="title">04. FAQ</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Sidebar scroller start -->
|
<!-- Sidebar scroller start -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
|
||||||
let listVideo= document.querySelectorAll('.video-list .vid');
|
<script>
|
||||||
let mainVideo= document.querySelector('.main-video video')
|
let listVideo= document.querySelectorAll('.video-list .vid');
|
||||||
let title = document.querySelector('.main-video .title')
|
let mainVideo= document.querySelector('.main-video video')
|
||||||
listVideo.forEach(video =>{
|
let title = document.querySelector('.main-video .title')
|
||||||
if(video){
|
listVideo.forEach(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');
|
||||||
let src = document.getElementsByClassName('active').item('img').children[0].attributes['data-video'].nodeValue;
|
if(video.classList.contains('active')){
|
||||||
// let vtt = document.getElementsByClassName('active').item('img').children[0].attributes['data-vtt'].nodeValue;
|
let src = video.children[0].getAttribute('src');
|
||||||
let poster = document.getElementsByClassName('active').item('img').children[0].src;
|
mainVideo.src = src;
|
||||||
if(video.classList.contains('active')){
|
let text = video.children[1].innerHTML;
|
||||||
mainVideo.src = src;
|
title.innerHTML = text;
|
||||||
mainVideo.children[0].attributes['src'].nodeValue = src;
|
};
|
||||||
// mainVideo.children[1].attributes['src'].nodeValue = vtt;
|
};
|
||||||
mainVideo.poster = poster;
|
});
|
||||||
let text = video.children[1].innerHTML;
|
|
||||||
title.innerHTML = text;
|
|
||||||
};
|
</script>
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
297
style.css
297
style.css
|
@ -1,155 +1,144 @@
|
||||||
* {
|
*{
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
-webkit-box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
text-transform: capitalize;
|
||||||
text-transform: capitalize;
|
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
||||||
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
font-weight: normal;
|
||||||
font-weight: normal;
|
}
|
||||||
}
|
body{
|
||||||
|
background: #fff;
|
||||||
body {
|
}
|
||||||
background: #fff;
|
.heading{
|
||||||
overflow: hidden;
|
color: dimgrey;
|
||||||
}
|
font-size: 40px;
|
||||||
|
/*text-align: center;*/
|
||||||
.heading {
|
padding: 10px;
|
||||||
color: dimgrey;
|
}
|
||||||
font-size: 40px;
|
|
||||||
padding: 10px;
|
.container{
|
||||||
}
|
display: grid;
|
||||||
|
grid-template-columns: 2fr 1fr;
|
||||||
.container {
|
gap: 15px;
|
||||||
display: -ms-grid;
|
align-items: flex-start;
|
||||||
display: grid;
|
padding: 5px 5%;
|
||||||
-ms-grid-columns: 2fr 1fr;
|
}
|
||||||
grid-template-columns: 2fr 1fr;
|
.container .main-video{
|
||||||
gap: 15px;
|
background: white;
|
||||||
-webkit-box-align: start;
|
border-radius: 5px;
|
||||||
-ms-flex-align: start;
|
padding: 10px;
|
||||||
align-items: flex-start;
|
}
|
||||||
padding: 5px 5%;
|
.container .main-video video{
|
||||||
}
|
width: 100%;
|
||||||
|
border-radius: 5px;
|
||||||
.container .main-video {
|
|
||||||
background: white;
|
}
|
||||||
border-radius: 5px;
|
.container .main-video video .title{
|
||||||
padding: 10px;
|
color: grey;
|
||||||
}
|
font-size: 23px;
|
||||||
|
padding-top: 15px;
|
||||||
.container .main-video video {
|
padding-bottom: 15px;
|
||||||
width: 100%;
|
}
|
||||||
border-radius: 5px;
|
|
||||||
}
|
.container .video-list{
|
||||||
|
background: white;
|
||||||
.container .main-video video .title {
|
border-radius: 5px;
|
||||||
color: grey;
|
height: 520px;
|
||||||
font-size: 23px;
|
overflow-y: scroll;
|
||||||
padding-top: 15px;
|
|
||||||
padding-bottom: 15px;
|
|
||||||
}
|
}
|
||||||
|
.container .video-list .vid video{
|
||||||
.container .video-list {
|
width: 100%;
|
||||||
background: white;
|
border-radius: 5px;
|
||||||
border-radius: 5px;
|
|
||||||
height: 100vh;
|
}
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
.container .main-video .title{
|
||||||
.container .video-list .vid video {
|
color: grey;
|
||||||
width: 100%;
|
font-size: 23px;
|
||||||
border-radius: 5px;
|
padding-top: 15px;
|
||||||
}
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
.container .main-video .title {
|
|
||||||
color: grey;
|
.container .video-list{
|
||||||
font-size: 23px;
|
background: white;
|
||||||
padding-top: 15px;
|
border-radius: 5px;
|
||||||
padding-bottom: 15px;
|
height: 100%;
|
||||||
}
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
.container .video-list::-webkit-scrollbar {
|
|
||||||
width: 7px;
|
.container .video-list::-webkit-scrollbar{
|
||||||
}
|
width: 7px;
|
||||||
|
}
|
||||||
.container .video-list::-webkit-scrollbar-track {
|
.container .video-list::-webkit-scrollbar-track{
|
||||||
background: white;
|
background: white;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
}
|
|
||||||
|
}
|
||||||
.container .video-list::-webkit-scrollbar-thumb {
|
|
||||||
background: #ccc;
|
.container .video-list::-webkit-scrollbar-thumb{
|
||||||
border-radius: 50px;
|
background: #ccc;
|
||||||
}
|
border-radius: 50px;
|
||||||
|
|
||||||
.container .video-list .vid video {
|
}
|
||||||
width: 100px;
|
.container .video-list .vid video{
|
||||||
border-radius: 5px;
|
width: 100px;
|
||||||
}
|
border-radius: 5px;
|
||||||
|
|
||||||
.container .video-list .vid {
|
}
|
||||||
display: -webkit-box;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
.container .video-list .vid{
|
||||||
gap: 15px;
|
display: flex;
|
||||||
background: white;
|
gap: 15px;
|
||||||
border-radius: 5px;
|
background: white;
|
||||||
margin: 10px;
|
border-radius: 5px;
|
||||||
padding: 10px;
|
margin: 10px;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
padding: 10px;
|
||||||
cursor: pointer;
|
border: 1px solid rgba(0, 0, 0, .1);
|
||||||
-webkit-box-orient: vertical;
|
cursor: pointer;
|
||||||
-webkit-box-direction: normal;
|
flex-direction: column;
|
||||||
-ms-flex-direction: column;
|
}
|
||||||
flex-direction: column;
|
.container .video-list .vid:hover{
|
||||||
}
|
background: white;
|
||||||
|
}
|
||||||
.container .video-list .vid:hover {
|
|
||||||
background: white;
|
.container .video-list .vid.active{
|
||||||
}
|
background: #ccc;
|
||||||
|
}
|
||||||
.container .video-list .vid.active {
|
.container .video-list .vid.active.title{
|
||||||
background: #ccc;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container .video-list .vid.active.title {
|
.container .video-list .vid .title{
|
||||||
color: white;
|
color: grey;
|
||||||
}
|
font-size: 17px;
|
||||||
|
}
|
||||||
.container .video-list .vid .title {
|
|
||||||
color: grey;
|
.container .video-list .vid video {
|
||||||
font-size: 17px;
|
width: 100%;
|
||||||
}
|
border-radius: 5px;
|
||||||
|
}
|
||||||
.container .video-list .vid video {
|
|
||||||
width: 100%;
|
@media(max-width:994px){
|
||||||
border-radius: 5px;
|
.container{
|
||||||
}
|
|
||||||
|
grid-template-columns: 1.5fr 1fr;
|
||||||
@media (max-width: 994px) {
|
|
||||||
.container {
|
padding: 10px;
|
||||||
-ms-grid-columns: 1.5fr 1fr;
|
}
|
||||||
grid-template-columns: 1.5fr 1fr;
|
|
||||||
padding: 10px;
|
}
|
||||||
}
|
@media(max-width:778px){
|
||||||
}
|
.container{
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
grid-template-columns: 1fr;
|
||||||
.container {
|
|
||||||
-ms-grid-columns: 1fr;
|
padding: 10px;
|
||||||
grid-template-columns: 1fr;
|
}
|
||||||
padding: 10px;
|
|
||||||
}
|
}
|
||||||
.container .video-list {
|
|
||||||
background: white;
|
|
||||||
border-radius: 5px;
|
|
||||||
height: 100VH;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 75vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
|
||||||
.vid img{
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user