MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Created page with "$(document).ready(function() { if (!$('#bg-video').length) { $('body').prepend(` <video autoplay muted loop playsinline id="bg-video"> <source src="/resources/assets/bg.webm" type="video/webm"> </video> `); } });" |
No edit summary |
||
Line 2: | Line 2: | ||
if (!$('#bg-video').length) { | if (!$('#bg-video').length) { | ||
$('body').prepend(` | $('body').prepend(` | ||
<video autoplay muted loop playsinline id="bg-video"> | <div id="bg-video-wrapper"> | ||
<video autoplay muted loop playsinline id="bg-video"> | |||
</ | <source src="/resources/assets/bg.webm" type="video/webm"> | ||
</video> | |||
</div> | |||
`); | `); | ||
} | } | ||
}); | }); |