/* Als we dit willen plaatsen op een pagina die geacht wordt zich te verversen bij verandering van schermbreede, dan moet die pagina het volgende hebben: var width=window.innerWidth; window.addEventListener('resize', function (){if(window.innerWidth!=width && !(document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement)){setTimeout("window.location.reload()",0)}}, false); */ var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream; var ios_message = "You can't jump to another part of the video unless you pause it first." var repair_message = 'Playing many videos one after another may result in the videos not performing as they should any more at a given moment of time. When this happens, refreshing the page will solve the problem.' function mousemove() { if(!isMobile){var time_hover=player.getDuration()*((event.pageX-document.getElementById("seekbar").offsetLeft -document.getElementById("contain_all").offsetLeft)/document.getElementById("seekbar").clientWidth); player.getCurrentTime()==time_hover; var the_date = new Date(null);the_date.setSeconds(time_hover);var utc_time=the_date.toUTCString();var time_indic=utc_time.substr(utc_time.indexOf(":")- 2, 8);var time_indic = the_date.getUTCHours() + ":" + the_date.getUTCMinutes() + ":" + the_date.getUTCSeconds();var time_indic = the_date.toISOString().substr(11, 8); document.getElementById("check_time").innerHTML=time_indic; document.getElementById("check_time").style.left=event.pageX-document.getElementById("seekbar").offsetLeft - document.getElementById("contain_all").offsetLeft+"px"; if(event.pageX>document.getElementById("contain_all").clientWidth - document.getElementById("contain_all").offsetLeft -70){document.getElementById("check_time").style.left=document.getElementById("seekbar").clientWidth-65+"px"}} } function loadVideo(yt_id, start, end, playlist) { //YouTube changed their code for playlists, so we 'correct' it if(playlist){playlist = yt_id + ',' + playlist}; //remove blanks from playlists if(playlist){playlist = playlist.split(/\s/).join('')}; if(document.getElementById('minimize')) { var style_minimize='show_minimize' } if(document.getElementById('parent_of_all')){player.destroy(); player=null; document.body.removeChild(document.getElementById('parent_of_all'))} if(document.getElementById('ifr')) { document.getElementById('ifr').style.height=0; } if("contain_all" in window){document.getElementById('contain_all').innerHTML=''} for (var i = 1; i < 7000; i++){window.clearInterval(i)}; /* if you have videos of more than 5 hours, increase this number */ if("the_end" in window){the_end=18000}; if (!("videosize" in window)) {videosize = 0.4} if(document.getElementById('video_main')) { for (i = document.getElementById('video_main').parentNode.childNodes.length; i-- > 0;) {document.getElementById('video_main').parentNode.removeChild(document.getElementById('video_main').parentNode.childNodes[i]);} } if(playlist!==undefined){the_src='https://www.youtube-nocookie.com/embed/' + yt_id + '?html5=1&enablejsapi=1&autoplay=1&controls=0&start='+start+'&end='+end+'&rel=0&wmode=opaque&modestbranding=1&autohide=2&vq=large&playlist='+playlist} else {if(playlist===undefined){the_src='https://www.youtube-nocookie.com/embed/' + yt_id + '?html5=1&enablejsapi=1&autoplay=1&controls=0&start='+start+'&end='+end+'&rel=0&wmode=opaque&modestbranding=1&autohide=2&vq=large'}} var create_video=document.createElement("div"); create_video.id='parent_of_all'; create_video.innerHTML='
<\/div>
<\/div><\/div>
\nX<\/div>
i<\/div>