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 untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA
2 changed files with 129 additions and 140 deletions

View File

@ -59,25 +59,27 @@
<!-- 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') let title = document.querySelector('.main-video .title')
let title = document.querySelector('.main-video .title') listVideo.forEach(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'); console.log("video",video)
if(video.classList.contains('active')){ let src = document.getElementsByClassName('active').item('video').children[0].currentSrc;
let src = video.children[0].getAttribute('src'); // let src = $('.active').children[0].currentSrc;
mainVideo.src = src; if(video.classList.contains('active')){
let text = video.children[1].innerHTML; // let src = video
title.innerHTML = text; console.log("here is the src",src)
mainVideo.src = src;
let text = video.children[1].innerHTML;
title.innerHTML = text;
};
}; };
}; });
}); </script>
</script>
</body> </body>
</html> </html>

231
style.css
View File

@ -1,144 +1,131 @@
*{ * {
margin: 0; margin: 0;
padding: 0; padding: 0;
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;
}
.heading{
color: dimgrey;
font-size: 40px;
/*text-align: center;*/
padding: 10px;
} }
.container{ body {
display: grid; background: #fff;
grid-template-columns: 2fr 1fr;
gap: 15px;
align-items: flex-start;
padding: 5px 5%;
}
.container .main-video{
background: white;
border-radius: 5px;
padding: 10px;
}
.container .main-video video{
width: 100%;
border-radius: 5px;
}
.container .main-video video .title{
color: grey;
font-size: 23px;
padding-top: 15px;
padding-bottom: 15px;
} }
.container .video-list{ .heading {
background: white; color: dimgrey;
border-radius: 5px; font-size: 40px;
height: 520px; /*text-align: center;*/
overflow-y: scroll; padding: 10px;
}
.container .video-list .vid video{
width: 100%;
border-radius: 5px;
} }
.container {
.container .main-video .title{ display: grid;
color: grey; grid-template-columns: 2fr 1fr;
font-size: 23px; gap: 15px;
padding-top: 15px; align-items: flex-start;
padding-bottom: 15px; padding: 5px 5%;
} }
.container .video-list{ .container .main-video {
background: white; background: white;
border-radius: 5px; border-radius: 5px;
height: 100%; padding: 10px;
overflow-y: scroll;
} }
.container .video-list::-webkit-scrollbar{ .container .main-video video {
width: 7px; width: 100%;
} border-radius: 5px;
.container .video-list::-webkit-scrollbar-track{
background: white;
border-radius: 50px;
} }
.container .video-list::-webkit-scrollbar-thumb{ .container .main-video video .title {
background: #ccc; color: grey;
border-radius: 50px; font-size: 23px;
padding-top: 15px;
} padding-bottom: 15px;
.container .video-list .vid video{
width: 100px;
border-radius: 5px;
} }
.container .video-list {
.container .video-list .vid{ background: white;
display: flex; border-radius: 5px;
gap: 15px; height: 520px;
background: white; overflow-y: scroll;
border-radius: 5px;
margin: 10px;
padding: 10px;
border: 1px solid rgba(0, 0, 0, .1);
cursor: pointer;
flex-direction: column;
}
.container .video-list .vid:hover{
background: white;
}
.container .video-list .vid.active{
background: #ccc;
}
.container .video-list .vid.active.title{
color: white;
}
.container .video-list .vid .title{
color: grey;
font-size: 17px;
} }
.container .video-list .vid video { .container .video-list .vid video {
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
} }
@media(max-width:994px){ .container .main-video .title {
.container{ color: grey;
font-size: 23px;
grid-template-columns: 1.5fr 1fr; padding-top: 15px;
padding-bottom: 15px;
padding: 10px;
}
}
@media(max-width:778px){
.container{
grid-template-columns: 1fr;
padding: 10px;
}
} }
.container .video-list::-webkit-scrollbar {
width: 7px;
}
.container .video-list::-webkit-scrollbar-track {
background: white;
border-radius: 50px;
}
.container .video-list::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 50px;
}
.container .video-list .vid video {
width: 100px;
border-radius: 5px;
}
.container .video-list .vid {
display: flex;
gap: 15px;
background: white;
border-radius: 5px;
margin: 10px;
padding: 10px;
border: 1px solid rgba(0, 0, 0, .1);
cursor: pointer;
flex-direction: column;
}
.container .video-list .vid:hover {
background: white;
}
.container .video-list .vid.active {
background: #ccc;
}
.container .video-list .vid.active.title {
color: white;
}
.container .video-list .vid .title {
color: grey;
font-size: 17px;
}
.container .video-list .vid video {
width: 100%;
border-radius: 5px;
}
@media(max-width:994px) {
.container {
grid-template-columns: 1.5fr 1fr;
padding: 10px;
}
}
@media(max-width:778px) {
.container {
grid-template-columns: 1fr;
padding: 10px;
}
}