diff options
author | mattkae <mattkae@protonmail.com> | 2021-12-29 16:18:59 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2021-12-29 16:18:59 -0500 |
commit | dca628d985a1904be7d45b373a17ac9b7e3e09c6 (patch) | |
tree | 1a2e71696c17bff364241e89217a8e30d497d895 /index.js | |
parent | 216f0a949c123be69410d855a3a389d3100bf741 (diff) |
Fixed autumn theme
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 37 |
1 files changed, 16 insertions, 21 deletions
@@ -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; |