-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (65 loc) · 2.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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="site.css" />
</head>
<body>
<canvas id="boid" width="800" height="700">
Sorry, your browser doesn't support HTML5 canvas.
</canvas>
<div id="options">
<p class="options_header">Options</p>
<p class="section_header">Canvas</p>
<div class="opt_section">
<label>Height:
<input id="opt_height" type="text" />
</label>
<label>Width:
<input id="opt_width" type="text" />
</label>
<p id="opt_size_warning" class="opt_warning">
Please make sure that the height and width are valid numbers.
Nothing was changed this time.
</p>
<input id="canvas_opt_submit" type="button" value="Apply" />
</div>
<p class="section_header">Edges</p>
<div class="opt_section">
<label>Wrap around edges:
<input id="opt_wrap_edges" type="checkbox" />
</label>
<label>Repel from edges:
<input id="opt_repel_edges" type="checkbox" />
</label>
<p id="opt_edges_warning" class="opt_warning">
Though these don't actually conflict, having
both enabled looks really stupid. I'd suggest choosing one or the other.
</p>
</div>
<p class="section_header">Click</p>
<div class="opt_section">
<label>General Scatter:
<input id="opt_gen_scatter" type="radio" name="opt_scatter_radio" />
</label>
<label>Scatter from click point:
<input id="opt_target_scatter" type="radio" name="opt_scatter_radio" />
</label>
<label>Flock toward click point:
<input id="opt_target_gather" type="radio" name="opt_scatter_radio" />
</label>
</div>
<p class="section_header">General</p>
<div class="opt_section">
<label>Boid Count:
<input id="opt_boid_count" type="text" />
</label>
<p id="opt_boid_count_warning" class="opt_warning">
Please enter a valid number.
</p>
<input id="opt_boid_count_submit" type="button" value="Apply" />
</div>
</div>
<script type="text/javascript" src="boid.js"></script>
</body>
</html>