HANSONGTSENG (Talk | contribs) |
HANSONGTSENG (Talk | contribs) |
||
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]-50){ | if (window.pageYOffset >=borders[i]-50){ | ||
− | if(window.pageYOffset <=borders[i+1]- | + | if(window.pageYOffset <=borders[i+1]-100) { |
sidebar[i].style.display = "inline-block"; | sidebar[i].style.display = "inline-block"; | ||
} | } |
Revision as of 08:16, 12 July 2018