github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/examples/wasm/export/index.html (about)

     1  <!DOCTYPE html>
     2  
     3  <html>
     4  
     5  <head>
     6  	<meta charset="utf-8" />
     7  	<title>Go WebAssembly</title>
     8  	<meta name="viewport" content="width=device-width, initial-scale=1" />
     9  	<script src="wasm_exec.js" defer></script>
    10  	<script src="wasm.js" defer></script>
    11  </head>
    12  
    13  <body>
    14  	<h1>WebAssembly</h1>
    15  	<p>Add two numbers, using WebAssembly:</p>
    16  	<input type="number" id="a" value="2" /> + <input type="number" id="b" value="2" /> = <input type="number"
    17  		id="result" readonly />
    18  </body>
    19  
    20  </html>