comment functionality of js

This commit is contained in:
2025-01-21 13:39:15 +00:00
parent 1c4d20b19c
commit 94bab845a0
+2
View File
@@ -1,3 +1,4 @@
// set the quote at bottom of page randomly
const quotes = [ const quotes = [
"who are you", "who are you",
"lorem ipsum dolor sit amet", "lorem ipsum dolor sit amet",
@@ -14,6 +15,7 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('quote').textContent = '« ' + quotes[randomIndex] + ' »'; document.getElementById('quote').textContent = '« ' + quotes[randomIndex] + ' »';
}); });
// load alt texts for all buttons from json
fetch('static/buttons/_alts.json') fetch('static/buttons/_alts.json')
.then(response => response.json()) .then(response => response.json())
.then(alts => { .then(alts => {