-
Notifications
You must be signed in to change notification settings - Fork 10
/
never.html
37 lines (33 loc) · 971 Bytes
/
never.html
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
33
34
35
36
37
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>
<label for="input">Input:</label>
</div>
<div>
<textarea id="input" rows="25" cols="80"></textarea>
</div>
<div>
<button onclick="runNever()"> Run </button>
</div>
<hr/>
<div>
<label for="output">Output:</label>
</div>
<div>
<textarea id="output" rows="25" cols="80"></textarea>
</div>
<script src="never.js"></script>
<script language="javascript">
var never = Module.cwrap('never','number',['string']);
function runNever() {
var input = document.getElementById("input")
var output = document.getElementById("output")
output.value = "";
val = never(input.value);
output.value += val;
}
</script>
</body>
</html>