youtube.js: try to push html5 as hard as possible
This commit is contained in:
parent
858ebbe68f
commit
43ea2c8002
@ -27,7 +27,9 @@ onready(function(){
|
|||||||
$('div.video-container a', tag).click(function() {
|
$('div.video-container a', tag).click(function() {
|
||||||
var videoID = $(this.parentNode).data('video');
|
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;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user