Difference between revisions of "Template:NYMU-Taipei/newtemplate1"

Line 501: Line 501:
 
console.log(sidebar);   
 
console.log(sidebar);   
 
         for (var i = 0; i < subtitles.length; i++) {
 
         for (var i = 0; i < subtitles.length; i++) {
         if (window.pageYOffset >=borders[i]-100){
+
         if (window.pageYOffset >=borders[i]-200){
         if(window.pageYOffset <=borders[i+1]-100) {
+
         if(window.pageYOffset <=borders[i+1]-200) {
 
         sidebar[i].style.display = "inline-block";
 
         sidebar[i].style.display = "inline-block";
 
         }
 
         }

Revision as of 08:20, 12 July 2018