-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtutorial.js
More file actions
58 lines (41 loc) · 1.15 KB
/
tutorial.js
File metadata and controls
58 lines (41 loc) · 1.15 KB
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
// SCROLLTOTOP BUTTON
// $(document).ready(function(){
//Check to see if the window is top if not then display button
$(window).scroll(function(){
if ($(this).scrollTop() > 400) {
$('#backTop').fadeIn();
} else {
$('#backTop').fadeOut();
}
});
//Click event to scroll to top
$('#backTop').click(function(){
$('html, body').animate({scrollTop : 0},800);
return false;
});
$('#installMove').click(function(){
$('html, body').animate({
scrollTop: $('#installPage').offset().top
}, 800);
});
$('#clientMove').click(function(){
$('html, body').animate({
scrollTop: $('#clientPage').offset().top
}, 800);
});
$('#serverMove').click(function(){
$('html, body').animate({
scrollTop: $('#serverPage').offset().top
}, 800);
});
$('#gitMove').click(function(){
$('html, body').animate({
scrollTop: $('#gitPage').offset().top
}, 800);
});
$('#hostMove').click(function(){
$('html, body').animate({
scrollTop: $('#hostPage').offset().top
}, 800);
});
// });