This repository was archived by the owner on Apr 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathultrabox_offline_template.html
More file actions
251 lines (218 loc) Β· 8.32 KB
/
ultrabox_offline_template.html
File metadata and controls
251 lines (218 loc) Β· 8.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel='shortcut icon' type='image/x-icon' href='./favicon.ico' />
<!-- CDN for jQuery and select2 -->
<!--
<script src="offline_deps/jquery-3.4.1.min.js"></script>
<link href="offline_deps/select2.min.css" rel="stylesheet" />
<script src="offline_deps/select2.min.js"></script>
-->
<script>
/* INSERT_JQUERY_MIN_JS_HERE */
</script>
<script>
/* INSERT_SELECT2_MIN_JS_HERE */
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UltraBox</title>
<meta name="application-name" content="UltraBox" />
<meta name="apple-mobile-web-app-title" content="UltraBox">
<meta name="description" content="UltraBox is a mod of BeepBox that aims to combine every other beepmod into one." />
<meta name="keywords" content="chiptune, instrumental, music, song, melody, composition, tool, free, online, square wave, NES, NSF, ultrabox, beepbox, jummbox, pandorasbox, modbox, sandbox, goldbox, wackybox, todbox" />
<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="#CCCCCC"/>
<meta name="msapplication-TileColor" content="#dba600" />
<meta name="msapplication-config" content="/browserconfig.xml" />
<meta name="format-detection" content="telephone=no" />
<meta property="og:image" content="/icon_maskable_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" />
<style type="text/css">
@font-face {
font-family: 'B612';
font-style: normal;
font-weight: 400;
src: url(3JnySDDxiSz36j6yGQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
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: 700px;
padding-left: 30px;
padding-right: 30px;
}
#text-content {
overflow: auto;
background: var(--editor-background, black);
width: 100%;
max-width: 700px;
padding-left: 30px;
padding-right: 30px;
}
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, #9c64f7);
}
h2 {
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);
}
.donation form {
display: inline;
}
.donation input[type="submit"] {
-webkit-appearance: none;
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: 701px) {
html {
width: 100%;
}
body {
width: 100%;
}
.column-container {
width: 700px;
display: flex;
justify-content: space-between;
}
}
/* narrow screen */
@media (max-width: 700px) {
body {
width: 100%;
}
p, .donation {
margin: 1em 0.5em;
}
.column-container {
display: flex;
flex-direction: column;
align-items: center;
}
}
/* INSERT_SELECT2_CSS_HERE */
</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, UltraBox requires a JavaScript-enabled browser.
</noscript>
</div>
<div id="text-content">
<section>
<h1>
<font>UltraBox</font>
<span id="goldboxPlant" style="display: inline; color:#62a13b"></span>
</h1>
<p id="introduction">
This is the HTML version of UB Offline.<br>
Certain themes won't work correctly. Custom samples are not supported. You can still load samples from websites if you're connected to the internet.
</p>
</div>
<script type="text/javascript">
// (ignore the comments below)
// get local directory (if things are changed to where this is needed immediately, loading of beepbox_editor.min.js will have to be delayed)
// var localDirectoryURL;
//getDirname().then((response) => {
// localDirectoryURL = response;
//});
// Randomize display of header
// 1-in-9 chance to appear
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 a reference to (now outdated?) lore jinx made for one of their projects
"βοΈβπποΈ",
// suggested by mel, meant to supplement the lack of a worm logo
"πͺ±",
// I believe this is from paandorasbox (might have also been present in familiarbox?)
" :wackybox:",
// plant originally suggested by mel in reference to the "(don't) eat thegubbys" meme. has now been reduced to just the fish emoji
"π",
// blubox desktop plants
"β‘","π΅","π«",
// dogebox2 plants
"π","π","π","π",
// Slarmoo's Box plants
"β¨","π","π§οΈ","πͺ¨","π","π²","π³","π","π¦"
];
if (Math.floor(Math.random() * 9) == 0) {
document.getElementById("goldboxPlant").innerHTML = " " + plants[(Math.floor(Math.random() * plants.length))];
}
const date = new Date();
// UB birthday (june 4th)
if ((date.getDate() == 4) && date.getMonth() == 5) {
document.getElementById("goldboxPlant").innerHTML = " ππ";
}
/* INSERT_BEEPBOX_SOURCE_HERE */
/* INSERT_DRUMSAMPLES_SCRIPT_HERE */
/* INSERT_KIRBYSAMPLES_SCRIPT_HERE */
/* INSERT_SAMPLES_SCRIPT_HERE */
/* INSERT_SAMPLES2_SCRIPT_HERE */
/* INSERT_SAMPLES3_SCRIPT_HERE */
/* INSERT_WARIOSAMPLES_SCRIPT_HERE */
/* INSERT_MARIOPAINTBOXSAMPLES_SCRIPT_HERE */
/* INSERT_NINTARIBOXSAMPLES_SCRIPT_HERE */
</script>
</body>
</html>