diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/zstd/contrib/single_file_libs/examples/shell.html | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/zstd/contrib/single_file_libs/examples/shell.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/zstd/contrib/single_file_libs/examples/shell.html b/src/zstd/contrib/single_file_libs/examples/shell.html new file mode 100644 index 000000000..5beb0e6d5 --- /dev/null +++ b/src/zstd/contrib/single_file_libs/examples/shell.html @@ -0,0 +1,31 @@ +<!doctype html> +<html> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> + <meta name="apple-mobile-web-app-capable" content="yes" /> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> + <title>Emscripten Shell</title> + <style> +body {background:#333; font-family:"Verdana","Helvetica Neue","Helvetica","Arial",sans-serif; margin:1em 0;} +#canvas{position:absolute; top:0px; left:0px; border:none; margin:0; width: 100%; height: 100%; overflow: hidden; display: block;} + </style> +</head> +<body> + <canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas> + <script> +function trace(msg) { + console.log(msg); +} + +var Module = { + print: trace, printErr: trace, setStatus: trace, monitorRunDependencies: trace, + canvas: (function() { + return document.getElementById("canvas"); + })(), + preRun: [], postRun: [], +}; +</script> +{{{ SCRIPT }}} +</body> +</html> |