mirror of
https://github.com/G2-Games/website.git
synced 2025-04-19 18:02:54 -05:00
45 lines
No EOL
658 B
HTML
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> |