-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
29 lines (24 loc) · 1.18 KB
/
script.js
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
document.getElementById('Home').addEventListener('click', function() {
var selected = document.getElementById('NavHome');
selected.scrollIntoView({behavior: "smooth", block: "start"});
});
document.getElementById('About').addEventListener('click', function() {
var selected = document.getElementById('NavSect');
selected.scrollIntoView({behavior: "smooth", block: "start"});
});
document.getElementById('Skills').addEventListener('click', function() {
var selected = document.getElementById('NavSkills');
selected.scrollIntoView({behavior: "smooth", block: "start"});
});
document.getElementById('Projects').addEventListener('click', function() {
var selected = document.getElementById('NavProjects');
selected.scrollIntoView({behavior: "smooth", block: "start"});
});
document.getElementById('Contact').addEventListener('click', function() {
var selected = document.getElementById('NavContact');
selected.scrollIntoView({behavior: "smooth", block: "start"});
});
document.getElementById('navtop').addEventListener('click', function() {
var selected = document.getElementById('NavHome');
selected.scrollIntoView({behavior: "smooth", block: "start"});
});