Files
primalwiki/shell.html

33 lines
948 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>primalwiki</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: black; overflow: hidden; }
canvas { display: block; width: 100vw; height: 100vh; }
</style>
</head>
<body>
<canvas id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas>
<script>
var canvas = document.getElementById('canvas');
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
resizeCanvas();
window.addEventListener('resize', resizeCanvas);
var Module = {
canvas: canvas,
print: function(text) { console.log(text); },
printErr: function(text) { console.error(text); },
};
</script>
{{{ SCRIPT }}}
</body>
</html>