-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZendo Interactive.html
80 lines (75 loc) · 3.97 KB
/
Zendo Interactive.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
<title>Zendo Interactive — Keep Talking and Nobody Explodes Module</title>
<link rel="stylesheet" type="text/css" href="css/font.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/zendo-prototype.css">
<script src="js/ktane-utils.js"></script>
<style>
.dark table, table {
margin: 1em auto;
border: none;
}
.page-footer::before { content: 'Page '; }
.page-footer::after { content: ' of 2'; }
</style>
</head>
<body>
<div class="section">
<div class="page page-bg-01">
<div class="page-header">
<span class="page-header-doc-title">Keep Talking and Nobody Explodes Mod</span>
<span class="page-header-section-title">Zendo Interactive</span>
</div>
<div class="page-content">
<img src="img/Component/Zendo.svg" class="diagram">
<h2>On the Subject of Zendo Interactive</h2>
<p class="flavour-text">This module is about reverse engineering, so we reverse engineered it.</p>
<p>
This is an interactive version of the Zendo module. See <a href="Zendo.html">the original manual</a> for more information.
</p>
<p>
<label>Show rule <input type="checkbox" id="showrule" onchange="refreshDisplay()"></label>
</p>
<p><button onclick="resetModule()">New instance</button></p>
<p id="rulestring">Rule: ?</p>
<p id="validstring">This pattern is ?</p>
<div class="module-container">
<div class="module-top">
<canvas id="grid" onclick="gridOnClick(event)"></canvas>
<div class="palette-holder">
<div id="status-light"></div>
<div class="flex-spacer"></div>
<div class="palette">
<div class="swatch-column">
<button class="btn-swatch" onclick="setShape(0)"><img src="img/Zendo Interactive/circle.png"></button>
<button class="btn-swatch" onclick="setShape(1)"><img src="img/Zendo Interactive/triangle.png"></button>
<button class="btn-swatch" onclick="setShape(2)"><img src="img/Zendo Interactive/square.png"></button>
</div>
<div class="swatch-column">
<button class="btn-swatch" onclick="setColor(0)" style="background-color:red"></button>
<button class="btn-swatch" onclick="setColor(1)" style="background-color:yellow"></button>
<button class="btn-swatch" onclick="setColor(2)" style="background-color:#194fff"></button>
</div>
</div>
<canvas id="brush" width="50" height="50" onclick="erasePress()"></canvas>
<div class="flex-spacer"></div>
</div>
</div>
<div class="module-bottom">
<button id="btn-yes" onclick="buttonPress('y')">Y</button>
<button id="btn-no" onclick="buttonPress('n')">N</button>
<button id="btn-ready" onclick="buttonPress('ready')">Ready</button>
</div>
</div>
<script src="js/Zendo/zendo-prototype.js"></script>
</div>
<div class="page-footer relative-footer">1</div>
</div>
</div>
</body>
</html>