This repository was archived by the owner on Sep 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.js
More file actions
executable file
·65 lines (48 loc) · 1.37 KB
/
Copy pathcode.js
File metadata and controls
executable file
·65 lines (48 loc) · 1.37 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
var main = function(){
$("#whole").fadeIn("slow");
var pos = null;
$("#header").click(function(){
$("*").animate({"scrollTop": "0"}, 300);
});
$("#biography").click(function(){
pos = $(".biography-body").position();
$("*").animate({"scrollTop": pos.top.toString()}, 300);
});
$("#experience").click(function(){
pos = $(".experience-body").position();
$("*").animate({"scrollTop": pos.top.toString()}, 300);
});
$("#activities").click(function(){
pos = $(".activities-body").position();
$("*").animate({"scrollTop": pos.top.toString()}, 300);
});
$("#contact").click(function(){
pos = $(".contacts-body").position();
$("*").animate({"scrollTop": pos.top.toString()}, 300);
});
$("#biography").mouseenter(function(){
$(this).addClass("colorb", 300);
});
$("#experience").mouseenter(function(){
$(this).addClass("colore", 300);
});
$("#activities").mouseenter(function(){
$(this).addClass("colora", 300);
});
$("#contact").mouseenter(function(){
$(this).addClass("colorc", 300);
});
$("#biography").mouseleave(function(){
$(this).removeClass("colorb", 300);
});
$("#experience").mouseleave(function(){
$(this).removeClass("colore", 300);
});
$("#activities").mouseleave(function(){
$(this).removeClass("colora", 300);
});
$("#contact").mouseleave(function(){
$(this).removeClass("colorc", 300);
});
}
$(document).ready(main);