-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
77 lines (63 loc) · 1.95 KB
/
main.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
$(document).ready(function() {
/* HIDING ELEMENTS */
$('.skillsContent').hide();
$('.experienceContent').hide();
$('.experienceWindow').hide();
$('.experienceDescription').hide();
$('.jInstruct').hide();
$('.edContent').hide();
$('.ecContent').hide();
$('.pContent').hide();
/* INITIALIZATION STATEMENT */
console.log( "We are ready for launch, Captain!" );
/* SKILLS */
$('#skillsButton').on('click', () => {
$('.skillsContent').slideToggle(500);
})
/* EXPERIENCE */
$('#experienceButton').on('click', () => {
$('.experienceContent').slideToggle(500);
$('.jInstruct').slideToggle(500);
})
$('#experienceButton').on('click', () => {
$('.experienceWindow').slideToggle(500);
})
/* JOB DESCRIPTION INTERACTIVITY */
$('.experienceContent').on('mouseenter', () => {
$('.jInstruct').hide();
}).on('mouseleave', () => {
$('.jInstruct').fadeIn(500);
});
$('#jTitle1').on('mouseenter', () => {
$('#jDesc1').fadeIn(500);
}).on('mouseleave', () => {
$('#jDesc1').hide();
});
$('#jTitle2').on('mouseenter', () => {
$('#jDesc2').fadeIn(500);
}).on('mouseleave', () => {
$('#jDesc2').hide();
});
$('#jTitle3').on('mouseenter', () => {
$('#jDesc3').fadeIn(500);
}).on('mouseleave', () => {
$('#jDesc3').hide();
});
$('#jTitle4').on('mouseenter', () => {
$('#jDesc4').fadeIn(500);
}).on('mouseleave', () => {
$('#jDesc4').hide();
});
/* EDUCATION */
$('#edButton').on('click', () => {
$('.edContent').slideToggle(500);
})
/* EXTRA CIRRICULARS */
$('#ecButton').on('click', () => {
$('.ecContent').slideToggle(500);
})
/* PORTFOLIO */
$('#pButton').on('click', () => {
$('.pContent').slideToggle(500);
})
});