-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
159 lines (151 loc) · 5.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/fontello-embedded.css" rel="stylesheet">
<link href="css/app.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<h1>Rule 110</h1>
</div>
<div class="row">
<p class="description"><a href="https://en.wikipedia.org/wiki/Rule_110" target="_blank">Rule 110</a> is one of the simplest Turing-complete cellular automatons. This implementation lives on the Ethereum blockchain. Use a browser wallet like <a href="https://metamask.io/" target="_blank">MetaMask</a> to evolve an existing game or to create a new one. Click on a game cell row to see the originating transaction.</p>
</div>
<div class="row">
<p class="description">This Ðapp is deployed to mainnet, as well as Kovan and Rinkeby testnets.</p>
</div>
<div class="row">
<p class="description">See this project on <a href="https://github.com/vsergeev/evolve110" target="_blank">GitHub</a> for code and more information.</p>
</div>
<div class="row">
<h3>Game</h3>
</div>
<div id="game">
<table class="table table-condensed table-sm borderless">
<tbody>
<tr>
<th class="col-no-ellipsis" >Address</th>
<td class="mono" id="game-address"></td>
</tr>
<tr>
<th class="col-no-ellipsis">Size</th>
<td id="game-size"></td>
</tr>
<tr>
<th class="col-no-ellipsis">Description</th>
<td id="game-description"></td>
</tr>
<tr>
<th class="col-no-ellipsis">Evolutions</th>
<td id="game-evolutions"></td>
</tr>
</tbody>
</table>
<div class="row">
<div class="board"></div>
</div>
<div class="text-center">
<div id="evolve-button-tooltip" class="disabled-tooltip"><button id="evolve-button" type="button" class="btn btn-info" disabled>Evolve</button></div>
</div>
</div>
<div class="row">
<h3>Game List</h3>
</div>
<div id="game-list" class="row">
<table class="table table-hover borderless">
<thead>
<tr>
<th class="col-ellipsis">Address</th>
<th class="col-no-ellipsis">Size</th>
<th class="col-ellipsis">Description</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="row">
<h3>Create Game</h3>
</div>
<div id="game-create">
<div class="row">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon" id="sizing-addon1">Initial Cells</span>
<input id="create-initial-cells" type="text" class="form-control mono" aria-describedby="sizing-addon1" value="">
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Size (3 to 256)</span>
<input id="create-size" type="text" class="form-control mono" aria-describedby="sizing-addon2" value="">
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon3">Description</span>
<input id="create-description" type="text" class="form-control" aria-describedby="sizing-addon3" value="">
</div>
</div>
</div>
<div class="row">
<div class="board"></div>
</div>
<div class="text-center">
<div id="create-button-tooltip" class="disabled-tooltip"><button id="create-button" type="button" class="btn btn-info" disabled>Create</button></div>
</div>
</div>
<div class="row">
<h3>Tip Box</h3>
</div>
<div id="tipbox">
<div class="row">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon" id="sizing-addon5">Amount</span>
<input id="tip-amount" type="text" class="form-control" aria-label="Amount" aria-describedby="sizing-addon5" value="">
<span class="input-group-addon">ETH</span>
</div>
</div>
</div>
<div class="text-center">
<div id="tip-button-tooltip" class="disabled-tooltip"><button id="tip-button" type="button" class="btn btn-info" disabled>Tip</button></div>
</div>
</div>
</div>
<footer class="footer">
<div class="container text-center">
<span class="text-muted">© Vanya A. Sergeev, 2017 — <a href="https://sergeev.io/">projects</a>, <a href="https://github.com/vsergeev">github</a></a>
</div>
</footer>
<div id="result-modal" class="modal fade">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="status-bar">
<div class="container">
<table>
<tr>
<td id="status-bar-network"><i class="icon-globe"></i> Network: </td>
<td id="status-bar-version"><i class="icon-cog-alt"></i> Version: </td>
<td id="status-bar-wallet"><i class="icon-wallet"></i> Wallet: </td>
</tr>
</table>
</div>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/web3.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>