mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
20 lines
475 B
HTML
20 lines
475 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Go WebAssembly</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<script src="wasm_exec.js" defer></script>
|
|
<script src="wasm.js" defer></script>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>WebAssembly</h1>
|
|
<p>Add two numbers, using WebAssembly:</p>
|
|
<input type="number" id="a" value="0" /> + <input type="number" id="b" value="0" /> = <input type="number" id="result" readonly />
|
|
</body>
|
|
|
|
</html>
|