auto-accept/www/index.html
2020-12-17 14:24:53 +01:00

64 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auto accept</title>
<style type='text/css'>
body{
margin:0;
overflow: hidden;
cursor: url('./cursor.svg') 15 15, crosshair;
}
svg{
width:100vw;
height:100vh;
}
svg .rect{
stroke: red;
stroke-width: .2cm;
fill: none;
transition: stroke .5s;
}
svg .rect.locked{
stroke:blue;
opacity: 1;
transition: opacity .5s;
}
svg .rect.hide{
opacity:0;
}
#crosshair line{
stroke: gray;
stroke-dasharray: 5px 5px;
}
#video_background{
position: absolute;
top:0;
left:0;
bottom:0;
right:0;
z-index: -1;
opacity:0;
transition:opacity 10s;
}
</style>
</head>
<body>
<svg id='canvas' viewBox="0 0 220 100" xmlns="http://www.w3.org/2000/svg">
<g id='crosshair'>
<line id='crosshair_x' x1="0" y1="0" x2="0" y2="100%" />
<line id='crosshair_y' x1="0" y1="0" x2="100%" y2="0" />
</g>
</svg>
<video id="video_background" autoplay loop>
<source src="Blue_Sky_and_Clouds_Timelapse_0892__Videvo.mov">
</video>
<script type="module" src="js/main.js"></script>
</body>
</html>