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]){ | if (window.pageYOffset >=borders[i]){ | ||
− | if(window.pageYOffset <=borders[i+1]) { | + | if(window.pageYOffset <=borders[i+1]+200) { |
− | sidebar[i].style.display = "block"; | + | sidebar[i].style.display = "inline-block"; |
} | } | ||
else{ | else{ | ||
Line 516: | Line 516: | ||
$(".sidebar-item").mouseenter(function(){ | $(".sidebar-item").mouseenter(function(){ | ||
− | this.lastChild.style.display = "block"; | + | this.lastChild.style.display = "inline-block"; |
}); | }); | ||
$(".sidebar-item").mouseleave(function(){ | $(".sidebar-item").mouseleave(function(){ |
Revision as of 07:59, 12 July 2018