Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 554: | Line 554: | ||
}); | }); | ||
− | function | + | 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() | ||
− | + | resaltarSection() | |
// moveSidebarToBody() | // moveSidebarToBody() | ||
}); | }); | ||
Line 676: | Line 677: | ||
collapseSome() | collapseSome() | ||
removeCSS() | removeCSS() | ||
− | + | resaltarSection() | |
// moveSidebarToBody() | // moveSidebarToBody() | ||
}); | }); |
Revision as of 16:34, 18 March 2021