-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
26 lines (22 loc) · 853 Bytes
/
script.js
File metadata and controls
26 lines (22 loc) · 853 Bytes
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
const btn = document.getElementById("pjbtn");
btn.addEventListener("click", () => {
alert("I was too lazy to add a project section, check my github instead");
});
const btn2 = document.getElementById("talk");
btn2.addEventListener("click", () => {
alert("Refer to my contact links to talk to me");
});
const btn3 = document.getElementById("submit");
btn3.addEventListener("click", (e) => {
e.preventDefault();
const nameInput = document.getElementById("name");
const emailInput = document.getElementById("email");
const subjectInput = document.getElementById("subject");
const messageInput = document.getElementById("message");
nameInput.value = "";
emailInput.value = "";
subjectInput.value = "";
messageInput.value = "";
alert("Thank you for your message! I'll get back to you soon.");
console.log("Form submitted");
});