HANSONGTSENG (Talk | contribs) |
HANSONGTSENG (Talk | contribs) |
||
Line 503: | Line 503: | ||
borders.push(subtitles[i].scrollHeight+borders[i]-100); | borders.push(subtitles[i].scrollHeight+borders[i]-100); | ||
} | } | ||
+ | console.log(borders); | ||
for (var i = 0; i < subtitles.length; i++) { | for (var i = 0; i < subtitles.length; i++) { | ||
if (window.pageYOffset >=borders[i] && window.pageYOffset <=borders[i+1]) { | if (window.pageYOffset >=borders[i] && window.pageYOffset <=borders[i+1]) { |
Revision as of 04:43, 12 July 2018