JS: Difference between revisions
Jump to navigation
Jump to search
(AUTO HIDE SIDEBAR ON MOBILE MOVED TO LOCALSETTINGS.PHP) |
m (BACK BUTTON ON TALK PAGE MOVED TO LOCALSETTINGS.PHP) |
||
Line 19: | Line 19: | ||
} else { | } else { | ||
$('body').removeClass("sidebar-collapsed"); | $('body').removeClass("sidebar-collapsed"); | ||
} | } | ||
}); | }); | ||
</nowiki> | </nowiki> |
Revision as of 03:08, 10 June 2023
/* TOGGLE HIGHLIGHT ON ORDERED LISTS WHEN CLICKED */ $(":not(.references li) ol li").click(function (e) { e.stopPropagation(); if(!($(this).hasClass("highlighted"))) { $(this).addClass("highlighted"); $(this).find("li").addClass("highlighted"); } else { $(this).removeClass("highlighted"); $(this).find("li").removeClass("highlighted"); } }); /* TOGGLE SIDEBAR VIA CONSOLEMODS TEXT */ $("#footer-partnersico:first-child").click(function (e) { e.stopPropagation(); if(!($('body').hasClass("sidebar-collapsed"))) { $('body').addClass("sidebar-collapsed"); } else { $('body').removeClass("sidebar-collapsed"); } });