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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -20,6 +20,7 @@ cmake-build-*/**
|
||||
*.x86_64-sdl/**
|
||||
*.x86_64/**
|
||||
*.wasm/**
|
||||
!emscripten.wasm/ldesdl.html
|
||||
*.wasm-wasm/**
|
||||
*.armv7l-x/**
|
||||
*.armv7l/**
|
||||
|
||||
20
emscripten.wasm/ldesdl.html
Normal file
20
emscripten.wasm/ldesdl.html
Normal 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>
|
||||
Reference in New Issue
Block a user