13 lines
231 B
JavaScript
13 lines
231 B
JavaScript
|
//テーマ適用
|
||
|
function themes(theme) {
|
||
|
if (!theme) {
|
||
|
var theme = localStorage.getItem("theme");
|
||
|
}
|
||
|
if (theme == "black") {
|
||
|
$("html").addClass("blacktheme");
|
||
|
} else {
|
||
|
$("html").removeClass("blacktheme");
|
||
|
}
|
||
|
}
|
||
|
themes();
|