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

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