-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
19 lines (16 loc) · 739 Bytes
/
script.js
File metadata and controls
19 lines (16 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
document.getElementById("contact-btn").addEventListener('click', function() {
document.getElementById("contact").scrollIntoView({behavior: 'smooth'});
});
document.getElementById("home-btn").addEventListener('click', function() {
document.getElementById("home").scrollIntoView({behavior: 'smooth'});
});
document.getElementById("projects-btn").addEventListener('click', function() {
document.getElementById("projects").scrollIntoView({behavior: 'smooth'});
});
document.getElementById("about-btn").addEventListener('click', function() {
document.getElementById("about").scrollIntoView({behavior: 'smooth'});
});
function submitMe(){
alert("Your form has been submitted");
console.log("Form was submitted");
}