Difference between revisions of "Template:Queens Canada/Scripts"

m
m
Line 257: Line 257:
 
     // the second line adjust the scrolling to accomadate for the wiki bar at the top
 
     // the second line adjust the scrolling to accomadate for the wiki bar at the top
 
     //document.getElementsByClassName("home-video")[0].scrollIntoView();
 
     //document.getElementsByClassName("home-video")[0].scrollIntoView();
    document.getElementById("home-intro-video").scrollIntoView();
+
 
 
     if(window.innerWidth >= 992)
 
     if(window.innerWidth >= 992)
 
     {
 
     {
 +
        document.getElementById("home-intro-video").scrollIntoView();
 
         window.scrollBy(0,scrollValue2);
 
         window.scrollBy(0,scrollValue2);
        console.log("Hello");
 
 
     }
 
     }
 +
    else if(window.innerWidth >= 501)
 +
    {
 +
        document.getElementsByClassName("video-intr-text")[0].scrollIntoView();
 +
    }
 +
    else
 +
    {
 +
        document.getElementById("home-intro-video").scrollIntoView();
 +
    }
 +
 
     if(circle.classList.contains("full-circle"))  
 
     if(circle.classList.contains("full-circle"))  
 
     {
 
     {

Revision as of 21:29, 22 August 2020