User:Canadabonk/common.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
defaultFullwide = false; |
defaultFullwide = false; |
||
//------------------------------------------------- |
|||
⚫ | |||
⚫ | |||
const |
|||
⚫ | |||
$html = $('html'); |
|||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
// desktop/tablet only |
// desktop/tablet only |
||
if ($(window).width() > 850 && $body.is('.skin-cosmos')) { |
if ($(window).width() > 850 && $body.is('.skin-cosmos')) { |
||
Line 111: | Line 121: | ||
if (defaultFullwide && localStorage.ctFullwide == null) { |
if (defaultFullwide && localStorage.ctFullwide == null) { |
||
localStorage.ctFullwide = true; |
localStorage.ctFullwide = true; |
||
} |
|||
⚫ | |||
⚫ | |||
} |
} |
||
Line 140: | Line 146: | ||
if (defaultDarkMode && localStorage.ctDarkMode == null) { |
if (defaultDarkMode && localStorage.ctDarkMode == null) { |
||
localStorage.ctDarkMode = true; |
localStorage.ctDarkMode = true; |
||
} |
|||
⚫ | |||
⚫ | |||
} |
} |
||
darkModeIconToggle(); |
darkModeIconToggle(); |