-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
317 lines (281 loc) · 10.5 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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-control" content="public" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Fully functional online BeFunge 93 IDE with editor, interpreter, stack, console, grid visualisation, debugger and nyan cats animations" />
<meta name="keywords" content="BeFunge 93, Online BeFunge 93, BeFunge 93 editor, BeFunge 93 IDE, BeFunge 93 interpreter, nyan cats, befunge" />
<meta name="author" content="Artur Pas" />
<meta name="robots" content="index, follow" />
<title>Online Befunge 93 IDE</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Squada+One&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.4.0/css/all.css" />
<!-- --------------- style --------------- -->
<link rel="stylesheet" href="css/index.css" />
<link rel="stylesheet" href="css/header.css" />
<link rel="stylesheet" href="css/grid.css" />
<link rel="stylesheet" href="css/interface.css" />
<!-- --------------- scripts --------------- -->
<script src="js/Language.js" defer></script>
<script src="js/Settings.js" defer></script>
<script src="js/Grid.js" defer></script>
<script src="js/Code.js" defer></script>
<script src="js/Stack.js" defer></script>
<script src="js/Console.js" defer></script>
<script src="js/Popup.js" defer></script>
<script src="nyan_cats/default/nyancat_default.js" defer></script>
<script src="nyan_cats/gameboy/nyancat_gameboy.js" defer></script>
<script src="nyan_cats/rasta/nyancat_rasta.js" defer></script>
<script src="nyan_cats/mexican/nyancat_mexican.js" defer></script>
<script src="nyan_cats/christmas/nyancat_christmas.js" defer></script>
<script src="js/NyanCat.js" defer></script>
<script src="js/NyanCatMenu.js" defer></script>
<script src="js/Interpreter.js" defer></script>
</head>
<body>
<header>
<div class="logo">
<span>Online Befunge 93 IDE</span>
<div class="lang"></div>
</div>
<div class="menu">
<div class="nyancat-menu">
<div class="button"></div>
<div class="nyancat-buttons">
<div class="default"></div>
<div class="gameboy"></div>
<div class="rasta"></div>
<div class="christmas"></div>
<div class="mexican"></div>
</div>
</div>
<div class="menu-button informations">
<i class="fa-solid fa-info"></i>
<div class="content">
<h2 data-lang-text="informations"></h2>
<span class="close"><i class="far fa-times-circle"></i></span>
<h3>BeFunge-93</h3>
<hr />
<p data-lang-text="description1"></p>
<p data-lang-text="description2"></p>
<p><span data-lang-text="see_more"></span><a href="https://esolangs.org/wiki/Befunge">https://esolangs.org/wiki/Befunge</a></p>
<h3 data-lang-text="example_programs"></h3>
<hr />
<div class="example-programs"></div>
</div>
</div>
<div class="menu-button instructions">
<i class="fa-solid fa-bars"></i>
<div class="content">
<h2 data-lang-text="instructions"></h2>
<span class="close"><i class="far fa-times-circle"></i></span>
<table>
<tr>
<th data-lang-text="command"></th>
<th data-lang-text="description"></th>
</tr>
<tr>
<td>0 - 9</td>
<td data-lang-text="push_number"></td>
</tr>
<tr>
<td>+</td>
<td data-lang-text="add_numbers"></td>
</tr>
<tr>
<td>-</td>
<td data-lang-text="substract_numbers"></td>
</tr>
<tr>
<td>*</td>
<td data-lang-text="multiply_numbers"></td>
</tr>
<tr>
<td>/</td>
<td data-lang-text="divide_numbers"></td>
</tr>
<tr>
<td>%</td>
<td data-lang-text="modulo"></td>
</tr>
<tr>
<td>!</td>
<td data-lang-text="negation"></td>
</tr>
<tr>
<td>`</td>
<td data-lang-text="compare"></td>
</tr>
<tr>
<td>></td>
<td data-lang-text="direction_right"></td>
</tr>
<tr>
<td><</td>
<td data-lang-text="direction_left"></td>
</tr>
<tr>
<td>^</td>
<td data-lang-text="direction_top"></td>
</tr>
<tr>
<td>v</td>
<td data-lang-text="direction_bottom"></td>
</tr>
<tr>
<td>?</td>
<td data-lang-text="direction_random"></td>
</tr>
<tr>
<td>_</td>
<td data-lang-text="direction_horizontal_condition"></td>
</tr>
<tr>
<td>|</td>
<td data-lang-text="direction_vertical_condition"></td>
</tr>
<tr>
<td>"</td>
<td data-lang-text="string_mode"></td>
</tr>
<tr>
<td>:</td>
<td data-lang-text="duplicate"></td>
</tr>
<tr>
<td>\</td>
<td data-lang-text="swap"></td>
</tr>
<tr>
<td>$</td>
<td data-lang-text="pop"></td>
</tr>
<tr>
<td>.</td>
<td data-lang-text="output_int"></td>
</tr>
<tr>
<td>,</td>
<td data-lang-text="output_char"></td>
</tr>
<tr>
<td>#</td>
<td data-lang-text="skip"></td>
</tr>
<tr>
<td>g</td>
<td data-lang-text="get"></td>
</tr>
<tr>
<td>p</td>
<td data-lang-text="put"></td>
</tr>
<tr>
<td>&</td>
<td data-lang-text="input_int"></td>
</tr>
<tr>
<td>~</td>
<td data-lang-text="input_char"></td>
</tr>
<tr>
<td>@</td>
<td data-lang-text="end"></td>
</tr>
</table>
</div>
</div>
<div class="menu-button help">
<i class="fa-solid fa-question"></i>
<div class="content">
<h2 data-lang-text="help"></h2>
<span class="close"><i class="far fa-times-circle"></i></span>
<h3 data-lang-text="help"></h3>
<hr />
</div>
</div>
</div>
</header>
<div class="settings">
<div class="colors">
<div class="color-picker select">
<label for="select_color" class="picked-color"></label>
<input type="color" value="#34aaff" id="select_color" />
<label for="select_color" data-lang-text="select"></label>
</div>
<div class="color-picker pointer">
<label for="pointer_color" class="picked-color"></label>
<input type="color" value="#ffd000" id="pointer_color" />
<label for="pointer_color" data-lang-text="pointer"></label>
</div>
<div class="color-picker one_time_breakpoint">
<label for="one_time_breakpoint_color" class="picked-color"></label>
<input type="color" value="#ff0000" id="one_time_breakpoint_color" />
<label for="one_time_breakpoint_color" data-lang-text="one_time_breakpoint"></label>
</div>
<div class="color-picker breakpoint">
<label for="breakpoint_color" class="picked-color"></label>
<input type="color" value="#a600ff" id="breakpoint_color" />
<label for="breakpoint_color" data-lang-text="breakpoint"></label>
</div>
</div>
<div class="other">
<div class="speed">
<label data-lang-text="pointer_speed"></label>
<input type="range" min="1" max="60" value="60" step="1" id="pointer_speed" />
<span>60</span>
</div>
<div class="show-grid">
<input type="checkbox" id="show_grid" checked />
<label for="show_grid" data-lang-text="show_grid"></label>
</div>
</div>
</div>
<div class="grid"></div>
<div class="controls">
<button class="init">
<i class="fa-solid fa-file-arrow-up"></i>
<span data-lang-text="load"></span>
</button>
<button class="execute">
<i class="fa-solid fa-forward-fast"></i>
<span data-lang-text="execute"></span>
</button>
<button class="run">
<i class="fa-solid fa-play"></i>
<span data-lang-text="run"></span>
</button>
<button class="step">
<i class="fa-solid fa-forward-step"></i>
<span data-lang-text="step"></span>
</button>
<button class="stop">
<i class="fa-solid fa-stop"></i>
<span data-lang-text="stop"></span>
</button>
</div>
<div class="interface">
<div class="code">
<h5 data-lang-text="program_code"></h5>
<textarea cols="80" rows="25" wrap="hard" maxlength="2000">"!dlrow ,olleH",,,,,,,,,,,,,@</textarea>
</div>
<div class="stack">
<h5><span data-lang-text="stack"></span> (<span class="size">0</span>)</h5>
<textarea class="scroll" cols="5" disabled></textarea>
</div>
<div class="console">
<h5 data-lang-text="console"></h5>
<textarea readonly></textarea>
</div>
</div>
<footer>
© Copyright 2023
<a href="https://github.com/Pasek108" target="_blank">Artur Pas <i class="fab fa-github"></i></a>
</footer>
</body>
</html>