Difference between revisions of "Template:Sidebar"

From Sinfronteras
Jump to: navigation, search
Line 554: Line 554:
 
         });
 
         });
  
         function aver() {
+
         function resaltarSection() {
 
             $(".mw-collapsible-text").hover(function(){
 
             $(".mw-collapsible-text").hover(function(){
                 $(".resaltar").first().css({'cssText':'background: red !important'})
+
                 $(this).parent().parent().children(".resaltar").first().css({'cssText':'background: red !important'})
 +
                // $(".resaltar").first().css({'cssText':'background: red !important'})
 
                 }, function(){
 
                 }, function(){
                 $(".resaltar").first().css({'cssText':'background: reset'})
+
                 $(this).parent().parent().children(".resaltar").first().css({'cssText':'background: reset'})
 
             });
 
             });
 
         }
 
         }
Line 670: Line 671:
 
                 collapseSome()
 
                 collapseSome()
 
                 removeCSS()
 
                 removeCSS()
                 aver()
+
                 resaltarSection()
 
                 // moveSidebarToBody()
 
                 // moveSidebarToBody()
 
             });   
 
             });   
Line 676: Line 677:
 
             collapseSome()
 
             collapseSome()
 
             removeCSS()
 
             removeCSS()
             aver()
+
             resaltarSection()
 
             // moveSidebarToBody()
 
             // moveSidebarToBody()
 
         });
 
         });

Revision as of 17:34, 18 March 2021