<link href='public/styles/partials/video_widget.css' rel='stylesheet' />

<div class="Navigation">
    <img onClick="channel.getVidContent(channel.yt_prevPageToken)" src="public/images/blue_left.png" />
    <img onClick="channel.getVidContent()" src='public/images/blue_home.png' />
    <img onClick="channel.getVidContent(channel.yt_nextPageToken)" src="public/images/blue_right.png" />
</div>

<div class='Screen'></div>

<script src='public/scripts/partials/channel.js'></script>

<script>
const script = document.createElement("script")
    script.src = "https://apis.google.com/js/client.js"
    script.onload = () => {
      window.gapi.load('client', () => {
        channel.getVidContent()
      })
    }

    document.body.appendChild(script)
</script>

 

.Screen{
    margin: 0 0 20px;
    background: var(--background);
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    grid-gap: 15px;
    padding: 15px;
}

.Screen div{
    position:relative;
    padding-top:56.25%;
}

.Screen div iframe{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border-width:0;
}

.Screen div:nth-child(1){
    grid-column: 1 / span 3;
}

.Screen  div:nth-child(2){
    grid-column: 4 / span 3;
}

.Screen  div:nth-child(3){
    grid-column: 1 / span 2;
}

.Screen  div:nth-child(4){
    grid-column: 3 / span 2;
}

.Screen  div:nth-child(5){
    grid-column: 5 / span 2;
}

.Navigation {
    background: var(--background);
    text-align: center;
    margin-top: 20px;
    padding: 10px 0 5px;
    border-bottom: 1px solid lightgrey;
}

.Navigation img{
    height: 40px;
}

.Navigation img:hover{
    cursor: pointer;
    opacity: .7;
}

@media only screen and (max-width: 600px){
    .Screen{
        grid-template-columns: 100%;
    }
    
    .Screen div:nth-child(1){
        grid-column: 1 / span 1;
    }
    
    .Screen  div:nth-child(2){
        grid-column: 1 / span 1;
    }
    
    .Screen  div:nth-child(3){
        grid-column: 1 / span 1;
    }
    
    .Screen  div:nth-child(4){
        grid-column: 1 / span 1;
    }
    
    .Screen  div:nth-child(5){
        grid-column: 1 / span 1;
    }
    
}

 

Epizy: http://khmerweb.epizy.com