User:Positron/common.js: Revision history

From FFXI Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

15 September 2023

  • curprev 19:0419:04, 15 September 2023Positron talk contribs 642 bytes +642 Created page with "function setTheme(themeName) { document.documentElement.className = themeName; localStorage.setItem('theme', themeName); } theme = localStorage.getItem('theme'); if (theme) { if (theme === 'theme-dark') { setTheme('theme-dark'); } if (theme === 'theme-light') { setTheme('theme-light'); } return; } prefersDarkTheme = window.matchMedia('(prefers-color-scheme: dark)'); if (prefersDarkTheme.matches) { setTheme('theme-dark'); return; } pre..."