java.js
// Uses cookies to automatically enable dark theme if it has been previously enabled
Uses cookies to automatically enable dark theme if it has been previously enabled
Uses cookies to automatically enable dark theme if it has been previously enabled
function loadDarkTheme() {
	savedarkmodenabled = loadCvar("darkthemesaved");
	if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {savedarkmodenabled === 1;}
	if (savedarkmodenabled === 1) {toggleDarkMode();}
}
function loadDarkTheme ( ) { savedarkmodenabled = loadCvar ( "darkthemesaved" ) ; if ( window . matchMedia && window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches ) { savedarkmodenabled === 1 ; } if ( savedarkmodenabled === 1 ) { toggleDarkMode ( ) ; } }
Uses cookies to automatically enable dark theme if it has been previously enabled
Uses cookies to automatically enable dark theme if it has been previously enabled
// if your browser has dark mode enabled automatically enable it here