-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.html
More file actions
559 lines (515 loc) ยท 29.2 KB
/
Copy pathindex.html
File metadata and controls
559 lines (515 loc) ยท 29.2 KB
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="./favicon.ico" />
<!-- CDN for jQuery and select2 -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JukeBox</title>
<meta name="application-name" content="JukeBox" />
<meta name="apple-mobile-web-app-title" content="JukeBox">
<meta name="description" content="JukeBox is a mod of Slarmoo's Box that aims to add a crap ton of presets." />
<meta name="keywords" content="chiptune, instrumental, music, song, melody, composition, tool, free, online, square wave, NES, NSF, jukebox, ultrabox, beepbox, jummbox, pandorasbox, modbox, sandbox, goldbox, wackybox, todbox, slarmoo's box" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="theme-color" content="#ad7760" />
<meta name="msapplication-TileColor" content="#ad7760" />
<meta name="msapplication-config" content="/browserconfig.xml" />
<meta name="format-detection" content="telephone=no" />
<meta property="og:image" content="https://jukeebox.github.io/icon_shadow_192.png" />
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./icon_32.png" />
<link rel="manifest" href="./manifest.webmanifest" />
<link href="https://fonts.googleapis.com/css?family=B612" rel="stylesheet" media="none" onload="if (this.media != 'all') this.media='all';" /> <!-- this is a trick to load CSS asynchronously. -->
<style type="text/css">
html {
background: var(--page-margin, black);
overflow-x: hidden;
font-size: large;
font-family: 'B612', sans-serif;
line-height: 1.3;
color: var(--primary-text, white);
}
body {
margin: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
align-items: center;
align-content: center;
}
#beepboxEditorContainer {
min-height: 645px;
overflow: auto;
background: var(--editor-background, black);
width: 100%;
max-width: 710px;
padding-left: 30px;
padding-right: 30px;
}
#text-content {
overflow: auto;
background: var(--editor-background, black);
width: 100%;
max-width: 710px;
padding-left: 30px;
padding-right: 30px;
}
#Hotdog { display: none; }
h1 {
font-size: 1.7rem;
text-align: center;
margin-top: 0.5em;
margin-bottom: 0.5em;
-webkit-text-stroke-width: 0;
color: var(--mod-title, #8C5D49);
}
h2 {
font-size: 1.5rem;
text-align: center;
margin-top: 0.5em;
margin-bottom: 0.5em;
-webkit-text-stroke-width: 0;
}
summary {
font-size: 1.5rem;
text-align: center;
margin-top: 0.5em;
margin-bottom: 0.5em;
-webkit-text-stroke-width: 0;
}
.centerDiv {
margin: 0px auto;
}
a {
color: var(--link-accent, #98f);
text-decoration: underline;
}
.donation form {
display: inline;
}
.donation input[type="submit"] {
appearance: none;
-webkit-appearance: none;
background: none;
border: none;
font-family: inherit;
font-size: inherit;
color: var(--link-accent, #98f);
text-decoration: underline;
cursor: pointer;
padding: 0;
margin: 0;
}
/* wide screen */
@media (min-width: 711px) {
html {
width: 100%;
}
body {
width: 100%;
}
.column-container {
width: 710px;
display: flex;
gap: 25px;
}
.instructions-column {
min-width: 0;
}
.bsky-column {
width: 300px;
flex-shrink: 0;
}
}
/* narrow screen */
@media (max-width: 710px) {
body {
width: 100%;
}
p, .donation {
margin: 1em 0.5em;
}
.column-container {
display: flex;
flex-direction: column;
align-items: center;
}
}
</style>
</head>
<body id="secondImage">
<script>
const image = localStorage.getItem('customTheme2');
const el = document.getElementById('secondImage');
if (image != null && image !== "null" && image !== "undefined") {
el.style.backgroundImage="url(" + image + ")";
el.style.backgroundRepeat= "repeat";
}
</script>
<div id="beepboxEditorContainer">
<noscript>
Sorry, JukeBox requires a JavaScript-enabled browser.
</noscript>
</div>
<div id="text-content">
<section>
<h1>
<font>JukeBox</font>
<span id="goldboxPlant" style="display: inline; color:#62a13b"></span>
<!-- <span id="goldboxPlant" style="display: inline; color: var(--plant-color, var(--link-accent, #62a13b));"></span> -->
</h1>
<p id="introduction">
JukeBox is a mod of Slarmoo's Box that aims to add a crap ton of presets. <br>
(see <a onclick="window.open('./manual/credits.html')">credits</a>).
</p>
<!-- <p>
All song data is contained in the URL at the top of your browser.
When you make changes to the song, the URL is updated to reflect your changes.
When you are satisfied with your song, just copy and paste the URL to save and share your song!
</p> -->
<div class="donation">
BeepBox is a passion project, and will always be free to use. If you find it valuable and have the means, please feel free to show your gratitude to the original creator of Beepbox here:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="business" value="QZJTX9GRYEV9N" />
<input type="hidden" name="currency_code" value="USD" />
<input type="submit" name="submit" value="Paypal"/>
</form>
<br><br>
Additionally, Slarmoo's Box, which is the basis of JukeBox, takes a lot of time to make and update. If you have found it valuable and are able to do so, please consider donating to Slarmoo here:
<form action="https://www.paypal.com/donate/?hosted_button_id=BMLD7HPKFR6NG" method="post" target="_blank">
<input type="submit" name="submit" value="Paypal" />
</form>
<br><br>
<section>
<h2>
About
</h2>
<p>
JukeBox, developed by CoolTasDude, is a mod of Slarmoo's Box which is a mod of UltraBox which ported features from Pandora's Box into GoldBox which are both mods of JummBox which is a mod of BeepBox.
</p>
<p>
JukeBox does not claim ownership over songs created with it, so original songs belong to their authors.
</p>
<p>
Neither JukeBox nor its creators assume responsibility for any copyrighted material played on JukeBox. No songs are ever received, recorded, or distributed by JukeBox's servers. All song data is contained in the URL after the hash (#) mark, and JukeBox running inside your browser converts that data into sound waves.
</p>
<p>
JukeBox does not collect, track, or share any user data.
</p>
</section>
<section>
<details>
<summary>Keybinds List:</summary>
<p>If you are new to BeepMods, know that the first 3 sections have the most important keybinds.</p>
<h3>General</h3>
<ul>
<li><b>Spacebar</b>: play or pause the song</li>
<li><b>Shift Spacebar</b>: play from mouse location</li>
<li><b>Z</b>: undo</li>
<li><b>Y or Shift Z</b>: redo</li>
<li><b>C</b>: copy pattern from selection</li>
<li><b>V</b>: paste pattern into selection</li>
<li><b>X</b>: cut pattern</li>
<li><b>+/-</b>: move notes up or down</li>
<li><b>Shift & +/-</b>: move notes up or down one octave</li>
<li><b>Shift + Drag</b>: Selects notes or patterns</li>
</ul>
<h3>Patterns, Channels, and Bars</h3>
<ul>
<li><b>0-9</b>: assign pattern number to selection</li>
<li><b>Arrows</b>: move selection</li>
<li><b>D</b>: duplicate a pattern</li>
<li><b>N</b>: create a new blank pattern</li>
<li><b>Delete</b>: clear pattern data</li>
<li><b>A</b>: select entire song</li>
<li><b>Shift A</b>: select current channel</li>
<li><b>Enter</b>: add a new bar after currently selected one</li>
<li><b>Shift Enter</b>: add a new bar before currently selected one</li>
<li><b>Backspace</b>: delete currently selected bar</li>
<li><b>Ctrl Enter</b>: add channel</li>
<li><b>Ctrl Backspace</b>: delete currently selected channel</li>
<li><b>Ctrl & Arrows</b>: move selected channel up or down</li>
</ul>
<h3>Channel Muting:</h3>
<ul>
<li><b>M</b> (or shift S): Mute/unmute a channel</li>
<li><b>S</b>: Solo/unsolo a channel</li>
<li><b>Shift M</b>: Mute/unmute entire song</li>
</ul>
<h3>Playhead</h3>
<ul>
<li><b>[ ]</b>: move playhead backward or forward one bar</li>
<li><b>F</b>: move playhead to start</li>
<li><b>Shift F</b>: move to start of loop</li>
<li><b>H</b>: move playhead to highlighted pattern</li>
<li><b>B</b>: loop selected bars</li>
</ul>
<h3>Instruments</h3>
<ul>
<li><b>Shift C</b>: copy instrument settings</li>
<li><b>Shift C</b>: paste instrument settings</li>
<li><b>R</b>: select random preset</li>
<li><b>Shift R</b>: generate random instrument</li>
<li><b>Alt R</b>: generate random instrument with same type</li>
<li><b>T</b>: select next preset</li>
<li><b>Alt E</b>: open/close all envelope dropdowns</li>
<li><b>Alt F</b>: open/close all fm dropdowns</li>
</ul>
<h3>Simultaneous Instrument Per Channel (if enabled):</h3>
<ul>
<li><b>Alt Enter</b>: add instrument within channel</li>
<li><b>Alt Backspace</b> delete instrument within channel</li>
<li><b>Shift 0-9</b> select/toggle corresponding instrument within channel</li>
</ul>
<h3>Song Player:</h3>
<ul>
<li><b>Spacebar</b>: play or pause the song</li>
<li><b>[ ]</b>: move playhead backward or forward one bar</li>
<li><b>F</b>: move to first pattern</li>
<li><b>L</b>: toggle loop</li>
<li><b>Z/+/-</b>: toggle zoom</li>
<li><b>Shift E/P</b>: return to editor</li>
<li><b>Shift U</b>: shorten song player link</li>
</ul>
<h3>Miscellaneous</h3>
<ul>
<li><b>Shift ~</b>: new blank song</li>
<li><b>Shift P</b>: open song player</li>
<li><b>Shift U</b>: shorten song url</li>
</ul>
<!--
<p>For the complete list of keybinds, check the <a onclick="window.open('https://beepbox.miraheze.org/wiki/Keybinds')">BeepBox Wiki</a> for more info.</p>
-->
</details>
<details>
<summary>Preset Tags List:</summary>
<p>Note that all tags have no spaces and are case insensitive</p>
<h3>BeepBox Category Tags:</h3>
<ul>
Retro, Keys, Idiophone, Guitar, Picked, Distortion, String, Vocal, Brass, Reed, Flute, Pad,
Drums (all drum types), HiHat, Snare, Kick, Novelty
</ul>
<h3>Special Category Tags:</h3>
<ul>
<b>Featured:</b> The top 5-10% of instruments picked out by CoolTasDude<br>
<b>Bass:</b> Instruments that work best at low pitches<br>
<b>Lead:</b> Instruments that work best at high pitches<br>
<b>Ambience:</b> Ambient background sounds, like wind <br>
<b>Chiptune:</b> Chipwaves with minimal effects<br>
<b>Dubstep:</b> wub wub bwwooooOOOOWWWWWwwww<br>
<b>SFX:</b> Instruments that resemble specific sound effects.
<b></b>
</ul>
<h3>Instrument Type Tags:</h3>
<ul>
Chip (any), ChipWave, CustomChip,
FM (any), FM4op, FM6op,
Supersaw, PWM (pulse width), PickedString, Harmonics, Spectrum, Noise, Drumset
</ul>
<h3>BeepMod Tags:</h3>
<p>These tags only exist for BeepMods with 10 or more presets</p>
<ul>
JukeBox, BeepBox, JummBox, UltraBox, SandBox, MidBox, AbyssBox, AwesomeBox, LemmBox, BulbBox, SlarmooโsBox, Unbox
</ul>
<h3>Community Tags:</h3>
<p>These tags are for users with 10 or more non-novelty presets:</p>
<ul>
CoolTasDude, DX7FM, HoneyKitKD, Calamity, ThatBeepboxGuy, truemori, TheTuneCrusher, Bagel, ia.kisha, snowirei, Krmailence, DamageLoL,
HappyLemonLime, spendog, SomethingOriginal, eggfry, august, Treethletress, Synthetic, SuP3R, RBLX_INST, Jayden256, 3001ideaz, ex1,
Ashiiware, Jacobar475, Formskooooo, dragoncoder047
</ul>
</details>
</section>
<ul></ul>
</div>
<div style="justify-content: center; display: flex; cursor: pointer;">
<div onclick="window.open('./manual/introduction.html')" style="height: 80px; background: black; width: 430px; border-radius: 20px; border: solid 1px #444; display: flex; flex-direction: row; align-items: center;">
<div style="height: 100%;width: 80px;border-right: 1px solid #444;/*! border-radius: 10px; */background-image: url(./image_assets/manual_brown.png);background-size: 90%;background-repeat: no-repeat;background-position: center;"></div>
<div style="flex: 1;text-align: center;font-size: 21px;text-decoration: underline;color: #795548;">JukeBox Manual</div>
</div>
</div>
<p></p>
<div style="justify-content: center; display: flex; cursor: pointer;">
<div onclick="window.open('https:/\/forms.gle/B29T3gCRHB6srueB8')" style="height: 80px; background: black; width: 430px; border-radius: 20px; border: solid 1px #444; display: flex; flex-direction: row; align-items: center;">
<div style="height: 100%;width: 78px;margin-left: 2px; border-right: 1px solid #444;/*! border-radius: 10px; */background-image: url(./image_assets/google_forms.png);background-size: 90%;background-repeat: no-repeat;background-position: center;"></div>
<div style="flex: 1;text-align: center;font-size: 21px;text-decoration: underline;color: #7046BB">JukeBox Preset Submission Form</div>
</div>
</div>
<p></p>
<div style="justify-content: center; display: flex; cursor: pointer;">
<div onclick="window.open('//discord.gg/xSs9nABmP5')" style="height: 80px; background: black; width: 430px; border-radius: 20px; border: solid 1px #444; display: flex; flex-direction: row; align-items: center;">
<div style="height: 100%;width: 80px;border-right: 1px solid #444;/*! border-radius: 10px; */background-image: url(./image_assets/discord.png);background-size: 90%;background-repeat: no-repeat;background-position: center;"></div>
<div style="flex: 1;text-align: center;font-size: 21px;text-decoration: underline;color: #5865F2;">JukeBox Community Discord</div>
</div>
</div>
<p></p>
<div style="justify-content: center; display: flex; cursor: pointer;">
<div onclick="window.open('//github.com/JukeeBox/JukeBox_TypeScript')" style="height: 80px; background: black; width: 430px; border-radius: 20px; border: solid 1px #444; display: flex; flex-direction: row; align-items: center;">
<div style="height: 100%;width: 80px;border-right: 1px solid #444;/*! border-radius: 10px; */background-image: url(./image_assets/github.png);background-size: 90%;background-repeat: no-repeat;background-position: center;"></div>
<div style="flex: 1;text-align: center;font-size: 21px;text-decoration: underline;color: white;">JukeBox Source Code</div>
</div>
</div>
<p></p>
<div style="justify-content: center; display: flex; cursor: pointer;">
<div onclick="window.open('//beepbox-launchpad.github.io')" style="height: 80px; background: black; width: 430px; border-radius: 20px; border: solid 1px #444; display: flex; flex-direction: row; align-items: center;">
<div style="height: 100%;width: 80px;border-right: 1px solid #444;/*! border-radius: 10px; */background-image: url(./image_assets/launchpad.png);background-size: 90%;background-repeat: no-repeat;background-position: center;"></div>
<div style="flex: 1;text-align: center;font-size: 21px;text-decoration: underline;color: #7744FF;">BeepBox Launchpad</div>
</div>
</div>
<p style="text-align: center;">Launchpad made by Slarmoo, Choptop84, and HappyLemonLime</p>
<div style="justify-content: center; display: flex; cursor: pointer;">
<div onclick="window.open('./bluesky', '_blank')" style="height: 80px; background: black; width: 430px; border-radius: 20px; border: solid 1px #444; display: flex; flex-direction: row; align-items: center;">
<div style="height: 100%;width: 80px;border-right: 1px solid #444;/*! border-radius: 10px; */background-image: url(./image_assets/bsky.png);background-size: 90%;background-repeat: no-repeat;background-position: center;"></div>
<div style="flex: 1;text-align: center;font-size: 21px;text-decoration: underline;color: #1185fe;"> Music on Bluesky</div>
</div>
</div>
<br><br>
</div>
</div>
<!--
Instead of loading js beepbox editor interface directly, test for browser support.
<script type="text/javascript" src="beepbox_editor.min.js"></script>
-->
<script type="text/javascript">
// Randomize display of header
const plants = [
/*
// jummbox/goldbox plants
"๐", "๐ฟ", "๐บ", "๐", "๐", "๐๐ท", "๐๐๐๐๐ท๐๐ฒ๐๐๐บ๐", " 1๏ธโฃ3๏ธโฃ1๏ธโฃ2๏ธโฃ",
//blubox plants
"โฝ(โ แด โ)โผ", "โฝ(แด _ แด)โผ", "โฝ(โ _ โ)โผ", "โฝ(แต โฟ แต)โผ",
// familiarbox plant (there were others, but the code of familiarbox is long gone)
// this is actually a reference to really old lore chippy made for one of their projects
"โ๏ธโญ๐๐๏ธ",
// suggested by mel, meant to supplement the lack of a worm logo
// (in case it doesn't show up, this is meant to be a worm emoji)
"๐ชฑ",
// I believe this is from paandorasbox (might have also been present in familiarbox???? maybe not though...)
//slarmoo - changed to not wackybox, because it isn't :p
"not :wackybox:",
// plant originally suggested by mel in reference to the "(don't) eat thegubbys" meme
"๐",
// blubox desktop plants
"โก","๐ต","๐ซ",
// LemmBox
"๐",
// Slarmoo's Box plants
"โจ","๐","๐ง๏ธ","๐ชจ","๐","๐ฒ","๐ณ","๐","๐ฆ","๐โ๐ซ","๐ต","and Bobby","๐ฅ",
*/
//Current version
"1.0.0", // I wonder how many times I'll forget about this
//JukeBox
"(did someone say presets?)", //0.2.1
"Since 1889", "Since 7/30/2010", /**"and not ShoeBox", **/ "No Escape", "and C A G F motif", //0.2.2
"[insert funny joke]", "at least 3 presets", "Neoff Orange", "WOWZERS", "46% serious", //0.2.3
"NOW IN 2D!!!", ":3", "eeheehee", "99.98% Survival Rate!", "extra sodium!", ":3 (but louder)", "explodes" //1.0.0
];
const date = new Date();
if (Math.floor(Math.random() * 0) == 0) { // plants always show up now
document.getElementById("goldboxPlant").innerHTML = " " + plants[(Math.floor(Math.random() * plants.length))];
/*
//Slarmoo's Box holiday plants
const winterPlants = ["๐", "๐ช", "โ๏ธ", "๐", "โ๏ธ"];
if ((date.getDate() >= 22 && date.getDate() <= 26) && date.getMonth() == 11) {
document.getElementById("goldboxPlant").innerHTML = " " + winterPlants[(Math.floor(Math.random() * winterPlants.length))];
}
//Slarmoo's Box Halloween plants
const spookyPlants = ["๐", "๐ฌ", "๐ป", "๐", "๐งช"];
if ((date.getDate() == 31) && date.getMonth() == 9) {
document.getElementById("goldboxPlant").innerHTML = " " + spookyPlants[(Math.floor(Math.random() * spookyPlants.length))];
}
//Slarmoo's Box valentines plants
const heartPlants = ["โค๏ธ", "๐งก", "๐", "๐", "๐", "๐"];
if ((date.getDate() >= 13 && date.getDate() <= 15) && date.getMonth() == 1) {
document.getElementById("goldboxPlant").innerHTML = " " + heartPlants[(Math.floor(Math.random() * heartPlants.length))];
}
//Slarmoo's Box pi day plants
if ((date.getDate() == 14) && date.getMonth() == 2) {
const piePlants = ["ฯ", "๐ฅง", "๐", "๐", "3.14"];
document.getElementById("goldboxPlant").innerHTML = " " + piePlants[(Math.floor(Math.random() * piePlants.length))];
}
*/
}
/*
if ((date.getDate() == 1) && date.getMonth() == 3) {
const foolishPlants = ["Censorship Update", "19.8.4", "๐๏ธ", "๐", "๐ซ"];
document.getElementById("goldboxPlant").innerHTML = " " + foolishPlants[(Math.floor(Math.random() * foolishPlants.length))];
}
*/
if ((date.getDate() == 21) && date.getMonth() == 7) { // updated to JukeBox
const years = date.getFullYear() - 2025;
const birthdayPlants = [years + " year" + (years != 1 ? "s" : "") + "!", /* "๐", "๐", "Happy Birthday!", */ "Anniversary"];
document.getElementById("goldboxPlant").innerHTML = " " + birthdayPlants[(Math.floor(Math.random() * birthdayPlants.length))];
}
if(Math.random() * 10000 < 1) {
document.getElementById("goldboxPlant").addEventListener("click", function (event) {
window.open("./macandcheese.html", "_blank");
})
const a = document.createElement("a");
document.getElementById("goldboxPlant").innerHTML = " macaroni and cheese";
document.getElementById("goldboxPlant").style.color = "#bb8822";
}
/*
if(document.getElementById("goldboxPlant").innerText.includes("๐ฒ")) {
document.getElementById("goldboxPlant").addEventListener("mouseover", function (event) {
document.getElementById("goldboxPlant").innerText = " ๐๐๐๐๐ท๐๐๐๐๐บ๐";
}, { once: true })
}
*/
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|android|ipad|playbook|silk/i.test(navigator.userAgent)) {
document.getElementById("introduction").innerHTML = "JukeBox is an online tool for sketching and sharing chiptune melodies. Make sure that your volume is turned up, then press the play button!";
//document.getElementById("keyboard-instructions").style.display = "none";
//document.getElementById("mobile-instructions").style.display = "";
//document.getElementById("bar-editing").innerHTML = "Tap the boxes to move to a different part of the song, or tap on the currently selected box to swap which pattern is played during that part of the song.";
//document.getElementById("offline-instructions").innerHTML = 'You can use UltraBox when your device is offline if you put a shortcut to UltraBox on your home screen. <ul><li>Chrome: find the "Add to Home Screen" option in the โฎ menu.</li><li>Firefox: find the "Add Page Shortcut" option in the โฎ menu.</li><li>Safari: find the "Add to Home Screen" option in the bookmark menu.</li></ul>';
}
function browserHasRequiredFeatures() {
"use strict";
if (window.AudioContext == undefined && window.webkitAudioContext == undefined) {
return false;
}
try {
eval("class T {}");
eval("const a = () => 0");
eval("for (const a of []);");
} catch (error) {
return false;
}
return true;
}
if (browserHasRequiredFeatures()) {
// Go ahead and load js beepbox editor interface:
var fileref = document.createElement("script");
fileref.setAttribute("type", "text/javascript");
fileref.setAttribute("src", "beepbox_editor.min.js");
/* april fools version
if ((date.getDate() == 1) && date.getMonth() == 3) {
fileref.setAttribute("src", "foolish_editor.min.js");
} else {
fileref.setAttribute("src", "beepbox_editor.min.js");
}
*/
document.head.appendChild(fileref);
} else {
document.getElementById("beepboxEditorContainer").innerHTML = "Sorry, JukeBox doesn't support your browser. Try a recent version of Chrome, Firefox, Edge, Safari, or Opera.";
}
// If the page was loaded with an old song version that old versions of BeepBox support,
// update the links to the old versions so that they'll open the song.
//HEY, ULTRABOX DOESN'T HAVE THESE, WHAT DO WE DO????
if (/^#[1-6]/.test(location.hash)) {
document.getElementById("linkTo2_3").href += location.hash;
}
if (/^#[1-8]/.test(location.hash)) {
document.getElementById("linkTo3_0").href += location.hash;
}
</script>
</body>
</html>