forked from IvanGav/ConmansGameOfLife
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (69 loc) · 2.88 KB
/
index.html
File metadata and controls
71 lines (69 loc) · 2.88 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="button.css">
<link rel="stylesheet" href="states.css">
</head>
<body>
<div>
<h1 onclick="switchdev()">Conman's Game of Life</h1>
</div>
<div id="menu">
<div class="buttonContainer" id="genButton">
<div class="button" onclick="regenerateBoard()">Regenerate Grid</div>
</div>
<div class="buttonContainer" id="goButton">
<div class="button" onclick="doStep(); startSteps()">Go</div>
</div>
<div class="buttonContainer" id="stopButton" style="display: none;">
<div class="button" onclick="stopSteps()">Stop</div>
</div>
<div class="buttonContainer" id="stepButton">
<div class="button" onclick="doStep()">Step</div>
</div>
<div class="buttonContainer" id="turboButton">
<div class="button" onclick="toggleTurbo()">Toggle Turbo Mode</div>
</div>
<div class="buttonContainer" id="randButton">
<div class="button" onclick="randBoard()">Generate Random Cells</div>
</div>
<!-- <div class="buttonContainer">
<div class="button" onclick="addRandRule()">Add Rule</div>
</div> -->
</div>
<div id="game"></div>
<script src="apply_rules.js"></script>
<script src="main.js"></script>
<script src="dialog_modals.js"></script>
<!-- i'm not sure if it's best to put them statically or just add them through JS, but they're here for the time being -->
<dialog class="dialogModal" id="exportSettings">
<h1>Export Settings</h1>
<p>Click on the box below and press Ctrl+A to select everything, or press Copy.</p>
<input id="exportSettingsOutput" disabled="true"></p>
<div class="buttonPanel">
<div class="buttonContainer" id="closeDialogExportButton">
<div class="button" onclick="closeDialogExport()">Close</div>
</div>
<div class="buttonContainer" id="copyExportButton">
<div class="button" onclick="copyExport()">Copy</div>
</div>
</div>
</dialog>
<dialog class="dialogModal" id="importSettings">
<h1>Import Settings</h1>
<input id="importSettingsInput" placeholder="Put in settings here" autofocus="false"></input>
<div class="buttonPanel">
<div class="buttonContainer" id="closeDialogImportButton">
<div class="button" onclick="closeDialogImport()">Cancel</div>
</div>
<div class="buttonContainer" id="importRulesButton">
<div class="button" onclick="dialogImportRules()">Import</div>
</div>
</div>
</dialog>
</body>
</html>