User:Canadabonk/common.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 205:
toolbar.find('#t-whatlinkshere, #t-recentchangeslinked, #t-print, #t-permalink, #t-info, #t-cite, #t-urlshortener, #t-createredirect').appendTo('#ct-toolbar-pagetools > ul');
toolbar.find('#t-contributions, #t-log, #t-emailuser, #t-mute, #t-userrights').appendTo('#ct-toolbar-usertools > ul');
}▼
} //end desktop ------------------------------------------------------------------------------------------------------
Line 295 ⟶ 282:
}
}// end dark mode ------------------------------------------------------------------------------------------------------
if ($('.cosmos-mobile-navigation').length) {
$('.cosmos-mobile-menu-button').click(function(){
$('.wds-tabs').css('left', '0');
window.onclick = function(e) {
const $target = $(e.target);
if (!$target.closest('.cosmos-mobile-navigation').length && $('.wds-tabs').is(':visible')) {
$('.wds-tabs').css('left','').fadeout(200);
▲ }
▲ };
}
function hideOnClickOutside(container, hiddenitem) {
|