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

m
m
Line 249: Line 249:
 
     var circle = document.querySelector(".home-video-circle")
 
     var circle = document.querySelector(".home-video-circle")
 
     var video = document.querySelector(".actual-intro-video")
 
     var video = document.querySelector(".actual-intro-video")
 +
 +
    var scrollValue = window.innerHeight * 0.1384;
 +
    var scrollValue2 = scrollValue - (scrollValue * 2);
  
 
     // the next two lines make it so that the full screen animation looks the best for the user  
 
     // the next two lines make it so that the full screen animation looks the best for the user  
Line 254: 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();
     window.scrollBy(0,-70);
+
     window.scrollBy(0,scrollValue2);
 
    
 
    
 
     if(circle.classList.contains("full-circle"))  
 
     if(circle.classList.contains("full-circle"))  

Revision as of 18:19, 22 August 2020