thedesk/app/js/ui/theme.js

16 lines
312 B
JavaScript
Raw Normal View History

2018-01-28 21:22:43 +09:00
//テーマ適用
function themes(theme) {
if (!theme) {
var theme = localStorage.getItem("theme");
2018-03-13 02:41:38 +09:00
if(!theme){
var theme="black";
localStorage.setItem("theme","black");
}
2018-01-28 21:22:43 +09:00
}
if (theme == "black") {
$("html").addClass("blacktheme");
} else {
$("html").removeClass("blacktheme");
}
}
2018-03-13 02:41:38 +09:00
themes();