Mirai's Miscellaneous Misadventures

M41 / index.html

<!-- copyright 2023 zamfofex -->
<!-- license: AGPLv3 or later -->

<!doctype html>
<html lang="en">
<meta charset="utf-8">

<title>mimimi test</title>

<style>

*, ::before, ::after
{
	touch-action: none;
}

html, body
{
	width: 100%;
	height: 100%;
	display: flex;
}

body
{
	margin: 0;
	background: #000;
}

canvas
{
	width: 100%;
	height: 100%;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	object-fit: contain;
	outline: none;
}

</style>

<script type="module">

import {run} from "./main.js"
run().then(canvas =>
{
	document.body.append(canvas)
	canvas.addEventListener("blur", () => canvas.focus())
	canvas.focus()
})

</script>