diff options
-rw-r--r-- | index.css | 2 | ||||
-rw-r--r-- | index.js | 37 | ||||
-rwxr-xr-x | themes/dist/output.wasm | bin | 65641 -> 65641 bytes | |||
-rw-r--r-- | themes/main.cpp | 2 |
4 files changed, 18 insertions, 23 deletions
@@ -187,7 +187,7 @@ input:focus { left: 0; width: 100vw; height: 100vh; - background-color: white; + background-color: transparent; z-index: -1; } @@ -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 Binary files differindex 202295c..329cc80 100755 --- a/themes/dist/output.wasm +++ b/themes/dist/output.wasm 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); } |