fix ui issue
Some checks failed
buildbot/travis_bionic Build done.

This commit is contained in:
Muzahid 2022-02-03 19:10:36 +05:30
parent 68bed58cbb
commit c0ce5bca96
Signed by: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA
2 changed files with 129 additions and 140 deletions

View File

@ -59,7 +59,6 @@
<!-- Sidebar scroller start --> <!-- Sidebar scroller start -->
</div> </div>
<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 +67,19 @@
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>

View File

@ -6,9 +6,11 @@
font-family: Verdana, Geneva, Tahoma, sans-serif; font-family: Verdana, Geneva, Tahoma, sans-serif;
font-weight: normal; font-weight: normal;
} }
body { body {
background: #fff; background: #fff;
} }
.heading { .heading {
color: dimgrey; color: dimgrey;
font-size: 40px; font-size: 40px;
@ -23,16 +25,18 @@ body{
align-items: flex-start; align-items: flex-start;
padding: 5px 5%; padding: 5px 5%;
} }
.container .main-video { .container .main-video {
background: white; background: white;
border-radius: 5px; border-radius: 5px;
padding: 10px; padding: 10px;
} }
.container .main-video video { .container .main-video video {
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
} }
.container .main-video video .title { .container .main-video video .title {
color: grey; color: grey;
font-size: 23px; font-size: 23px;
@ -45,16 +49,13 @@ body{
border-radius: 5px; border-radius: 5px;
height: 520px; height: 520px;
overflow-y: scroll; overflow-y: scroll;
} }
.container .video-list .vid video { .container .video-list .vid video {
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
} }
.container .main-video .title { .container .main-video .title {
color: grey; color: grey;
font-size: 23px; font-size: 23px;
@ -62,34 +63,25 @@ body{
padding-bottom: 15px; padding-bottom: 15px;
} }
.container .video-list{
background: white;
border-radius: 5px;
height: 100%;
overflow-y: scroll;
}
.container .video-list::-webkit-scrollbar { .container .video-list::-webkit-scrollbar {
width: 7px; 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 { .container .video-list::-webkit-scrollbar-thumb {
background: #ccc; background: #ccc;
border-radius: 50px; border-radius: 50px;
} }
.container .video-list .vid video { .container .video-list .vid video {
width: 100px; width: 100px;
border-radius: 5px; border-radius: 5px;
} }
.container .video-list .vid { .container .video-list .vid {
display: flex; display: flex;
gap: 15px; gap: 15px;
@ -101,6 +93,7 @@ body{
cursor: pointer; cursor: pointer;
flex-direction: column; flex-direction: column;
} }
.container .video-list .vid:hover { .container .video-list .vid:hover {
background: white; background: white;
} }
@ -108,6 +101,7 @@ body{
.container .video-list .vid.active { .container .video-list .vid.active {
background: #ccc; background: #ccc;
} }
.container .video-list .vid.active.title { .container .video-list .vid.active.title {
color: white; color: white;
} }
@ -124,21 +118,14 @@ body{
@media(max-width:994px) { @media(max-width:994px) {
.container { .container {
grid-template-columns: 1.5fr 1fr; grid-template-columns: 1.5fr 1fr;
padding: 10px; padding: 10px;
} }
} }
@media(max-width:778px) { @media(max-width:778px) {
.container { .container {
grid-template-columns: 1fr; grid-template-columns: 1fr;
padding: 10px; padding: 10px;
} }
} }