User:Canadabonk/common.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
Line 37: | Line 37: | ||
} |
} |
||
if (localStorage.ctRailHidden == 'true') { |
if (localStorage.ctRailHidden == 'true') { |
||
$('.cosmos-articleContainer'). |
$('.cosmos-articleContainer').addClass('ct-railhidden'); |
||
} |
} |
||
if (!enableDarkMode) { |
if (!enableDarkMode) { |
||
Line 221: | Line 221: | ||
$('.cosmos-articleContainer').toggleClass('ct-railhidden'); |
$('.cosmos-articleContainer').toggleClass('ct-railhidden'); |
||
if ($('.cosmos-articleContainer').is('.ct-railhidden')) { |
if ($('.cosmos-articleContainer').is('.ct-railhidden')) { |
||
localStorage. |
localStorage.ctRailHidden = true; |
||
} else { |
} else { |
||
localStorage. |
localStorage.removeItem('ctRailHidden'); |
||
$('#CosmosRail').fadeIn( |
$('#CosmosRail').css('display', 'none').fadeIn(500); |
||
} |
} |
||
}); |
}); |