From adb6493a149ad4fcd8c20d6a3d7fd6bc0876f8e2 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 30 Jun 2024 12:22:00 +0100 Subject: [PATCH] Semantic stuff, bundle fixes --- .bundle/config | 2 ++ assets/js/quote.js | 9 +++++++-- assets/js/width-hack.js | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .bundle/config diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000..2369228 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_PATH: "vendor/bundle" diff --git a/assets/js/quote.js b/assets/js/quote.js index 0817e98..734d3f1 100644 --- a/assets/js/quote.js +++ b/assets/js/quote.js @@ -98,10 +98,15 @@ const quotebank = [ "evil!!!", "proud keychron owner!", "rotten!", - "is george w bush!" + "is george w bush!", + "it's a unix system!", + "runs on forbidden hardware!", + "hosted by gnomes!", + "all your base are belong to me!", + ] const len = quotebank.length const quote = quotebank[Math.floor(Math.random() * len)] -document.getElementById("quote").innerHTML = `“${quote}”` \ No newline at end of file +document.getElementById("quote").innerHTML = `“${quote}”` diff --git a/assets/js/width-hack.js b/assets/js/width-hack.js index 3a392f8..f7090e3 100644 --- a/assets/js/width-hack.js +++ b/assets/js/width-hack.js @@ -2,7 +2,7 @@ const resizeHeader = () => { const container = document.querySelector("main > .container") const containerWidth = container.scrollWidth const header = document.querySelector(".container.title-container") - header.style.setProperty("min-width", `${containerWidth}px`) + header.style.minWidth = `${containerWidth}px` } window.addEventListener("resize", resizeHeader)