-
Notifications
You must be signed in to change notification settings - Fork 0
/
fun.js
61 lines (60 loc) · 1.71 KB
/
fun.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
var bio = document.getElementById('bioView');
var contact = document.getElementById('contactView');
var resume = document.getElementById('resumeView');
var blog = document.getElementById('blogView');
var home = document.getElementById('homeView');
var bioClick = bio.onclick = function(){
bio.style.display="block";
contact.style.display="none";
resume.style.display="none";
blog.style.display="none";
home.style.display="none";
}
var contactClick = contact.onclick = function(){
contact.style.display="block";
bio.style.display="none";
resume.style.display="none";
blog.style.display="none";
home.style.display="none";
}
var resumeClick = resume.onclick = function(){
resume.style.display="block";
bio.style.display="none";
contact.style.display="none";
blog.style.display="none";
home.style.display="none";
}
var blogClick = blog.onclick = function(){
blog.style.display="block";
bio.style.display="none";
contact.style.display="none";
home.style.display="none";
resume.style.display="none";
}
var homeClick = home.onclick = function(){
home.style.display="block";
bio.style.display="none";
contact.style.display="none";
blog.style.display="none";
resume.style.display="none";
}
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('player', {
height: '315',
width: '560',
videoId: 'yIYp1utzWjU',
});
document.getElementById('resume').onclick = function() {
player.playVideo();
};
document.getElementById('pause').onclick = function() {
player.pauseVideo();
};
document.getElementById('mute').onclick = function() {
player.mute();
};
document.getElementById('unmute').onclick = function() {
player.unMute();
};
}