-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (62 loc) · 2.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Collatz Visualization</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="styles/style.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
<body onload="onLoad()">
<canvas id="canvas"></canvas>
<div id="form-div">
<h1>Collatz Builder</h1>
<form id="form" onsubmit="event.preventDefault(); generateFromForm();">
<fieldset>
<div class="form-field">
<label for="line-length">Line length:</label>
<input id="line-length" type="text" name="line-length" value="30">
</div>
<div class="form-field">
<label for="seed">Seed:</label>
<input id="seed" type="text" name="seed" value="8">
</div>
<div class="form-field">
<label for="prev-angle">Starting angle:</label>
<input id="prev-angle" type="text" name="prev-angle" value="3.204">
</div>
<div class="form-field">
<label for="angle-step">Angle step:</label>
<input id="angle-step" type="text" name="angle-step" value="0.242">
</div>
<div class="form-field">
<label for="prev-x">Starting x-pos:</label>
<input id="prev-x" type="text" name="prev-x" value="600">
</div>
<div class="form-field">
<label for="prev-y">Starting y-pos:</label>
<input id="prev-y" type="text" name="prev-y" value="1200">
</div>
<div class="form-field">
<label for="max-num">Max number:</label>
<input id="max-num" type="text" name="max-num" value="100000">
</div>
<div class="form-field">
<label for="max-steps">Max steps:</label>
<input id="max-steps" type="text" name="max-steps" value="40">
</div>
<div class="form-field">
<label for="steps">Steps:</label>
<input id="steps" type="text" name="steps" value="0">
</div>
</fieldset>
<input type="submit" value="Generate">
</form>
</div>
<script src="scripts/CollatzBranch.js"></script>
<script src="scripts/Utils.js"></script>
<script src="scripts/SceneManager.js"></script>
<script src="scripts/FormHandler.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>