2022-08-29 19:54:54 -04:00
|
|
|
<style>
|
2022-09-18 22:15:06 -04:00
|
|
|
body{
|
|
|
|
background-color: black;
|
|
|
|
}
|
|
|
|
header,footer{
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
#main{
|
2022-08-29 19:54:54 -04:00
|
|
|
position: absolute;
|
|
|
|
top:0;
|
|
|
|
left: 0;
|
|
|
|
width:100vw;
|
2022-09-18 22:15:06 -04:00
|
|
|
height: 100vh;
|
2022-08-29 19:54:54 -04:00
|
|
|
max-height: 100vh;
|
|
|
|
max-width: initial;
|
|
|
|
}
|
|
|
|
</style>
|
2022-09-18 22:15:06 -04:00
|
|
|
<video controls id="main" class="video-player">
|
2022-08-29 19:54:54 -04:00
|
|
|
<source src="">
|
|
|
|
</video>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
//https://davidwalsh.name/query-string-javascript
|
|
|
|
function getUrlParameter(name) {
|
|
|
|
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
|
|
|
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
|
|
|
|
var results = regex.exec(location.search);
|
|
|
|
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
|
|
|
};
|
|
|
|
|
|
|
|
var source = document.createElement('source')
|
2022-09-18 22:15:06 -04:00
|
|
|
source.src = ''+getUrlParameter('v');
|
2022-08-29 19:54:54 -04:00
|
|
|
document.getElementById('main').appendChild(source);
|
|
|
|
</script>
|