summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
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() {