website/random/cassettevid/index.html
2024-04-22 03:13:17 -05:00

45 lines
No EOL
658 B
HTML

<html>
<head>
<title>VC</title>
<script src="cv.js"></script>
<style>
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background: black;
}
#tv {
width: 100%;
height: 100%;
object-fit: contain;
}
</style>
<script>
document.addEventListener( "DOMContentLoaded", _ =>
{
let tv = document.getElementById( "tv" );
let decoder = new VC( tv,
{
// Other options go here!
} );
tv.addEventListener( "click", _ => decoder.activate() );
decoder.start().catch( console.error );
}, false );
</script>
</head>
<body>
<canvas width="1280" height="720" id="tv"></canvas>
</body>
</html>