From 216f0a949c123be69410d855a3a389d3100bf741 Mon Sep 17 00:00:00 2001 From: mattkae Date: Wed, 29 Dec 2021 16:13:13 -0500 Subject: Fix for a terrible orange color --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'index.js') 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() { -- cgit v1.2.1