-
Notifications
You must be signed in to change notification settings - Fork 0
/
thanks.html
99 lines (90 loc) · 3.92 KB
/
thanks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-control" content="public">
<title>Julia Robinek | Thanks</title>
<link rel="icon" type="image/svg+xml" href="Logos/Circle-small.svg">
<link rel="preload" href="menustyles.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="thankstyles.css" as="style" onload="this.rel='stylesheet'">
</head>
<body>
<!-- Header Section Start NEED TO COPY TO EVERY PAGE DUE TO SLOW SERVER-->
<header>
<div class="header-content">
<div class="home-box">
<a href="index.html" class="home-icon">Julia Robinek</a>
<div class="home-icon-sign"> <img src="Logos/RJlogo-small-white.svg" loading="lazy"></img> </div>
</div>
<div class="menu-icon" id="menu-icon">
☰ <!-- Hamburger icon -->
</div>
<ul class="menu" id="menu">
<li><a href="index.html">Home</a></li>
<li><a href="work.html">Work</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</header>
<!-- Header Section End -->
<!-- Hero Section -->
<hero class="AboutContent">
<article>
<p class="tick">✓</p>
<p>
Thank you! The form has been submitted successfully.
</p>
<p>
We will reply to you soon!
</p>
</article>
</hero>
<!-- Footer Section Start NEED TO COPY TO EVERY PAGE -->
<footer>
<div class="footer-content">
<div class="footer-left">
<p>Copyright © Julia Robinek 2015 - <span id="year"></span></p>
<div class="small">
<a href="privacy.html">Privacy Policy</a>
<p>Run by GitHub</p>
</div>
</div>
<div class="footer-right">
<a href="https://www.instagram.com/juliarobinek" target="_blank">
<img src="Logos/logoInstaGraySmall-toUse.svg" loading="lazy" alt="Instagram Icon" class="social-icon">
</a>
</div>
</div>
<!-- Get the current year and insert it into the span with id="year" -->
<script defer>
document.getElementById('year').textContent = new Date().getFullYear();
</script>
</footer>
<!-- Footer Section End -->
<script>
// Add the menu on top of every page of the website
document.addEventListener("DOMContentLoaded", function() {
fetch('menu.html') // Load the menu.html file
.then(response => response.text()) // Convert to text
.then(data => {
document.getElementById('wholehead').innerHTML = data; // Insert the menu HTML into the page
})
.catch(error => console.error('Error loading menu:', error));
});
// JavaScript to toggle the responsive menu and header background
document.getElementById("menu-icon").addEventListener("click", function() {
var menu = document.getElementById("menu");
var header = document.querySelector("header");
if (menu.classList.contains("show")) {
menu.classList.remove("show");
header.classList.remove("header-active"); // Remove half-transparent gray
} else {
menu.classList.add("show");
header.classList.add("header-active"); // Add half-transparent gray
}
});
</script>
</body>
</html>