succumb to zed

This commit is contained in:
2025-06-24 06:38:39 +01:00
parent c9d06ff2e3
commit 18d2900ac3
5 changed files with 212 additions and 101 deletions
+23 -22
View File
@@ -1,28 +1,29 @@
// set the quote at bottom of page randomly
const quotes = [
"who are you",
"lorem ipsum dolor sit amet",
"hot garfields in your area",
"remember to drink water",
"i am not a web developer",
"it's nice, isn't it?",
"do you like hurting other people?",
"check out increm.net !",
"get real",
"see you space cowboy..."
"who are you",
"lorem ipsum dolor sit amet",
"hot garfields in your area",
"remember to drink water",
"i am not a web developer",
"it's nice, isn't it?",
"do you like hurting other people?",
"check out increm.net !",
"get real",
"see you space cowboy...",
];
document.addEventListener('DOMContentLoaded', () => {
const randomIndex = Math.floor(Math.random() * quotes.length);
document.getElementById('quote').textContent = '« ' + quotes[randomIndex] + ' »';
document.addEventListener("DOMContentLoaded", () => {
const randomIndex = Math.floor(Math.random() * quotes.length);
document.getElementById("quote").textContent =
"« " + quotes[randomIndex] + " »";
});
// load alt texts for all buttons from json
fetch('static/buttons/_alts.json')
.then(response => response.json())
.then(alts => {
document.querySelectorAll("div.footer.buttons img").forEach(img => {
const filename = img.src.split('/').pop();
img.alt = alts[filename] || "no alt text available, sorry";
});
})
.catch(error => console.error('error loading alt texts: ', error));
fetch("static/buttons/_alts.json")
.then((response) => response.json())
.then((alts) => {
document.querySelectorAll("div.footer.buttons img").forEach((img) => {
const filename = img.src.split("/").pop();
img.alt = alts[filename] || "no alt text available, sorry";
});
})
.catch((error) => console.error("error loading alt texts: ", error));