-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
25 lines (22 loc) · 772 Bytes
/
Copy pathscript.js
File metadata and controls
25 lines (22 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// cdn-links.js
const bootstrapCSS =
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css";
const bootstrapJS =
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js";
document.addEventListener("DOMContentLoaded", function () {
fetch("navbar.html")
.then((response) => response.text())
.then((data) => {
document.getElementById("nav-placeholder").innerHTML = data;
});
fetch("ad.html")
.then((response) => response.text())
.then((data) => {
document.getElementById("ad-placeholder").innerHTML = data;
})
fetch("footer.html")
.then((response) => response.text())
.then((data) => {
document.getElementById("footer-placeholder").innerHTML = data;
});
});