From dca628d985a1904be7d45b373a17ac9b7e3e09c6 Mon Sep 17 00:00:00 2001 From: mattkae Date: Wed, 29 Dec 2021 16:18:59 -0500 Subject: Fixed autumn theme --- index.js | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 2f15661..7304870 100644 --- a/index.js +++ b/index.js @@ -1,23 +1,22 @@ function main() { runCarousel(); - runPosts(); - // -- Note! We require a black background to properly see the WebGL, so we handle that here. - 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() { - themeElement.style.background = 'black'; - }); - } - else { - themeButton.addEventListener('click', function() { - themeElement.style.background = 'white'; - }); - } - }); + // // -- Note! We require a black background to properly see the WebGL, so we handle that here. + // 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() { + // themeElement.style.background = 'black'; + // }); + // } + // else { + // themeButton.addEventListener('click', function() { + // themeElement.style.background = 'white'; + // }); + // } + // }); } function runCarousel() { @@ -98,8 +97,4 @@ function runCarousel() { rightButton.addEventListener('click', onCarouselRight); } -function runPosts() { - -} - -main(); +document.onload = main; -- cgit v1.2.1