-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (73 loc) · 3.72 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
<!doctype html>
<head>
<meta charset="utf-8">
<meta name="description" content="Render different cellular automata with WebGL.">
<meta name="author" content="FrankenApps">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="theme-color" content="#2196f3">
<title>Cellular Automata</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/framework7/5.5.0/css/framework7.bundle.min.css" integrity="sha256-+9uD27/dPQqWnGKVDntAdgPsw4It69+dpRxwJNA/msY=" crossorigin="anonymous" />
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="wrapper" style="text-align: center">
<div class="controlBar" id="controlBar" style="display: inline-block;"></div>
</div>
<div id="app" class="menu">
<div class="statusbar"></div>
<div class="view view-main">
<div data-name="home" class="page" style="background-color: rgba(255, 255, 255, 0.6);">
<div class="page-content" style="overflow: hidden;">
<div class="block-title" style="font-size: large; font-weight: bold; line-height: inherit; color: black;">Settings</div>
<div class="list simple-list">
<ul style="background-color: transparent;">
<li>
<span>Iterations:</span>
<div class="item-cell flex-shrink-3" style="overflow: visible;">
<!-- range slider, enable labels -->
<div class="range-slider range-slider-init color-orange" id="iterationSlider" data-label="true" data-value="150">
<input type="range" min="2" max="1000" step="1" value="150">
</div>
</div>
</li>
<li>
<span>Random Start:</span>
<label class="toggle toggle-init color-green" id="randomStart">
<input type="checkbox">
<span class="toggle-icon"></span>
</label>
</li>
<li>
<span>Show Grid:</span>
<label class="toggle toggle-init color-green" id="showGrid">
<input type="checkbox" checked>
<span class="toggle-icon"></span>
</label>
</li>
<li id="invalidRuleSelection" style="display: none;">
<span>Rule selection is invalid.</span>
</li>
<li>
<span><b id="displayRule">Rule 30</b> is currently displayed.</span>
</li>
</ul>
</div>
<p id="progressBar"></p>
<div class="block">
<button class="button button-fill color-lightblue" style="width: 40%;" id="updateGrid">Update</button>
<button class="button button-fill color-red" style="width: 40%; display: none;">Cancel</button>
</div>
</div>
</div>
</div>
</div>
<!-- Libraries -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/framework7/5.5.0/js/framework7.bundle.min.js" integrity="sha256-CuDxj2oCYQITzeCgCsF4lNb5L6dgBaDuMCyZQcJLJj0=" crossorigin="anonymous"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.1.3/pixi.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" integrity="sha256-VeNaFBVDhoX3H+gJ37DpT/nTuZTdjYro9yBruHjVmoQ=" crossorigin="anonymous"></script>
<script src="script.js" type="text/javascript"></script>
</body>
</html>