summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.css2
-rw-r--r--index.js37
-rwxr-xr-xthemes/dist/output.wasmbin65641 -> 65641 bytes
-rw-r--r--themes/main.cpp2
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
--- a/themes/dist/output.wasm
+++ b/themes/dist/output.wasm
Binary files 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);
}