-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (90 loc) · 4.31 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WebAssembly Mandelbrot</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="content">
<section id="dashboard">
<div class="dashboard-container">
<div class="dash-section title">
<h1>Mandelbrot Explorer</h1>
<h5>In WebAssembly</h5>
</div>
<div class="dash-section center">
<div class="input-row">
<p>
<span class="label">Processing time</span>
<span class="value" id="operationtime">...</span>
</p>
</div>
<div class="input-row">
<p>
<label class="label" for="width">Width</label>
<input type="number" class="value" id="width" name="width" min="0" onchange="updateWidth(this)"></input>
</p>
</div>
<div class="input-row">
<p>
<label class="label" for="height">Height</label>
<input type="number" class="value" id="height" name="height" min="0" onchange="updateHeight(this)"></input>
</p>
</div>
<div class="input-row">
<p>
<label class="label" for="zoom">Zoom</label>
<input type="number" class="value" id="zoom" name="zoom" min="0" onchange="updateZoom(this)"></input>
</p>
</div>
<div class="input-row">
<p>
<label class="label" for="movex">X Position</label>
<input type="number" class="value" id="movex" name="movex" onchange="updateMoveX(this)"></input>
</p>
</div>
<div class="input-row">
<p>
<label class="label" for="movey">Y Position</label>
<input type="number" class="value" id="movey" name="movey" onchange="updateMoveY(this)"></input>
</p>
</div>
<div class="input-row">
<p>
<label class="label" for="movey">Max Iterations</label>
<input type="number" class="value" id="maxiterations" name="maxiterations" onchange="updateMaxIterations(this)" min="32" max="8192"></input>
</p>
</div>
<div class="input-row">
<p>
<label class="label" for="workers"> Worker Threads</label>
<input type="number" class="value" id="workers" name="workers" onchange="updateNumWorkers(this)" min="1" max="16"></input>
</p>
</div>
<div class="input-row">
<p class="button-container">
<button onclick="draw()">draw</button>
<button onclick="reset()">reset</button>
</p>
</div>
<div class="instructions">
<p>Scroll on the image to zoom in or out.</p>
<p>As if it were a map.</p>
</div>
</div>
<div class="dash-section footer">
<p>Developed by <a href="https://www.ricardomarques.dev">Ricardo Marques</a> -- <a href="https://www.github.com/rjmarques/webasm-mandelbrot">github</a></p>
<p>UI was based on <a href="http://www.tilde.club/~david/m">tilde.club/~david/m</a></p>
</div>
</div>
</section>
<section id="canvas-placeholder">
<canvas id="canvas" class="canvas"></canvas>
</section>
</div>
<script src="main.js"></script>
</body>
</html>