From 5d526b5bb71af6e225d2c2d86cfcaf8f3b824702 Mon Sep 17 00:00:00 2001 From: LifeAdventurer Date: Thu, 20 Mar 2025 08:37:08 +0000 Subject: [PATCH] deploy: 4eb9212a23eafc57606c9150f2a52c5e45b149ba --- fortune_generator/json/commit_hash.json | 2 +- scripts.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fortune_generator/json/commit_hash.json b/fortune_generator/json/commit_hash.json index b179fd1..0e64ee0 100644 --- a/fortune_generator/json/commit_hash.json +++ b/fortune_generator/json/commit_hash.json @@ -1 +1 @@ -{ "commit_hash": "ea18eb8057b6d7ab8feefd88b5f973f902ac52fa" } +{ "commit_hash": "4eb9212a23eafc57606c9150f2a52c5e45b149ba" } diff --git a/scripts.js b/scripts.js index fbd0d42..bf35e97 100644 --- a/scripts.js +++ b/scripts.js @@ -60,3 +60,8 @@ darkModeIcon.onclick = () => { darkModeIcon.classList.toggle("bx-sun"); document.body.classList.toggle("dark-mode"); }; + +// temporary +let max_height = -1; +document.querySelectorAll('.card-body').forEach(el => max_height = Math.max(max_height, el.offsetHeight)); +document.querySelectorAll('.card-body').forEach(el => el.style.height = `${max_height}px`);