mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
7 lines
387 B
JavaScript
7 lines
387 B
JavaScript
$(document).ready(function () {
|
|
$('img[alt="YOUTUBE"]').each(function () {
|
|
var id = $(this).attr('src').split('/')[$(this).attr('src').split('/').length - 1].split("=")[1];
|
|
var video = '<iframe style="width: 100%;height: 450px;" src="https://www.youtube.com/embed/' + id + '" frameborder="0" allowfullscreen></iframe>';
|
|
$(this).replaceWith(video);
|
|
});
|
|
}); |