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

Line 500: Line 500:
 
console.log(borders);  
 
console.log(borders);  
 
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]-500){
 
         if (window.pageYOffset >=borders[i]-500){
 
         if(window.pageYOffset <=borders[i+1]-500) {
 
         if(window.pageYOffset <=borders[i+1]-500) {

Revision as of 13:11, 12 July 2018