-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
59 lines (52 loc) · 1.44 KB
/
main.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
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
$(document).ready(function(){
// This is sidbar navigation
// Scroll for home
$('#home-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#Home').offset().top}, 500);
});
//Scroll for inventory
$('#inventory-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#Inventory').offset().top}, 500);
});
//Scroll for ML
$('#ml-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#ML-Progress').offset().top}, 600);
});
// Scroll for Main Nav Contact
$('#contact-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#Contact').offset().top}, 600);
});
//This is about me page navigation
// Scroll for Main nav home
$('#main-home-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#Home').offset().top}, 600);
});
//Scroll for main nav inventory
$('#main-inventory-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#Inventory').offset().top}, 600);
});
//Scroll for main nav ML
$('#main-ml-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#ML-Progress').offset().top}, 600);
});
// Scroll for main nav Contact
$('#main-contact-btn').click(function(e){
e.preventDefault();
$("html, body").animate({
scrollTop: $('#Contact').offset().top}, 600);
});
});