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:
parent
0abf209616
commit
f352b04b64
7 changed files with 130 additions and 17 deletions
|
|
@ -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));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue