diff options
author | mattkae <mattkae@protonmail.com> | 2021-12-29 16:13:13 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2021-12-29 16:13:13 -0500 |
commit | 216f0a949c123be69410d855a3a389d3100bf741 (patch) | |
tree | c551d7643b60bde6ec71b3b1934696b7ec5dd939 /index.js | |
parent | 2a8544e2d2534b138b7100ea8cfb30c21358adaf (diff) |
Fix for a terrible orange color
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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() { |