No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
height: 540, | height: 540, | ||
scrolling: 'no', | scrolling: 'no', | ||
src: ' | src: 'https://www.youtube.com/watch?v=_W8j5cU8YUo', | ||
width: 720 | width: 720 | ||
}) | }) | ||
Revision as of 09:20, 10 June 2020
//Emulator iframe with one of my videos as the default src
mw.hook('wikipage.content').add(function($content) {
$content.find('.EmulatorFrame:not(.loaded)').each(function() {
var $this = $(this);
$this.html(
$('<iframe>', {
border: 0,
frameborder: 0,
height: 540,
scrolling: 'no',
src: 'https://www.youtube.com/watch?v=_W8j5cU8YUo',
width: 720
})
).addClass('loaded');
});
});