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

Line 500: Line 500:
 
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]-700){
+
         if (window.pageYOffset >=borders[i]-1000){
         if(window.pageYOffset <=borders[i+1]-700) {
+
         if(window.pageYOffset <=borders[i+1]-1000) {
 
         sidebar[i].style.display = "inline-block";
 
         sidebar[i].style.display = "inline-block";
 
sidebar[i].style.width = "180px";
 
sidebar[i].style.width = "180px";

Revision as of 14:26, 12 July 2018