-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmandel.html
80 lines (76 loc) · 2.8 KB
/
mandel.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
<!DOCTYPE html>
<!--html manifest="cache.manifest"-->
<html>
<head>
<title>Mandelbrot set</title>
<style>
body { margin: 0px; }
span#selector {
background-color: #a0a0a0;
opacity: 0.6;
border: 1px solid gray;
position: absolute;
display: flex;
}
div#container {
margin: 0px;
position: absolute;
left: 0;
top: 0;
width: 500px;
height: 400px;
}
</style>
<script src="__javascript__/mandel.js"></script>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Mandelbrot">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="apple-touch-icon" href="mandel.png">
</head>
<body onload="mandel.mandelbrot.startup(); mandel.mandelbrot.draw();">
<div id="container">
<canvas id="mandelbrot" width="100%" height="100%"/>
<span id="selector" style="left: 100px; top: 100px; width: 400px; height: 400px; visibility: hidden;">
<table width="100%" height="100%" style="border-collapse: collapse; border: 0px solid white;">
<tr>
<td style="background-color: white; width: 6px; height: 6px; cursor: nwse-resize;"/>
<td colspan="3"/>
<td style="background-color: white; width: 6px; height: 6px; cursor: nesw-resize;"/>
</tr>
<tr>
<td colspan="5"/>
</tr>
<tr>
<td colspan="2"/>
<td style="background-color: white; width: 6px; height: 6px; cursor: move;"/>
<td colspan="2"/>
</tr>
<tr>
<td colspan="5"/>
</tr>
<tr>
<td style="background-color: white; width: 6px; height: 6px; cursor: nesw-resize;"/>
<td colspan="3"/>
<td style="background-color: white; width: 6px; height: 6px; cursor: nwse-resize;"/>
</tr>
</table>
</span>
</div>
<div id="control">
<p>Width <input type="text" value="300" id="txt_width"/></p>
<p>Max iter <input type="text" value="128" id="txt_max_iter"/></p>
<p> </p>
<button onclick="mandel.mandelbrot.draw()">Draw</button>
<button onclick="mandel.mandelbrot.reset()">Reset</button>
<p> </p>
<table width="200px" style="margin: 2px; border: 1px solid blue; background-color: white;">
<tr height="20px" align="left">
<td style="background-color: white; margin: 0px; width: 1px;"/>
<td id="progress-bar" style="background-color: blue; width: 100%; margin: 0px;"/>
<td style="background-color: white; margin: 0px;"/>
</tr>
</table>
</div>
</body>
</html>