-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
332 lines (290 loc) · 13.2 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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="The most wholesome "programming language"">
<meta name="author" content="Laura Pircalaboiu and Ricardo Vogel">
<meta name="keywords" content="heartfuck, heart fuck, brainfuck equivalent, esoteric programming language, brainfuck, funny programming language">
<title>Heartfuck</title>
<!-- Bootstrap core CSS -->
<link href="website/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="https://fonts.googleapis.com/css?family=Saira+Extra+Condensed:500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Muli:400,400i,800,800i" rel="stylesheet">
<link href="website/vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="website/css/resume.css" rel="stylesheet">
<link href="website/css/heartfuck.css" rel="stylesheet">
</head>
<body id="page-top">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top" id="sideNav">
<a class="navbar-brand js-scroll-trigger" href="#page-top">
<span class="d-block d-lg-none">Heartf❤️ck</span>
<span class="d-none d-lg-block">
<img class="img-fluid img-profile mx-auto mb-2" src="website/img/heart.png" alt="">
</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#run">Run heartf❤️ck</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#text">Text to heartf❤️ck</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#bf-hf">Brainfuck to heartf❤️ck</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#dsc">Discord tags to heartf❤️ck</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#hf-bf">Heartf❤️ck to brainfuck</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#about">About</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid p-0">
<section class="resume-section p-3 p-lg-5 d-flex d-column" id="home">
<div class="my-auto">
<h1 class="mb-0">HEART<span class="text-primary">F❤️CK</span>
</h1>
<div class="subheading mb-5">The most wholesome "programming language"</div>
<p class="lead mb-5">by Laura Pircalaboiu and Ricardo Vogel<br>
Python compiler by Jonathan Dönszelmann</p>
<div class="social-icons">
<a href="http://github.com/heartfuck/heartfuck">
<i class="fab fa-github"></i>
</a>
<a href="https://twitter.com/red_shifts">
<i class="fab fa-twitter"></i>
</a>
<a href="https://twitter.com/_ricardovogel_">
<i class="fab fa-twitter"></i>
</a>
</div>
</div>
</section>
<hr class="m-0">
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="run">
<div class="my-auto">
<div class="container">
<div class="row">
<div class="col-sm">
<h2 class="mb-5">Run heart<span class="text-primary">f❤️ck</span></h2>
<textarea type="text" class="form-control Input" placeholder="Enter heartfuck to run" id="interpretHeartfuck"
rows="10"></textarea><br>
<button class="btn btn-pink" onclick="interpretHeartfuck()">Run</button>
<button type="button" class="btn btn-pink" data-toggle="modal" data-target="#exampleModalCenter">
Enter input </button>
<button class="btn btn-pink" onclick="copyOutputToClipBoard(this)"><span>Copy output<span></button>
<button class="btn btn-pink" onclick="clearTextArea(this); clearInputArea()">Clear input</button>
</div>
<div class="col-sm hf-output-mobile">
<span class="hf-output" id="outputRUN"></span>
</div>
</div>
</div>
</div>
</section>
<hr class="m-0">
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="text">
<div class="my-auto">
<div class="container">
<div class="row">
<div class="col-sm">
<h2 class="mb-5">Convert text to Heart<span class="text-primary">f❤️ck</span>
</h2>
<textarea type="text" class="form-control Input" placeholder="Enter text to convert" id="textToHeartfuck"
rows="10"></textarea><br>
<button class="btn btn-pink" onclick="textToHeartfuck()">Convert</button>
<button class="btn btn-pink" onclick="copyOutputToClipBoard(this)"><span>Copy output<span></button>
<button class="btn btn-pink" onclick="clearTextArea(this)">Clear input</button>
</div>
<div class="col-sm hf-output-mobile">
<span class="hf-output" id="outputTXT"></span>
</div>
</div>
</div>
</div>
</section>
<hr class="m-0">
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="bf-hf">
<div class="my-auto">
<div class="container">
<div class="row">
<div class="col-sm">
<h2 class="mb-5">Brainfuck to Heart<span class="text-primary">f❤️ck</span></h2>
</h2>
<textarea type="text" class="form-control Input" placeholder="Enter Brainfuck to convert" id="brainfuckToHeartfuck"
rows="10"></textarea><br>
<button class="btn btn-pink" onclick="runBrainfuckToHeartfuck()">Convert</button>
<button class="btn btn-pink" onclick="copyOutputToClipBoard(this)"><span>Copy output<span></button>
<button class="btn btn-pink" onclick="clearTextArea(this)">Clear input</button>
</div>
<div class="col-sm hf-output-mobile">
<span class="hf-output" id="outputBFHF"></span>
</div>
</div>
</div>
</div>
</section>
<hr class="m-0">
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="dsc">
<div class="my-auto">
<div class="container">
<div class="row">
<div class="col-sm">
<h2 class="mb-5">Discord tags to Heart<span class="text-primary">f❤️ck</span>
</h2>
<textarea type="text" class="form-control Input" placeholder="Enter Discord tags to convert" id="tagsToHeartfuck"
rows="10"></textarea><br>
<button class="btn btn-pink" onclick="convertToDiscord()">Convert</button>
<button class="btn btn-pink" onclick="copyOutputToClipBoard(this)"><span>Copy output<span></button>
<button class="btn btn-pink" onclick="clearTextArea(this)">Clear input</button>
</div>
<div class="col-sm hf-output-mobile">
<span class="hf-output" id="outputDSC"></span>
</div>
</div>
</div>
</div>
</section>
<hr class="m-0">
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="hf-bf">
<div class="my-auto">
<div class="container">
<div class="row">
<div class="col-sm">
<h2 class="mb-5">Heart<span class="text-primary">f❤️ck</span> to brainfuck</h2>
</h2>
<textarea type="text" class="form-control Input" placeholder="Enter Heartfuck to convert" id="heartfuckToBrainfuck"
rows="10"></textarea><br>
<button class="btn btn-pink" onclick="runHeartfuckToBrainfuck()">Convert</button>
<button class="btn btn-pink" onclick="copyOutputToClipBoard(this)"><span>Copy output<span></button>
<button class="btn btn-pink" onclick="clearTextArea(this)">Clear input</button>
</div>
<div class="col-sm hf-output-mobile">
<span class="bf-output hf-output" id="outputHFBF"></span>
</div>
</div>
</div>
</div>
</section>
<hr class="m-0">
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="about">
<div class="my-auto">
<h2 class="mb-5">About Heart<span class="text-primary">f❤️ck</span></h2>
<p2>
Heart<span class="text-primary">f❤️ck</span> is the most wholesome programming language you never knew you
needed!
It is based on Brainfuck, except all the characters are hearts. On our GitHub repository we provide a
Heart<span class="text-primary">fu❤️k</span> compiler written in Python. If you have any questions about the
language do not hesitate to contact us on Twitter!<br><br>
</p2>
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">Heart<span class="text-primary">f❤️ck</span></th>
<th scope="col">Brainfuck</th>
<th scope="col">Purpose</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">💗</th>
<td>></td>
<td>increment the data pointer (to point to the next cell to the right). </td>
</tr>
<tr>
<th scope="row">💜</th>
<td><</td>
<td>decrement the data pointer (to point to the next cell to the left). </td>
</tr>
<tr>
<th scope="row">💖</th>
<td>+</td>
<td>increment (increase by one) the byte at the data pointer. </td>
</td>
</tr>
<tr>
<th scope="row">❤️</th>
<td>-</td>
<td>decrement (decrease by one) the byte at the data pointer. </td>
</tr>
<tr>
<th scope="row">💌</th>
<td>.</td>
<td>output the byte at the data pointer. </td>
</tr>
<tr>
<th scope="row">❣️</th>
<td>,</td>
<td>accept one byte of input, storing its value in the byte at the data pointer. </td>
</tr>
<tr>
<th scope="row">💛</th>
<td>[</td>
<td>if the byte at the data pointer is zero, then instead of moving the instruction pointer forward to
the next command, jump it forward to the command after the 💙 command.</td>
</tr>
<tr>
<th scope="row">💙</th>
<td>]</td>
<td>if the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to
the next command, jump it back to the command after the matching 💛 command.
</td>
</tr>
</tbody>
</table>
<small>Heartfuck is © <span id="copyrightnotice">2019</span> Laura Pircalaboiu and Ricardo Vogel under the
MIT License.
More information can be found <a href="https://github.com/heartfuck/heartfuck/blob/master/LICENSE.md">here</a>.</small>
</div>
</section>
</div>
<!-- Input modal -->
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Enter input</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<textarea type="text" class="form-control Input" placeholder="Enter input" id="dataInput" rows="10"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-pink" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript -->
<script src="website/vendor/jquery/jquery.min.js"></script>
<script src="website/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="website/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for this template -->
<script src="website/js/main.js"></script>
<script src="website/js/interpreting.js"></script>
<script src="website/js/resume.min.js"></script>
<script type="text/javascript">
document.getElementById("copyrightnotice").innerHTML = new Date().getFullYear();
</script>
</body>
</html>