Youtube thumbnail embeds the video
(as opposed to working as a link)
This commit is contained in:
parent
548be250b4
commit
286664e1ea
|
@ -35,7 +35,9 @@ onready(function(){
|
|||
var embedNode = $('<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"/>');
|
||||
span.click(function() {
|
||||
videoNode.click(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (span.text() == ON){
|
||||
videoNode.append(contents);
|
||||
embedNode.remove();
|
||||
|
|
Loading…
Reference in New Issue