diff options
| author | czaks <marcin@6irc.net> | 2014-01-09 18:34:23 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-01-09 18:34:23 +0100 |
| commit | 43ea2c80029209d58e1ceab4894f3a7460e4ecdd (patch) | |
| tree | bb32ddb440fa80f4936b80c8e696e11f0b264867 | |
| parent | 858ebbe68fad45f653a518c5531749bf4c14c6ee (diff) | |
youtube.js: try to push html5 as hard as possible
| -rw-r--r-- | js/youtube.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/youtube.js b/js/youtube.js index d93b5cc5..de32db44 100644 --- a/js/youtube.js +++ b/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; }); |
