mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-17 21:12:25 -05:00
52 lines
1.1 KiB
HTML
52 lines
1.1 KiB
HTML
<!doctype html>
|
|
|
|
<!--
|
|
HTML template for the emscripted page. Unlike emscipten's official minimal
|
|
frontend, this one is really minimal.
|
|
|
|
by Miloslav Ciz (drummyfish), 2020
|
|
|
|
Released under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
|
|
plus a waiver of all other intellectual property. The goal of this work is
|
|
be and remain completely in the public domain forever, available for any use
|
|
whatsoever.
|
|
-->
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>game</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" tabindex=-1></canvas>
|
|
|
|
<script type='text/javascript'>
|
|
var Module = {
|
|
print:
|
|
function(what)
|
|
{
|
|
console.log(what);
|
|
},
|
|
printErr:
|
|
function(what)
|
|
{
|
|
console.error(what);
|
|
},
|
|
canvas:
|
|
(
|
|
function()
|
|
{
|
|
return document.getElementById('canvas');
|
|
}
|
|
)()
|
|
};
|
|
</script>
|
|
|
|
{{{ SCRIPT }}}
|
|
|
|
</body>
|
|
</html>
|