-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (64 loc) · 2.65 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
<html>
<head>
<title>Agent-based Forum</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"></meta>
<script src="jquery.js"></script>
<script src="flot/jquery.flot.min.js"></script>
<script src="include.js"></script>
<script src="application.js"></script>
<script src="agent_based_forum.js"></script>
<script type="text/javascript">
$('document').ready(function() {
forum = new Forum(ABF.DEFAULT_OPTIONS);
setup_forum_gui(forum, '#space', '#plot_space', '#start');
setup_dropdown('#mode_select', MODE_STRINGS, ABF.DEFAULT_OPTIONS.mode);
setup_dropdown('#plot_select', PLOT_STRINGS, ABF.SELECTED_PLOT);
draw_config_fields('#config_space', forum, CONFIGURABLES);
});
</script>
</head>
<body>
<div style="width: 80em; float: left">
<div style="width: 24em; float: left; padding-right: 1em;">
<h1 style="margin: 0;">Agent-based Forum</h1>
<h4>by Wybo Wiersma</h4>
<p style="font-size: 0.8em;">
<a href="runs.html">View runs</a>,
<a href="http://www.gnu.org/licenses/agpl.html">A-GPL-ed</a>,
<a href="agent_based_forum.js.html">view source</a>,
<a href="https://github.com/wybo/Agent-based-Forum">Github</a>
</p>
<h3>Usage</h3>
<ul>
<li><i>Start/Pause simulation</i> to run it</li>
<li><i>Next generation</i> for stepwise</li>
<li><i>Restart</i> resets it</li>
<li>Use the drop-down to select different
thread structures.</li>
</ul>
<p>
<input type="button" id="start" value="Start simulation" />
<input type="button" value="Next generation" onclick="forum.run();" />
<input type="button" value="Restart" onclick="forum.restart();" />
</p>
<p>
<select id="mode_select" onchange="forum.set_mode(this); draw_config_fields('#config_space', forum, CONFIGURABLES)"></select>
</p>
</div>
<div style="width: 600px; float: right; padding-left: 1em;">
<select id="plot_select" onchange="forum.set_plot(this)" style="margin-bottom: 0.5em; float: right;"></select>
<div id="plot_space" style="width: 600px; height: 340px; float: right; clear: right;"></div>
</div>
<div style="width: 15em; float: right; padding-right: 1em;">
<div id="config_space"></div>
</div>
</div>
<div id="content">
<canvas id="space" width="3200" height="1800">
<strong>Your browser does not support canvas.</strong>
</canvas>
</div>
Copyright: (c) 2011 Wybo Wiersma, Available under the
<a href="http://www.gnu.org/licenses/agpl.html">Affero GPL, v3</a>
</body>
</html>