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

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

Revision as of 13:49, 12 July 2018