1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-27 09:09:10 +00:00

Add ldesdl.html

This commit is contained in:
Hayley Patton
2023-11-13 15:30:19 +11:00
parent 79a788279b
commit 7b2cf44c7c
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@@ -20,6 +20,7 @@ cmake-build-*/**
*.x86_64-sdl/**
*.x86_64/**
*.wasm/**
!emscripten.wasm/ldesdl.html
*.wasm-wasm/**
*.armv7l-x/**
*.armv7l/**

View File

@@ -0,0 +1,20 @@
<!doctype html>
<!-- Based on https://github.com/timhutton/sdl-canvas-wasm/blob/main/index.html -->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="text-align: center;">
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>
</div>
<script type="text/javascript">
var Module = {
arguments: ["full.sysout"],
canvas: (function() { return document.getElementById('canvas'); })()
};
</script>
<script src="ldesdl.js"></script>
</body>
</html>