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]-1000){
+
         if (window.pageYOffset >=borders[i]-800){
         if(window.pageYOffset <=borders[i+1]-1000) {
+
         if(window.pageYOffset <=borders[i+1]-800) {
 
         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:31, 12 July 2018