youtube.js: try to push html5 as hard as possible

This commit is contained in:
czaks 2014-01-09 18:34:23 +01:00
parent 858ebbe68f
commit 43ea2c8002

View File

@ -27,7 +27,9 @@ onready(function(){
$('div.video-container a', tag).click(function() {
var videoID = $(this.parentNode).data('video');
$(this.parentNode).html('<iframe style="float:left;margin: 10px 20px" type="text/html" width="360" height="270" src="//www.youtube.com/embed/' + videoID + '?autoplay=1" frameborder="0"/>');
$(this.parentNode).html('<iframe style="float:left;margin: 10px 20px" type="text/html" '+
'width="360" height="270" src="//www.youtube.com/embed/' + videoID +
'?autoplay=1&html5=1" allowfullscreen frameborder="0"/>');
return false;
});