From fb56268b9b76b4384b9471911fd147aeb29ab891 Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Sun, 17 Nov 2024 13:18:43 +0000 Subject: [PATCH] you tit --- index.html | 6 +++--- res/css/fira.css | 24 ++++++++++++------------ res/js/dynamic-content.js | 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 96329a1..a2324e1 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + ~floppy @@ -20,7 +20,7 @@ "My life is a living nightmare!"

-
+
- + diff --git a/res/css/fira.css b/res/css/fira.css index 6598f4b..24a8ff1 100644 --- a/res/css/fira.css +++ b/res/css/fira.css @@ -1,47 +1,47 @@ @font-face { font-family: "Fira Code"; - src: url("/res/fonts/FiraCode-Light.woff2") format("woff2"), - url("/res/fonts/FiraCode-Light.woff") format("woff"); + src: url("../fonts/FiraCode-Light.woff2") format("woff2"), + url("../fonts/FiraCode-Light.woff") format("woff"); font-weight: 300; font-style: normal; } @font-face { font-family: "Fira Code"; - src: url("/res/fonts/FiraCode-Regular.woff2") format("woff2"), - url("/res/fonts/FiraCode-Regular.woff") format("woff"); + src: url("../fonts/FiraCode-Regular.woff2") format("woff2"), + url("../fonts/FiraCode-Regular.woff") format("woff"); font-weight: 400; font-style: normal; } @font-face { font-family: "Fira Code"; - src: url("/res/fonts/FiraCode-Medium.woff2") format("woff2"), - url("/res/fonts/FiraCode-Medium.woff") format("woff"); + src: url("../fonts/FiraCode-Medium.woff2") format("woff2"), + url("../fonts/FiraCode-Medium.woff") format("woff"); font-weight: 500; font-style: normal; } @font-face { font-family: "Fira Code"; - src: url("/res/fonts/FiraCode-SemiBold.woff2") format("woff2"), - url("/res/fonts/FiraCode-SemiBold.woff") format("woff"); + src: url("../fonts/FiraCode-SemiBold.woff2") format("woff2"), + url("../fonts/FiraCode-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; } @font-face { font-family: "Fira Code"; - src: url("/res/fonts/FiraCode-Bold.woff2") format("woff2"), - url("/res/fonts/FiraCode-Bold.woff") format("woff"); + src: url("../fonts/FiraCode-Bold.woff2") format("woff2"), + url("../fonts/FiraCode-Bold.woff") format("woff"); font-weight: 700; font-style: normal; } @font-face { font-family: "Fira Code VF"; - src: url("/res/fonts/FiraCode-VF.woff2") format("woff2-variations"), - url("/res/fonts/FiraCode-VF.woff") format("woff-variations"); + src: url("../fonts/FiraCode-VF.woff2") format("woff2-variations"), + url("../fonts/FiraCode-VF.woff") format("woff-variations"); /* font-weight requires a range: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */ font-weight: 300 700; font-style: normal; diff --git a/res/js/dynamic-content.js b/res/js/dynamic-content.js index a6b12ca..ed8eda6 100644 --- a/res/js/dynamic-content.js +++ b/res/js/dynamic-content.js @@ -4,11 +4,11 @@ if (christmas) { var head = document.getElementsByTagName('head')[0]; var snowJS = document.createElement("script"); snowJS.type = "text/javascript"; - snowJS.src = "/res/js/snowstorm.js"; + snowJS.src = "./res/js/snowstorm.js"; head.appendChild(snowJS); const profileImage = document.querySelector("img.profile-image"); - profileImage.src = "/res/images/profile-christmas.jpg"; + profileImage.src = "./res/images/profile-christmas.jpg"; } function isItChristmas() {