HANSONGTSENG (Talk | contribs) |
HANSONGTSENG (Talk | contribs) |
||
Line 505: | Line 505: | ||
if(window.pageYOffset <=borders[i+1]-500) { | if(window.pageYOffset <=borders[i+1]-500) { | ||
sidebar[i].style.display = "inline-block"; | sidebar[i].style.display = "inline-block"; | ||
+ | sidebar[i].style.width = "180px"; | ||
console.log('fuck'); | console.log('fuck'); | ||
} | } | ||
Line 519: | Line 520: | ||
$(".sidebar-item").mouseenter(function(){ | $(".sidebar-item").mouseenter(function(){ | ||
this.lastChild.style.display = "inline-block"; | this.lastChild.style.display = "inline-block"; | ||
+ | sidebar[i].style.width = "180px"; | ||
}); | }); | ||
$(".sidebar-item").mouseleave(function(){ | $(".sidebar-item").mouseleave(function(){ |
Revision as of 14:01, 12 July 2018