Files
Testing/wall/hb.html
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

56 lines
1.2 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style type="text/css">
html, body{margin:0px;}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
</head>
<body style="background:#000;">
<div style="width:100%;text-align:center;margin:0px auto;position:relative;height:100%;" id="atest">
<video class="" id="thevideo" preload="auto" width="100%" height="100%" poster="/wall/hb.jpg" style="display: block;width:100%;height:auto;cursor:pointer;margin:0px auto;position:relative;" onclick="this.play();" controls>
<source src="/wall/hb.mp4" type="video/mp4">
</video>
</div>
<script type="text/javascript">
var video= $('#thevideo').get(0);
video.addEventListener('ended',function(){
video.load();
},false);
//$('#thevideo').css('top','50%');
$( window ).load(function() {
var h=$( window ).height();
var tvh=$('#thevideo').height();
if(tvh >= h)
{
var hpx=h+"px";
$("#thevideo").css("height",hpx);
$("#thevideo").css("width","auto");
}
});
$( window ).resize(function() {
});
</script>
</body>
</html>