22 lines
498 B
HTML
22 lines
498 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Mandelbrot</title>
|
||
|
<script src="wasm_exec.js"></script>
|
||
|
<script>
|
||
|
const go = new Go();
|
||
|
WebAssembly.instantiateStreaming(fetch('main.wasm'), go.importObject).then(result => {
|
||
|
go.run(result.instance);
|
||
|
});
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<h1>Test</h1>
|
||
|
<canvas id="canvas"></canvas>
|
||
|
</body>
|
||
|
|
||
|
</html>
|