forked from GithubBackups/vichan
youtube.js: format
This commit is contained in:
parent
b822a76b23
commit
023e59d88f
@ -22,11 +22,10 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onready(function() {
|
onready(function() {
|
||||||
var do_embed_yt = function(tag) {
|
let do_embed_yt = function(tag) {
|
||||||
$('div.video-container a', tag).click(function() {
|
$('div.video-container a', tag).click(function() {
|
||||||
var videoID = $(this.parentNode).data('video');
|
let videoID = $(this.parentNode).data('video');
|
||||||
|
|
||||||
$(this.parentNode).html('<iframe style="float:left;margin: 10px 20px" type="text/html" ' +
|
$(this.parentNode).html('<iframe style="float:left;margin: 10px 20px" type="text/html" ' +
|
||||||
'width="360" height="270" src="//www.youtube.com/embed/' + videoID +
|
'width="360" height="270" src="//www.youtube.com/embed/' + videoID +
|
||||||
@ -42,4 +41,3 @@ onready(function(){
|
|||||||
do_embed_yt(post);
|
do_embed_yt(post);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user