-
Notifications
You must be signed in to change notification settings - Fork 0
/
pAbout.html
45 lines (35 loc) · 1.2 KB
/
pAbout.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
39
40
41
42
43
44
45
<!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>
<section id="aboutIntro">
<h1>Welcome to the About Page</h1>
<p>This is the About page.</p> <a href="index.html">Back to Home Page</a>
</section>
</body>
</html>