-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2nd.js
More file actions
49 lines (45 loc) · 1.25 KB
/
Copy path2nd.js
File metadata and controls
49 lines (45 loc) · 1.25 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
$(window).scroll(function() {
var height = $(window).scrollTop();
if (height > 100) {
$('#footermain').fadeIn();
} else {
$('#footermain').fadeOut();
}
});
$(document).ready(function() {
$("#footer").click(function(event) {
event.preventDefault();
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
});
$(document).ready(function (){
$("#headermainb").click(function(event){
event.preventDefault();
$('html, body').animate({
scrollTop: $("#aa").offset().top
}, 1000);
});
});
$(document).ready(function (){
$("#headermainc").click(function(event){
event.preventDefault();
$('html, body').animate({
scrollTop: $("#ab").offset().top
}, 1000);
});
});
$(document).ready(function (){
$("#headermaind").click(function(event){
event.preventDefault();
$('html, body').animate({
scrollTop: $("#zz").offset().top
}, 1000);
});
});
function show(){
document.getElementById('dropdown').style.display='block';
}
function hide(){
document.getElementById('dropdown').style.display='none';
}