MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / initSkin

Function initSkin

examples/js/theme/theme.js:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51initSkin();
52function initSkin() {
53 var skin = utils.getCookie('theme') || 'dark';
54 var rootElem = document.querySelector('html');
55 rootElem.classList.remove("light", "dark");
56 rootElem.classList.add(skin);
57 setRootStyle(skin);
58}

Callers 1

theme.jsFile · 0.85

Calls 4

setRootStyleFunction · 0.85
getCookieMethod · 0.80
removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected