-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (32 loc) · 976 Bytes
/
index.html
File metadata and controls
32 lines (32 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8"/>
<script src="wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instantiateStreaming(fetch("filterdemo.wasm"), go.importObject).then((result) => {
go.run(result.instance);
});
</script>
<style>
</style>
</head>
<body>
<p id="loading">Loading... Please wait...</p>
<h3>Flags</h3>
<select name="filterType" id="filterType">
<option value="0">--include</option>
<option value="1">--exclude</option>
<option value="2">--filter</option>
<option value="3">--files-from</option>
</select>
<textarea rows="4" cols="50" name="flags" id="flags"></textarea>
<button id="filter">Filter</button>
<h3>Files</h3>
<textarea rows="4" cols="50" name="files" id="files"></textarea>
<h3>Output</h3>
<pre id="results"></pre>
</body>
</html>