summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2021-12-29 16:13:13 -0500
committermattkae <mattkae@protonmail.com>2021-12-29 16:13:13 -0500
commit216f0a949c123be69410d855a3a389d3100bf741 (patch)
treec551d7643b60bde6ec71b3b1934696b7ec5dd939 /index.js
parent2a8544e2d2534b138b7100ea8cfb30c21358adaf (diff)
Fix for a terrible orange color
Diffstat (limited to 'index.js')
-rw-r--r--index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.js b/index.js
index a393a13..2f15661 100644
--- a/index.js
+++ b/index.js
@@ -4,20 +4,20 @@ function main() {
runPosts();
// -- Note! We require a black background to properly see the WebGL, so we handle that here.
- var bodyElement = document.querySelector('body');
+ var themeElement = document.getElementById('theme_container');
var themeButtonList = document.querySelectorAll('#theme_selector > button');
themeButtonList.forEach(function(themeButton) {
if (themeButton.id !== 'theme_button_default') {
themeButton.addEventListener('click', function() {
- bodyElement.style.background = 'black';
+ themeElement.style.background = 'black';
});
}
else {
themeButton.addEventListener('click', function() {
- bodyElement.style.background = 'white';
+ themeElement.style.background = 'white';
});
}
- })
+ });
}
function runCarousel() {