You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
360 B
12 lines
360 B
async function getFooter(footerPath) {
|
|
if (footerPath === undefined) {
|
|
//why the hell does js not have optional parameters for functions?
|
|
footerPath = "/footer.html";
|
|
}
|
|
console.log("sanity check much?");
|
|
console.log(footerPath)
|
|
footer = await fetch(footerPath);
|
|
footer = await footer.text();
|
|
document.getElementById("footer").innerHTML = footer;
|
|
}
|