From 94bab845a04af7ec0db69dd220db504592665df3 Mon Sep 17 00:00:00 2001 From: futile Date: Tue, 21 Jan 2025 13:39:15 +0000 Subject: [PATCH] comment functionality of js --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 05a04a3..fbf450a 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ +// set the quote at bottom of page randomly const quotes = [ "who are you", "lorem ipsum dolor sit amet", @@ -14,6 +15,7 @@ document.addEventListener('DOMContentLoaded', () => { 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 => {