We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faef8c7 commit 8b85280Copy full SHA for 8b85280
1 file changed
assets/js/layout.js
@@ -11,12 +11,12 @@ document.addEventListener("DOMContentLoaded", () => {
11
12
// header と footer をまとめて読み込む
13
Promise.all([
14
- fetch("/WebSite/partials/header.html").then((r) =>
15
- r.text(),
16
- ),
17
- fetch("/WebSite/partials/footer.html").then((r) =>
18
19
+ fetch(
+ "https://breadmotion.github.io/WebSite/partials/header.html",
+ ).then((r) => r.text()),
+ "https://breadmotion.github.io/WebSite/partials/footer.html",
20
])
21
.then(([headerHtml, footerHtml]) => {
22
// body の先頭に header、末尾に footer を挿入
0 commit comments