summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2021-12-29 16:18:59 -0500
committermattkae <mattkae@protonmail.com>2021-12-29 16:18:59 -0500
commitdca628d985a1904be7d45b373a17ac9b7e3e09c6 (patch)
tree1a2e71696c17bff364241e89217a8e30d497d895 /index.js
parent216f0a949c123be69410d855a3a389d3100bf741 (diff)
Fixed autumn theme
Diffstat (limited to 'index.js')
-rw-r--r--index.js37
1 files changed, 16 insertions, 21 deletions
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;