From f6c372f7ee5a1fb136d599ea024c9dc7cd99376c Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Fri, 6 Dec 2024 00:25:50 +0000 Subject: [PATCH] silly --- index.html | 4 ++-- res/js/dynamic-content.js | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a2324e1..72cf3da 100644 --- a/index.html +++ b/index.html @@ -16,8 +16,8 @@

- Certified PHP User
- "My life is a living nightmare!" + Certified PHP User
+ "My life is a living nightmare!"

diff --git a/res/js/dynamic-content.js b/res/js/dynamic-content.js index ed8eda6..52b0f49 100644 --- a/res/js/dynamic-content.js +++ b/res/js/dynamic-content.js @@ -1,6 +1,7 @@ const christmas = isItChristmas(); if (christmas) { + console.log("Merry christmas!") var head = document.getElementsByTagName('head')[0]; var snowJS = document.createElement("script"); snowJS.type = "text/javascript"; @@ -9,6 +10,11 @@ if (christmas) { const profileImage = document.querySelector("img.profile-image"); profileImage.src = "./res/images/profile-christmas.jpg"; + + const quote = document.querySelector("#quote"); + const title = document.querySelector("#title"); + title.innerHTML = "I changed the image with JS" + quote.innerHTML = "(because of course I did it with JS)" } function isItChristmas() {