-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportfolio.js
56 lines (47 loc) · 1.06 KB
/
portfolio.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
function resume_show()
{
$('#about-me-main').hide(1000);
$('#resume').show(1000);
}
function resume_hide()
{
$('#resume').hide(1000);
$('#about-me-main').show(1000);
}
function name_show(index)
{
$('#name' + "-" + index).stop(true, false).animate({'top':'225px'}, 200);
}
function name_hide(index)
{
$('#name' + "-" + index).stop(true, false).animate({'top':'300px'}, 200);
}
function project_show(index)
{
$('#projects-main').hide(1000);
$('.projects').each(function() {
$('#project' + "-" + index).show(1000);
});
}
function project_hide(index)
{
$('.projects').each(function() {
$('#project' + "-" + index).hide(1000);
});
$('#projects-main').show(1000);
}
$(document).ready(function(){
/* HIDE RESUME AND PROJECT DETAILS */
$('#resume').hide();
$('.projects').each(function() {
$(this).hide();
});
return $("a.scrollable").click(function(e) {
var targetScroll;
e.preventDefault();
targetScroll = $($(this).attr("href")).offset().top;
return $('html, body').animate({
scrollTop: targetScroll
}, 500);
});
});