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);
    }
 
    else if(window.innerWidth <= 500)
 
    {
 
        document.getElementsByClassName("video-intro-text")[0].scrollIntoView();
 
    }
 
    else
 
    {
 
        document.getElementById("home-intro-video").scrollIntoView();
 
 
     }
 
     }
  

Revision as of 21:36, 22 August 2020