-
Notifications
You must be signed in to change notification settings - Fork 1
/
sandbox.html
48 lines (44 loc) · 1.54 KB
/
sandbox.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>RPN Sandbox</title>
<style media="screen">
body {
background-color: #343434;
color: #dddddd;
font-family: "Open Sans", sans-serif;
}
</style>
</head>
<body>
<main>
<section class="glitch">
<label>Glitch URL: <input type="text" id="glitch-url" value="glitch://title!1.1fad"></label>
<button type="button" name="to-url">Code to URL</button>
<button type="button" name="from-url">URL to code</button>
</section>
<section>
<label>Song Name: <input type="text" id="song-name" autocomplete="off"></label>
</section>
<section class="code">
<textarea id="code" rows="16" cols="40" autocomplete="off"></textarea>
<output id="result"></output>
</section>
<section>
<button type="button" name="execute">Execute</button>
<label>t: <input type="number" name="exec-t" value="0" min="0" max="4294967295" step="1"></label>
<label>Result: <output name="execute-result"></output></label>
</section>
<section class="playback-controls">
<button type="button" name="play">Play</button>
<button type="button" name="stop">Stop</button>
<label>Playback rate: <input type="number" name="playback-rate" value="8000" min="8000" max="22050" step="1"></label>
<button type="button" name="reset">Reset</button>
<output>t</output>
<label>Volume: <input type="range" name="volume" value="0.5" min="0" max="1" step="any"></label>
</section>
</main>
<script src="./src/sandbox.js" type="module" charset="utf-8"></script>
</body>
</html>