mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
var are you?
This commit is contained in:
parent
17febe4914
commit
432aa76221
@ -33,7 +33,9 @@
|
|||||||
})
|
})
|
||||||
.html('<p id="lazyYT-title-' + id + '" class="lazyYT-title"></p><div class="lazyYT-button"></div>')
|
.html('<p id="lazyYT-title-' + id + '" class="lazyYT-title"></p><div class="lazyYT-button"></div>')
|
||||||
.addClass('lazyYT-image-loaded');
|
.addClass('lazyYT-image-loaded');
|
||||||
$el_title = $el.find("p.lazyYT-title"); //get reference to the current container title element
|
|
||||||
|
var $el_title = $el.find("p.lazyYT-title"); //get reference to the current container title element
|
||||||
|
|
||||||
$.getJSON('https://gdata.youtube.com/feeds/api/videos/' + id + '?v=2&alt=json', function (data) {
|
$.getJSON('https://gdata.youtube.com/feeds/api/videos/' + id + '?v=2&alt=json', function (data) {
|
||||||
$el_title.text(data.entry.title.$t);
|
$el_title.text(data.entry.title.$t);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user