-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
136 lines (89 loc) · 3.41 KB
/
contact.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="images/jefferson-favicon.png" type="image/png">
<title>Jefferson Ferraz | Webdeveloper</title>
</head>
<body>
<input type="checkbox" id="check">
<label for="check">
<i id="btn">></i>
<i id="cancel"><</i>
</label>
<nav class="sidebar">
<ul>
<a href="index.html">
<li>_hello</li>
</a>
<a href="projects.html">
<li>_projects</li>
</a>
<a href="contact.html">
<li>_contact</li>
</a>
</ul>
</nav>
<header>
<nav class="menu">
<ul>
<a href="index.html">
<li class="list">_hello</li>
</a>
<a href="projects.html">
<li class="list">_projects</li>
</a>
<a href="contact.html">
<li class="list active">_contact</li>
</a>
</ul>
</nav>
<p>E-mail for</p>
<h1>Contact</h1>
<h3>[email protected]</h3>
</header>
<main>
<section class="contact-form">
<form action="https://formsubmit.co/[email protected]" method="POST">
<label for="name">Name</label>
<input type="text" name="name" id="name" required>
<label for="email">E-mail</label>
<input type="email" name="email" id="email" required>
<label for="message">Message</label>
<textarea name="message" id="message" required placeholder="Your message"></textarea>
<input type="hidden" name="_captcha" value="false">
<input type="hidden" name="_next" value="https://jeffersonferraz.github.io/thanks.html">
<button type="submit">Send</button>
</form>
</section>
</main>
<footer>
<p>developed by <a href="https://github.com/jeffersonferraz" target="blank">JeffersonFerraz</a> <sup>[GitHub
profile]</sup></p>
</footer>
<script>
// show at the navigation menu the button with active link
const list = document.querySelectorAll('.list');
function activeLink() {
list.forEach((item) => item.classList.remove('active'));
this.classList.add('active');
}
list.forEach((item) => item.addEventListener('click', activeLink));
// Activation of sidebar button by scrolling
// When the user scrolls down 40px from the top of the document, appear the sidebar button
window.onscroll = function () { scrollFunction() };
function scrollFunction() {
if (document.body.scrollTop > 40 || document.documentElement.scrollTop > 40) {
document.getElementById("btn").style.opacity = "1";
document.getElementById("btn").style.pointerEvents = "all";
} else {
document.getElementById("btn").style.opacity = "0";
document.getElementById("btn").style.pointerEvents = "none";
}
}
</script>
</body>
</html>