-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
320 lines (308 loc) · 11.1 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1" />
<script type="module" src="/script.js"></script>
<title>🍝 nudel</title>
</head>
<body style="background-color: black">
<!----------- MANTRA ----------->
<marquee id="mantra" scrollamount="2" class="fade-in">increase speed</marquee>
<!----------- MENU ----------->
<div id="menu-container">
<button id="menu-button">☰ Menu</button>
<div id="menu-content">
<button id="settings-button">⚙ Settings</button>
<button id="add-pane-button">+ add Pane</button>
<button id="remove-pane-button">- scrap Pane</button>
<button id="export-button">⇓ Export</button>
<a class="button" href="https://github.com/pastagang/nudel" target="_blank">♨ Source</a>
<button id="about-button">? About</button>
</div>
</div>
<!----------- TABS ----------->
<div class="tabs">
<div class="left">
<!-- tabs get be created in main.js-->
</div>
<div class="right">
<!-- tabs get be created in main.js-->
</div>
</div>
<!----------- SLOTS ----------->
<div class="slots">
<!-- slots get be created in main.js-->
</div>
<!----------- TOAST POPOVER ----------->
<div id="toast" popover><span>Toast!</span></div>
<!----------- CONFIRM DIALOG ----------->
<div class="dialog-container">
<dialog id="you-sure-dialog">
<p>
<span id="you-sure-action-description">Are you sure?</span>
</p>
<p>
<button id="you-sure-yes-button">Yes</button>
<button id="you-sure-no-button">Cancel</button>
</p>
</dialog>
</div>
<!----------- PROMPT DIALOG ----------->
<div class="dialog-container">
<dialog id="prompt-dialog">
<form method="dialog">
<p>
<span id="prompt-message"></span>
</p>
<p>
<input type="text" id="prompt-input" style="width: 100%" />
</p>
<p>
<button id="prompt-done-button">done</button>
<button id="prompt-cancel-button">cancel</button>
</p>
</form>
</dialog>
</div>
<!----------- ALERT DIALOG ----------->
<div class="dialog-container">
<dialog id="alert-dialog">
<!-- <h1>Alert</h1> -->
<form method="dialog">
<p>
<span id="alert-message">alert</span>
</p>
<p>
<button id="alert-ok-button">OK</button>
</p>
</form>
</dialog>
</div>
<!----------- ABOUT DIALOG ----------->
<div class="dialog-container" id="about-dialog-container">
<dialog id="about-dialog">
<form method="dialog">
<h1>🍝 welcome to nudel</h1>
<!-- <p>
<label for="welcome-username">
<span>Choose your username:</span>
<input
type="text"
id="welcome-username"
data-1p-ignore
spellcheck="false"
placeholder="anonymous nudelfan"
/>
</label>
</p> -->
<p>
nudel is a public jam space, made by
<a href="https://www.pastagang.cc/" target="_blank">pastagang</a>
</p>
<!-- <p>it's a mashup of free & open source projects:</p>
<ul>
<li><a href="https://github.com/munshkr/flok/" target="_blank">flok</a> for collaboration</li>
<li><a href="https://github.com/tidalcycles/strudel" target="_blank">strudel</a> for sound</li>
<li><a href="https://github.com/hydra-synth/hydra-synth" target="_blank">hydra</a> for light</li>
</ul> -->
<p>everyone is in the same room. anyone is encouraged to join in!</p>
<p><strong>tip: if nudel starts running slow, try changing the settings</strong></p>
<p>
consider donating to <a href="https://ko-fi.com/munshkr" target="_blank">flok</a> /
<a href="https://opencollective.com/tidalcycles" target="_blank">strudel</a> /
<a href="https://opencollective.com/hydra-synth" target="_blank">hydra</a><br />
(we use them all in nudel)
</p>
<p>
<button id="about-yes-button" class="loading">play</button>
</p>
</form>
</dialog>
</div>
<!----------- EXPORT DIALOG ----------->
<div class="dialog-container">
<dialog id="export-dialog">
<form method="dialog">
<h1>Export</h1>
<section style="display: flex; flex-direction: column; gap: 13px">
<button type="button" id="export-copy-button">Copy code</button>
<button type="button" id="export-download-button">Download code</button>
<a class="button" href="#" id="export-open-flok-button" target="_blank">Open in flok</a>
<button type="button" id="export-open-strudel-button" target="_blank">Open in strudel</button>
<button type="button" id="export-open-hydra-button" target="_blank">Open in hydra</button>
</section>
<button id="export-close-button">close</button>
</form>
</dialog>
</div>
<!----------- SETTINGS DIALOG ----------->
<div class="dialog-container">
<dialog id="settings-dialog" style="overflow: hidden; height: 100%; padding: 0">
<form
method="dialog"
style="display: flex; flex-direction: column; overflow: visible; justify-content: stretch; height: 100%"
>
<main style="overflow: scroll; height: 20%; flex-grow: 1; padding: 13px">
<h1>Settings</h1>
<section>
<h3>User settings</h3>
<p>
<label for="settings-username" style="display: flex; align-items: center">
<span>Username</span>
<input type="text" id="settings-username" data-1p-ignore spellcheck="false" style="flex-grow: 1" />
</label>
</p>
</section>
<section>
<h3>Nudel appearance</h3>
<p>
<label>
Layout
<select id="settings-panel-mode">
<option value="scroll">Scroll layout</option>
<option value="boxed">Boxed layout</option>
<option value="tabbed">Tabbed layout</option>
</select>
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-zen-mode" />
Minimal user interface
</label>
</p>
</section>
<hr />
<section>
<h2>Performance</h2>
<p>
To make nudel run better on your machine, try changing these settings. Some of them turn certain things
off, which may help other things to run better.
</p>
<br />
<h3>Panel types</h3>
<p>These settings control which types of panels will run for you.</p>
<p>
<label>
<input type="checkbox" id="settings-strudel-enabled" />
Enable strudel (sound)
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-kabelsalat-enabled" />
Enable kabelsalat (sound)
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-hydra-enabled" />
Enable hydra (visuals)
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-shader-enabled" />
Enable shader (visuals)
</label>
</p>
<br />
<h3>Panel settings</h3>
<p>
<label>
<input type="checkbox" id="settings-strudel-highlights-enabled" />
Enable strudel highlights
</label>
</p>
</section>
<hr />
<section>
<h2>Editor settings</h2>
<p>
<label>
<input type="checkbox" id="settings-line-numbers" />
Line numbers
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-line-wrapping" />
Line wrapping
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-close-brackets" />
Auto-closing brackets
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-track-cursors" />
Track remote cursors (requires reload) (only advised for boxed layout)
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-vim-mode" />
Vim keybindings (requires reload)
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-pasting-mode" />
⚠️ PASTING MODE
</label>
</p>
<p>
<label>
Font Family
<select id="settings-font-family">
<option value="monospace">monospace</option>
<option value="serif">serif</option>
</select>
</label>
</p>
</section>
<section class="development">
<hr />
<br />
<h2>Development settings</h2>
<p>
<label>
<input type="checkbox" id="settings-welcome-message" />
Show welcome message
</label>
</p>
<p>
<label>
<input type="checkbox" id="settings-strudel-autocomplete" />
Strudel auto-complete (experimental)
</label>
</p>
</section>
</main>
<footer
style="
bottom: -13px;
background: white;
padding: 13px 13px 13px 13px;
border-top: 2px solid #000;
display: flex;
flex-wrap: wrap;
gap: 13px;
justify-content: flex-end;
"
>
<button id="settings-reset-button" type="button">Reset to defaults</button>
<button id="settings-done-button">Done</button>
</footer>
</form>
</dialog>
</div>
<!----------- CHAT CONTAINER ----------->
<div class="chat-container"></div>
</body>
</html>