-
Notifications
You must be signed in to change notification settings - Fork 0
/
javascript.js
81 lines (52 loc) · 1.71 KB
/
javascript.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
$(function() {
$("body").fadeIn(69000);
});
// term toggle menu
function slideDown() {
$('#toggleMenu').slideToggle('slow');
}
// on moving button when you hover
function changeIn() {
$("#pts").toggleClass('pts');
}
function changeOut() {
$("pts").toggleClass('pts');
}
// on moving capsule button when you click
function move() {
$('html, body').animate({ scrollTop: $('#rotate').offset().top }, 'slow');
}
$(function () {
var $win = $(window);
$win.scroll(function () {
if ($win.scrollTop() > 500) {
$('#rotate').fadeOut("slow");
}
else {
$('#rotate').fadeIn("slow");
}
});
});
$(function () {
var $win = $(window);
$win.scroll(function () {
if($win.scrollTop() >= 1254) {
$("#pro-h1,#pro-p").animate({"margin-left" : 10 , "opacity" : 1} , 'slow');
}
if($win.scrollTop() >= 6423){
$("#footer-h1,#footer-p").animate({"margin-left" : 10 , "opacity" : 1} , 'slow');
$("#icons").animate({"margin-top" : 0 , "opacity" : 1} , 'slow');
}
if($win.scrollTop() >= 2776){
$("#upcoming-h1").animate({"margin-left" : 10 , "opacity" : 1} , 'slow');
}
if($win.scrollTop() >= 3574){
$("#current-openings-h1,#current-openings-p").animate({"margin-left" : 10 , "opacity" : 1} , 'slow');
}
});
});
$(function() {
$("#list-1").click(function () {
documnet.getElementById("list-1").style='display:show';
});
});