-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
251 lines (251 loc) · 10.8 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BitViz - A Bitwise Operation Visualizer</title>
<link rel="stylesheet" href="semantic.min.css">
</head>
<body>
<div id="modalBox" class="ui dimmer" style="overflow-y: auto; position:fixed">
<div class="ui modal" id="logModal">
<div class="header">Execution Log</div>
<div class="scrolling content">
<p id="logpage"></p>
</div>
<div class="ui fluid negative button modalClose" data-parent="logModal">CLOSE</div>
</div>
<div class="ui small modal transition hidden" id="helpModal" style="margin: 3rem">
<img class="ui large image" src="qhelp.jpg" style="margin: auto;">
<div class="ui fluid negative button modalClose" data-parent="helpModal">CLOSE</div>
<a href="https://github.com/unsuitable001/BitViz/blob/master/README.md#legends--keybindings" target="_blank"><div class="ui fluid pink button">FULL HELP</div></a>
<a href="https://github.com/unsuitable001/BitViz/wiki" target="_blank"><div class="ui fluid black button">WIKI</div></a>
</div>
<div id="newVarModal" class="ui tiny modal hidden transition">
<i class="close icon modalClose" data-parent="newVarModal"></i>
<div class="header">
Define new variable
</div>
<div class="content">
<form class="ui form" id="addNewVarP1">
<div class="field">
<label>Enter Variable Name</label>
<input id="newVarName" type="text" name="new-var-name" placeholder="Variable Name" autofocus>
</div>
<div class="field">
<label>Enter Data Type</label>
<select class="ui fluid dropdown" id="newVarType">
<option value="auto">Auto</option>
<option value="int32">Signed Integer 32</option>
<option value="uint32">Unsigned Integer 32</option>
<option value="char">Character</option>
</select>
</div>
</form>
<div class="actions">
<button class="ui right floated positive right labeled icon button" type="button" id="nvmp1button">
Next
<i class="right arrow icon"></i>
</button>
<button class="ui right floated black deny button modalClose" data-parent="newVarModal">
Cancel
</button>
</div>
</div>
</div>
<div id="newVarModalP2" class="ui tiny modal hidden transition">
<i class="close icon modalClose" data-parent="newVarModalP2"></i>
<div class="header">
Define new variable
</div>
<div class="content">
<form class="ui form" id="addNewVarP2">
<div class="field">
<label>Enter Value</label>
<input id="newVarValue" type="text" name="new-var-value" placeholder="Variable Value" autofocus>
</div>
</form>
<div class="actions">
<button class="ui right floated positive right labeled icon button" type="button" id="nvmp2button">
Ok
<i class="checkmark icon"></i>
</button>
<button class="ui right floated black deny button modalClose" data-parent="newVarModalP2">
Cancel
</button>
</div>
</div>
</div>
<div id="editVarModal" class="ui tiny modal hidden transition">
<i class="close icon modalClose" data-parent="editVarModal"></i>
<div class="header">
Modify selected variable
</div>
<div class="content">
<form class="ui form" id="editVar">
<div class="field">
<label>Enter New Value</label>
<input id="editVarValue" type="number" name="edit-var-value" placeholder="Variable Value">
</div>
</form>
<div class="actions">
<div class="ui right floated positive right labeled icon button" id="evmbutton">
Ok
<i class="checkmark icon"></i>
</div>
<div class="ui right floated black deny button modalClose" data-parent="editVarModal">
Cancel
</div>
</div>
</div>
</div>
</div>
<div class="ui center aligned primary segment">
<div class="ui small image"><img src="icon.png"></div>
<h1> BitViz - A Bitwise Operation Visualizer</h1>
<a href="https://github.com/unsuitable001/BitViz">
<i class="ui large black github icon"></i>
</a>
<a href="https://twitter.com/unsuitable001/">
<i class="ui large twitter icon"></i>
</a>
<a href="https://gitter.im/unsuitable001/">
<i class="ui large pink gitter icon"></i>
</a>
</div>
<div id="cnPanel">
<div class="ui nine column centered grid">
<div class="column">
<div class="fluid ui primary button" id="getVar">
<i class="plus icon"></i> New Variable
</div>
</div>
<div class="column">
<div class="fluid ui positive button" id="LShift">
<i class="angle double left icon"></i>
</div>
</div>
<div class="column">
<div class="fluid ui positive button" id="RShift">
<i class="angle double right icon"></i>
</div>
</div>
<div class="column">
<div class="fluid ui positive button" id="AND">
<i class="magic icon"></i>AND
</div>
</div>
<div class="column">
<div class="fluid ui positive button" id="OR">
<i class="magic icon"></i>OR
</div>
</div>
<div class="column">
<div class="fluid ui positive button" id="XOR">
<i class="magic icon"></i>XOR
</div>
</div>
<div class="column">
<div class="fluid ui positive button" id="NOT">
<i class="magic icon"></i>NOT
</div>
</div>
<div class="column">
<div class="fluid ui teal button" id="pasteLog">
<i class="code icon"></i>
</div>
</div>
<div class="column">
<div class="fluid ui purple button" id="helpBtn">
<i class="question circle icon"></i> Help
</div>
</div>
</div>
</div>
<div class="ui fifteen column center aligned grid" id="calcArea">
<div class="row">
<div class="one wide column">
<div class="ui one column grid">
<div class="column">
<div class="ui celled one column grid">
<div class="delBit column">Last Deleted Bit</div>
</div>
</div>
</div>
</div>
<div class="eleven wide column">
<div class="ui sixteen column grid">
<div class="eight wide column">
<div class="ui celled sixteen column grid">
<div class="bit column">31</div>
<div class="bit column">30</div>
<div class="bit column">29</div>
<div class="bit column">28</div>
<div class="bit column">27</div>
<div class="bit column">26</div>
<div class="bit column">25</div>
<div class="bit column">24</div>
<div class="bit column">23</div>
<div class="bit column">22</div>
<div class="bit column">21</div>
<div class="bit column">20</div>
<div class="bit column">19</div>
<div class="bit column">18</div>
<div class="bit column">17</div>
<div class="bit column">16</div>
</div>
</div>
<div class="eight wide column">
<div class="ui celled sixteen column grid">
<div class="bit column">15</div>
<div class="bit column">14</div>
<div class="bit column">13</div>
<div class="bit column">12</div>
<div class="bit column">11</div>
<div class="bit column">10</div>
<div class="bit column">9</div>
<div class="bit column">8</div>
<div class="bit column">7</div>
<div class="bit column">6</div>
<div class="bit column">5</div>
<div class="bit column">4</div>
<div class="bit column">3</div>
<div class="bit column">2</div>
<div class="bit column">1</div>
<div class="bit column">0</div>
</div>
</div>
</div>
</div>
<div class="one wide column">
<div class="ui one column grid">
<div class="column">
<div class="ui celled one column grid">
<div class="delBit column">Last Deleted Bit</div>
</div>
</div>
</div>
</div>
<div class="two wide column">
<div class="ui one column grid">
<div class="column">
<div class="ui celled two column grid">
<div class="column">Variable Name</div>
<div class="column" id="rval">Value</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui center aligned tiny header">Built with <i class="ui tiny red heart icon"></i>by unsuitable001</i></div>
<style>
.delBit.column {
background-color: #F9A0A0;
color: #fff;
}
</style>
<script src="index.js"></script>
</body>
</html>