| 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> |
| 6 | <meta name="apple-mobile-web-app-capable" content="yes" /> |
| 7 | <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
| 8 | <title>Emscripten Shell</title> |
| 9 | <style> |
| 10 | body {background:#333; font-family:"Verdana","Helvetica Neue","Helvetica","Arial",sans-serif; margin:1em 0;} |
| 11 | #canvas{position:absolute; top:0px; left:0px; border:none; margin:0; width: 100%; height: 100%; overflow: hidden; display: block;} |
| 12 | </style> |
| 13 | </head> |
| 14 | <body> |
| 15 | <canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas> |
| 16 | <script> |
| 17 | function trace(msg) { |
| 18 | console.log(msg); |
| 19 | } |
| 20 | |
| 21 | var Module = { |
| 22 | print: trace, printErr: trace, setStatus: trace, monitorRunDependencies: trace, |
| 23 | canvas: (function() { |
| 24 | return document.getElementById("canvas"); |
| 25 | })(), |
| 26 | preRun: [], postRun: [], |
| 27 | }; |
| 28 | </script> |
| 29 | {{{ SCRIPT }}} |
| 30 | </body> |
| 31 | </html> |