-
Notifications
You must be signed in to change notification settings - Fork 0
/
pContact.html
38 lines (33 loc) · 1.15 KB
/
pContact.html
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
<!DOCTYPE html>
<html>
<head>
<title>Page 2</title>
<!-- Import General Head Settings-->
<div id="head-placeholder"></div>
<script>
fetch('head.html?cache-bust=' + new Date().getTime())
.then(response => response.text())
.then(data => {
document.getElementById('head-placeholder').innerHTML = data;
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
});
</script>
</head>
<body>
<div id="navbar"></div> <!--acts as a placeholder in the code where the navbar content will be inserted.-->
<script>
fetch('navbar.html?cache-bust=' + new Date().getTime())
.then(response => response.text())
.then(data => {
document.getElementById('navbar').innerHTML = data;
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
});
</script>
<h1>Welcome to the About Page</h1>
<p>This is the Contact page.</p> <a href="index.html">Back to Home Page</a>
</body>
</html>