Skeletoning
This commit is contained in:
parent
8262888a93
commit
f7c238ec38
23 changed files with 580 additions and 0 deletions
8
loadin.js
Normal file
8
loadin.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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