diff options
Diffstat (limited to 'demo/wasm2wat/index.html')
-rw-r--r-- | demo/wasm2wat/index.html | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/demo/wasm2wat/index.html b/demo/wasm2wat/index.html new file mode 100644 index 00000000..d2de0eee --- /dev/null +++ b/demo/wasm2wat/index.html @@ -0,0 +1,76 @@ +<!-- + Copyright 2017 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. +--> +<!DOCTYPE html> +<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>wasm2wat demo</title> + <link href="../third_party/codemirror/codemirror.css" rel="stylesheet"> + <link href="../primer.css" rel="stylesheet"> + <link href="../custom.css" rel="stylesheet"> +</head> +<body> + <div class="container"> + <h1>wasm2wat demo</h1> + <hr> + <p>WebAssembly has a + <a href="http://webassembly.github.io/spec/text/index.html">text format</a> + and a + <a href="http://webassembly.github.io/spec/binary/index.html">binary format</a>. + This demo converts from the binary format to the text format. + </p> + <p> + Upload a WebAssembly binary file, and the text format will be displayed. + </p> + <div> + <label>example:</label> + <select id="select" class="form-select"></select> + <button class="btn" type="button" id="upload">Upload</button> + <input type="file" id="uploadInput" class="hidden"></a> + <div> + <input type="checkbox" id="generateNames" checked> + <label for="generateNames">Generate Names</label> + </div> + + <div> + <input type="checkbox" id="foldExprs" checked> + <label for="foldExprs">Fold Expressions</label> + </div> + + <div> + <input type="checkbox" id="inlineExport" checked> + <label for="inlineExport">Inline Export</label> + </div> + + <div> + <input type="checkbox" id="readDebugNames" checked> + <label for="readDebugNames">Read Debug Names</label> + </div> + </div> + + <textarea class="editor" autofocus autocomplete="off" autocorrect="off" + autocapitalize="off" spellcheck="false" hidden></textarea> + </div> + <script src="../third_party/codemirror/codemirror.js"></script> + <script src="../third_party/codemirror/simple-mode.js"></script> + <script src="../wast-mode.js"></script> + <script src="../libwabt.js"></script> + <script src="examples.js"></script> + <script src="demo.js"></script> +</body> +</html> + |