-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
212 lines (169 loc) · 11.5 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE HTML>
<html lang="en">
<head>
<!--
The MIT License
Copyright (c) 2010-2012 danx0r (Daniel B. Miller), Authors of three.js.
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<title>BUSY BOXES</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/application.css"></link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" ></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body >
<div id="big_chris_container">
<div id="moodal_background" style="position:absolute;width:100%;height:100%;background-color:black;z-index:100;opacity:0.2;display:none">
</div>
<div id="trail_type" style="display:none">
Trail length:<input class="moodal_default" id="trail_length" tabindex=1 type="text" value="100"></input><br/>
<p></p>Select trail type:</p>
<button tabindex=2 onclick="moodal_choice('cell')">Trails for every cell</button>
<button tabindex=3 onclick="moodal_choice('average')">Trail for average</button>
</div>
<div id="trails_disabled" style="display:none">
<p></p>Trails are now disabled</p>
<button onclick="moodal_choice('OK')" style="font-size:large;padding:4px 15px 4x 15px">OK</button>
</div>
<div id="random_prompt" style="display:none">
Volume width:<input id="random_prompt_width" class="moodal_default" tabindex=2 type="text" value="4"></input><br/>
Cell count:<input id="random_prompt_count" tabindex=3 type="text" value="16"></input><br/>
Red/Blue ratio:<input id="random_prompt_ratio" tabindex=4 type="text" value="0.5"></input><br/>
<br/>
<button tabindex=5 onclick="moodal_choice('CANCEL')">CANCEL</button>
<button tabindex=6 onclick="moodal_choice('OK')" style="border:ridge;border-color:black;border-style:double;">OK</button>
</div>
<div id="leftLinks" style="position:absolute;font-size:large">
<div style="opacity:0.7">
Generation:
<span id="generation"></span>
<br/>
phase:
<span id="showphase"></span>
<br/>
Direction:
<span id="direction"></span>
<br/>
Speed:
<span id="showspeed">fast</span>
<br/>
Cells:
<span id="cellcount"></span>
<br/>
Cursor:
<span id="cursorpos"></span>
<br/>
Hash:
<span id="showhash" style="font-size:smaller"></span>
<br/>
<span id="showinfo"></span>
<span id="duplicates"></span>
</div>
<!-- drop down explorations -->
<div class="btn-group">
<button type="button" data-toggle="dropdown" class="btn btn-default dropdown-toggle">Rule Set <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="?rule=bbRule">Basic</a></li>
<li><a href="?rule=golRule">Game of Life</a></li>
<li><a href="?rule=gol3DRule">Game of Life 3D</a></li>
<li><a href="?rule=rule3state">New 3-state rule</a></li>
</ul>
</div>
<div class="btn-group">
<button type="button" data-toggle="dropdown" class="btn btn-default dropdown-toggle">Configurations <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" onclick="setRule('?rule=golRule')" id="x"> choose a rule</a></li>
<li><a href="#" id="introHash" onclick="selectHash('PeciXwDuTA0', this)">Intro</a></li>
<li><a href="#" onclick="selectHash('GJR0', this)">Glider 1</a></li>
<li><a href="#" onclick="selectHash('UMlSpB0', this)">Glider 2</a></li>
<li><a href="#" onclick="selectHash('IYKmDcRzB0', this)">Glider 3</a></li>
<li><a href="#" onclick="selectHash('IYKmDIA0', this)">Glider 4</a></li>
<li><a href="#" onclick="selectHash('PB0jwU0vAB0', this)">Glider 5</a></li>
<li><a href="#" onclick="selectHash('PR0cME0nAA0', this)">Glider 6</a></li>
<li><a href="#" onclick="selectHash('IFIWA0', this)">Cycle 1 (12)</a></li>
<li><a href="#" onclick="selectHash('csmKB0', this)">Cycle 2 (12)</a></li>
<li><a href="#" onclick="selectHash('AQGk0', this)">Cycle 3 (24)</a></li>
<li><a href="#" onclick="selectHash('BwF6Ao40', this)">Cycle 4 (36)</a></li>
<li><a href="#" onclick="selectHash('UMXTUukA0', this)">Cycle 5 (42)</a></li>
<li><a href="#" onclick="selectHash('ACRAs0', this)">Cycle 6 (60)</a></li>
<li><a href="#" onclick="selectHash('sIECiMgQKE0', this)">Cycle 7 (84)</a></li>
<li><a href="#" onclick="selectHash('IDYCyj0B5', this)">Cycle 8 (144)</a></li>
<li><a href="#" onclick="selectHash('cICOg2CB0', this)">Cycle 9 (582)</a></li>
<li><a href="#" onclick="selectHash('sICMBZBAULIB0', this)">Cycle 10 (3966)</a></li>
<li><a href="#" onclick="selectHash('Tc9FLA0', this)">Boomerang (60)</a></li>
<li><a href="#" onclick="selectHash('HS8UNxTp0', this)">Deflect (Routing)</a></li>
<li><a href="#" onclick="selectHash('XUcUN4Ab3pB0', this)">Logic (Interaction Gate)</a></li>
<li><a href="#" onclick="selectHash('cs6dxwG0', this)">Move</a></li>
<li><a href="#" onclick="selectHash('MLDQ3S82JzTA0', this)">Fast and Slow</a></li>
<li><a href="#" onclick="selectHash('EAHuexNzTmB0', this)">Capture and emit</a></li>
<li><a href="#" onclick="selectHash('QAgIjoICCzCBB0', this)">Delayed release</a></li>
<li><a href="#" onclick="selectHash('vwB3JyPaCCCPQCCCPQCCCPQCCD1dPHzPM0', this)">Attraction</a></li>
<li><a href="#" onclick="selectHash('MnCTi7uMxOftTl7px47ec4vgSHgMH4FTu5zo-AZk5eecBOvjnR8BSU5ecunSHFwcvwEh4BOm.APh4eTqSB0', this, 24)" id="order_chaos">Order Out of Chaos</a></li>
<li><a href="#" onclick="selectHash('UHfALungB5AgUEEegIFBBHoCBwAj0BAoII9AQKCDydXwCsA0', this, 24)" id="struct_decay">Decay</a></li>
<li><a href="#" onclick="selectHash('UkDEoQIHETAnBgQo9IUYECBwzo6Q4AQSdAUmCBDhoQOAcCCDOjoIBAgcAUmCnB0CBAgcQ9Abg6KHATBSdAYOE4OkUUIFBejBAgcIJOgIEDgBBJ1BwnBgwcQ9AUY9ACToCBxE6QoIJwdIcI9IUKPQECBwBB0', this)">
Big Bang (Entropy)</a></li>
<li><a href="#" onclick="selectHash('HefAXExMTE8Axy.Ag7vAMcuJicpw854AUqVKlSpUqVL8Bz4JUaKVKl0', this, 40)" id="strung_out">Strung out</a></li>
<li><a href="#" onclick="selectHash('EOjuPgFiYmJieAY8AnwIPgL4BzwBw0NDYnKeANLzngEo0aNH4DnwGSpUqVLR0', this, 40)" id="octave">Octave</a></li>
<li><a href="#" onclick="selectHash('cDvPgDiQ0NiYngHPAN8CD4EeAc8AweA2Gh8DMSGhuc8APMcyWjRSpaPwGPgOlS0aB0', this, 40)" id="strung_out">Harmonic Chaos</a></li>
<li><a href="#" onclick="selectHash('RZejhMkpklOTtLA0', this, 40, 250)" id="circular">Circular Motion</a></li>
</ul>
</div>
<div style="display:none">
<div id="banner">
<span style="background-color: #fff; opacity:0.5; border-bottom: 1px solid #ddd; padding: 8px 10px; font-size:medium">
<b>click & drag to rotate view | scroll to zoom | arrows move cursor; U & D for up/down | ENTER to create/delete | S to step</b>
</span>
<div>
</p><button class="bannerButtons" onclick="toggleRunning()">RUN/STOP</button>
<button class="bannerButtons" onclick="fastSlow()">FAST/SLOW</button>
<button class="bannerButtons" onclick="isRunning = true; mainLoop(); isRunning = false;">STEP</button>
<button class="bannerButtons" onclick="reverseDirection()">DIRECTION</button>
<button class="bannerButtons" onclick="randomCells(12, -2, 1)">RANDOM</button>
<button class="bannerButtons" onclick="playStopMusic()">MUSIC</button>
<button class="bannerButtons" onclick="toggleTrails()">TRAILS</button>
<button class="bannerButtons" onclick="clearGrid()">CLEAR</button>
<button class="bannerButtons" onclick="update()">UPDATE</button>
<button class="bannerButtons" onclick="reset()">RESET</button>
</div>
<a href="faq.html" target="_blank" style="font-size:larger">faq</a>
|
<a href="https://github.com/danx0r/BusyBoxes" target="_blank" style="font-size:larger">source</a>
</div>
</div>
<script type="text/javascript" src="js/ThreeCanvas.js"></script>
<script type="text/javascript" src="js/Cube.js"></script>
<script type="text/javascript" src="js/Plane.js"></script>
<script type="text/javascript" src="js/encdec.js"></script>
<script type="text/javascript" src="js/moodal.js"></script>
<script type="text/javascript" src="js/Grid.js"></script>
<script type="text/javascript" src="js/Rule.js"></script>
<script type="text/javascript" src="js/golRule.js"></script>
<script type="text/javascript" src="js/gol3DRule.js"></script>
<script type="text/javascript" src="js/bbRule.js"></script>
<script type="text/javascript" src="js/bb3Rule.js"></script>
<script type="text/javascript" src="js/bb3StateRule.js"></script>
<script type="text/javascript" src="js/rule3state.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<div style="display:none">
<img src="tracking.jpg"></img>
</div>
</div>
</body>
</html>