Adding dynamic generation of the gear list

The gear list is generated based on `/gear/gear.json`, which contains
a list of objects following the schema defined in `/gear/gear.mjs`.
This commit is contained in:
April Eaton 2025-12-15 18:29:12 +01:00
parent 0abf209616
commit f352b04b64
7 changed files with 130 additions and 17 deletions

View file

@ -1,8 +0,0 @@
function loadHTML(elementId, url) {
fetch(url)
.then((response) => response.text())
.then((data) => {
document.getElementById(elementId).innerHTML = data;
})
.catch((error) => console.error("Error loading HTML:", error));
}