wasm-metering
Version:
injects metering into webassembly binaries
56 lines (52 loc) • 2.04 kB
HTML
<!--
Copyright 2016 WebAssembly Community Group participants
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>wast2wasm demo</title>
<link href="primer.css" rel="stylesheet">
<link href="custom.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>wast2wasm demo</h1>
<hr>
<p>
Type a <a href="https://github.com/WebAssembly/spec/tree/master/ml-proto#s-expression-syntax">.wast</a>
file into the textarea on the left. The right side will
either show an error, or will show a log with a description of the
generated <a href="https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md">.wasm</a>
file.
</p>
<div class="columns">
<div class="two-fifths column">
<textarea id="input" autofocus autocomplete="off" autocorrect="off"
autocapitalize="off" spellcheck="false"></textarea>
<div class="right">
<label>example:</label>
<select id="select" class="form-select"></select>
<button class="btn disabled" type="button" id="download">Download</button>
<a id="downloadLink" download="test.wasm" class="hidden"></a>
</div>
</div>
<div class="three-fifths column">
<pre id="output"></pre>
</div>
</div>
</div>
<script src="libwasm.js"></script>
<script src="demo.js"></script>
</body>
</html>