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.css | 2 +- index.js | 37 ++++++++++++++++--------------------- themes/dist/output.wasm | Bin 65641 -> 65641 bytes themes/main.cpp | 2 +- 4 files changed, 18 insertions(+), 23 deletions(-) diff --git a/index.css b/index.css index 4f469af..080bcac 100644 --- a/index.css +++ b/index.css @@ -187,7 +187,7 @@ input:focus { left: 0; width: 100vw; height: 100vh; - background-color: white; + background-color: transparent; z-index: -1; } 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; diff --git a/themes/dist/output.wasm b/themes/dist/output.wasm index 202295c..329cc80 100755 Binary files a/themes/dist/output.wasm and b/themes/dist/output.wasm differ diff --git a/themes/main.cpp b/themes/main.cpp index 54d303d..2d63e00 100644 --- a/themes/main.cpp +++ b/themes/main.cpp @@ -115,7 +115,7 @@ EM_BOOL selectAutumn(int eventType, const EmscriptenMouseEvent* mouseEvent, void // -- Autumn theme void AutumnTheme::load(Renderer2d* renderer) { - renderer->clearColor = Vector4(252, 210, 153, 125).toNormalizedColor(); + renderer->clearColor = Vector4(252, 210, 153, 255).toNormalizedColor(); auto lr = tree.load(renderer); leafParticles.load(renderer, &lr); } -- cgit v1.2.1