Browse Source

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

pull/40/head
czaks 10 years ago
parent
commit
43ea2c8002
  1. 4
      js/youtube.js

4
js/youtube.js

@ -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;
});

Loading…
Cancel
Save