-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
53 lines (42 loc) · 1.76 KB
/
index.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
fetch("nav.html")
.then(response => response.text())
.then(html => {
document.getElementById("navbar").innerHTML = html;
})
.catch(error => console.error('Error fetching the page:', error));
fetch("video.html")
.then(response => response.text())
.then(html => {
document.getElementById("video").innerHTML = html;
})
.catch(error => console.error('Error fetching the page:', error));
fetch("Product1.html")
.then(response => response.text())
.then(html => {
document.getElementById("productgrid").innerHTML = html;
})
.catch(error => console.error('Error fetching the page:', error));
fetch("background.html")
.then(response => response.text())
.then(html => {
document.getElementById("bkgrd").innerHTML = html;
})
.catch(error => console.error('Error fetching the page:', error));
fetch("giantcard.html")
.then(response => response.text())
.then(html => {
document.getElementById("gt-card").innerHTML = html;
})
.catch(error => console.error('Error fetching the page:', error));
fetch("button.html")
.then(response => response.text())
.then(html => {
document.getElementById("i-have").innerHTML = html;
})
.catch(error => console.error('Error fetching the page:', error));
fetch("test.html")
.then(response => response.text())
.then(html => {
document.getElementById("cards").innerHTML = html;
})
.catch(error => console.error('Error fetching the page:', error));