Plus de fullscreen
This commit is contained in:
parent
03bc7d98fb
commit
d867dc8828
13
index.html
13
index.html
@ -68,11 +68,6 @@
|
||||
<a id="youtube-link" class="btn btn-default" href="https://youtu.be/RX_VXNl1xvg">
|
||||
<i class="fa fa-youtube fa-2x" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
||||
<a id="fullscreen-video" class="btn btn-default" href="#">
|
||||
<i class="fa fa-arrows-alt fa-2x" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
||||
</header>
|
||||
|
||||
<section class="bg-primary" id="about">
|
||||
@ -421,17 +416,9 @@
|
||||
function onPlayerReady(event) {
|
||||
event.target.mute();
|
||||
iframe = document.getElementById('player');
|
||||
document.getElementById('fullscreen-video').addEventListener('click', playFullscreen);
|
||||
document.getElementById('video-sound').addEventListener('click', playMute);
|
||||
}
|
||||
|
||||
function playFullscreen (){
|
||||
var requestFullScreen = iframe.requestFullScreen || iframe.mozRequestFullScreen || iframe.webkitRequestFullScreen;
|
||||
if (requestFullScreen) {
|
||||
requestFullScreen.bind(iframe)();
|
||||
}
|
||||
}
|
||||
|
||||
function playMute(){
|
||||
var video_button = document.getElementById('video-sound');
|
||||
if(player.isMuted()){
|
||||
|
@ -23,9 +23,6 @@ header.masthead {
|
||||
right: 2rem;
|
||||
}
|
||||
#youtube-link {
|
||||
right: 6rem;
|
||||
}
|
||||
#fullscreen-video {
|
||||
left: 2rem;
|
||||
}
|
||||
.icone {
|
||||
@ -60,9 +57,6 @@ header.masthead {
|
||||
right: 4rem;
|
||||
}
|
||||
#youtube-link {
|
||||
right: 9rem;
|
||||
}
|
||||
#fullscreen-video {
|
||||
left: 4rem;
|
||||
}
|
||||
.icone {
|
||||
|
Loading…
Reference in New Issue
Block a user