1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-05 02:32:37 +01:00

video background fix

This commit is contained in:
Marius 2021-03-15 19:56:46 +01:00
parent 1458b821db
commit bfdd50dba0
2 changed files with 6 additions and 5 deletions

View File

@ -53,11 +53,12 @@ body {
left: 0;
}
#video-bg-elem {
display: block;
position: absolute;
top: 0;
left: 0;
min-height: 100%;
min-width: 100%;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 1;
}
/*TEXT COLOR*/
#login h1,

View File

@ -4,4 +4,4 @@
let video = `
<div class="background-wrap"><video id="video-bg-elem" preload="auto" autoplay="true" loop="loop" muted="muted"> <source src="https:\/\/gilbn.github.io\/theme.park\/CSS\/addons\/unraid\/login-page\/fallout\/video\/VaultTecCRTLoop.mp4" type="video\/mp4">Video not supported</video></div>
`
document.body.innerHTML += video
document.body.innerHTML += video;