From 9bd32c1032ef0675ebe1e5f5b66deb67442e6cfd Mon Sep 17 00:00:00 2001 From: Dejvino Date: Wed, 30 Aug 2023 19:39:31 +0200 Subject: [PATCH] Improve pathfinder sizing --- module/pathfinder/grid.css | 1 - module/pathfinder/main.js | 4 ++-- slides/intro.md | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/module/pathfinder/grid.css b/module/pathfinder/grid.css index 59d7533..4269041 100644 --- a/module/pathfinder/grid.css +++ b/module/pathfinder/grid.css @@ -1,6 +1,5 @@ .main-grid-container{ - height: 100%; display: flex; flex-flow: row nowrap; justify-content: center; diff --git a/module/pathfinder/main.js b/module/pathfinder/main.js index 437883f..264647a 100644 --- a/module/pathfinder/main.js +++ b/module/pathfinder/main.js @@ -83,7 +83,7 @@ function spawnPathfinder(root) { let algo_select = root.getElementsByClassName("algo-select")[0]; let maze_algo_select = root.getElementsByClassName("maze-algo-select")[0]; - const window_y = body.scrollHeight - navbar_HTML.scrollHeight; + const window_y = (body.scrollHeight - navbar_HTML.scrollHeight); const window_x = body.scrollWidth; let horizontal_cells; @@ -101,7 +101,7 @@ function spawnPathfinder(root) { vertical_cells = Math.floor(window_y / 35); horizontal_cells = Math.floor( (window_x - horizontal_cells) /35); - vertical_cells = Math.floor( (window_y - vertical_cells) / 35); + vertical_cells = Math.floor( (window_y - vertical_cells) / 35 * 0.9); grid_HTML.style.width = `${horizontal_cells * 35}px`; grid_HTML.style.height = `${vertical_cells * 30}px`; diff --git a/slides/intro.md b/slides/intro.md index 0a0e6ce..dd06d19 100644 --- a/slides/intro.md +++ b/slides/intro.md @@ -20,13 +20,13 @@ 😐 "I don't feel like it." -"I'm too tired now." 😪 +"I'm way too tired." 😪 😕 "I don't know how to do it." -"I'm too busy now." 🧐 +"I'm very busy now." 🧐 -😇 "I'll do it, but first [☕]." +😇 "I will do it, but first [☕]." -V- @@ -36,7 +36,7 @@ ### Expanding potential -Never before did we have so much... +Never before in history did we have so much... - life expectancy, safety, stability - freedom, opportunity