-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (115 loc) · 3.11 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en-US">
<!-- <svg width="960" height="600"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="graph.js"></script> -->
<head>
<meta charset="UTF-8" />
<title>Rauzy Fractal Experiment</title>
<link
rel="stylesheet"
type="text/css"
href="rauzyFractal.css"
media="screen"
/>
<script src="math.js" type="text/javascript"></script>
<script src="plotly-latest.min.js" type="text/javascript"></script>
</head>
<body onload="spinnerOff()">
<div id="graphImage">
<img src="graph.png" alt="tribonacci graph" width="300" height="300" />
</div>
<div id="loader"></div>
<p>
Enter a point from ℤ<sup><sup>3 </sup></sup> for each edge by
using the form
<span style="background-color: #e6e6e6; font-style: italic">
<code>z,z,z</code> </span
> where <i> z </i> is an integer. Be careful with
<i> Detail</i>, 13 is suggested, but anything above 15 takes a bit longer.
</p>
<form id="inputs">
<div class="wrapper">
<div>
<label for="e1">edge 1</label>
<input
type="text"
id="e1"
name="e1"
required
value="0,0,0"
pattern="-?[0-9]+,-?[0-9]+,-?[0-9]+"
/>
</div>
<div>
<label for="e2">edge 2</label>
<input
type="text"
name="edge-2"
id="e2"
required
value="0,0,0"
pattern="-?[0-9]+,-?[0-9]+,-?[0-9]+"
/>
</div>
<div>
<label for="e3">edge 3</label>
<input
type="text"
name="edge-3"
id="e3"
required
value="0,0,0"
pattern="-?[0-9]+,-?[0-9]+,-?[0-9]+"
/>
</div>
<div>
<label for="e4">edge 4</label>
<input
type="text"
name="edge-4"
id="e4"
required
value="1,0,0"
pattern="-?[0-9]+,-?[0-9]+,-?[0-9]+"
/>
</div>
<div>
<label for="e5">edge 5</label>
<input
type="text"
name="edge-5"
id="e5"
required
value="1,0,0"
pattern="-?[0-9]+,-?[0-9]+,-?[0-9]+"
/>
</div>
<div>
<label for="pathL">Detail (1-17)</label>
<input
type="text"
name="pathL"
id="pathL"
required
value="14"
pattern="^[0-1]?[0-7]$"
/>
</div>
</div>
<div id="button">
<button type="submit">Show me the fractal!</button>
</div>
</form>
<div>
<div id="plotContainer">
<div class="container">
<div id="plot2d"></div>
<div id="plot3d"></div>
</div>
</div>
<script type="text/javascript" src="logic.js"></script>
<script type="text/javascript" src="matrixPowers.js"></script>
</div>
</body>
</html>