Improve wallpaper feature

This commit is contained in:
syuilo
2020-02-15 08:29:59 +09:00
parent 1dce62e42a
commit 37c80e8ef5
9 changed files with 32 additions and 48 deletions

View File

@ -53,6 +53,11 @@ html
document.documentElement.classList.add('f-' + fontSize);
}
const wallpaper = localStorage.getItem('wallpaper');
if (wallpaper) {
document.documentElement.style.backgroundImage = `url(${wallpaper})`;
}
body
noscript: p
| JavaScriptを有効にしてください