forked from Offroaders123/Dovetail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (76 loc) · 2.5 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Dovetail</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#445985">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="icon" type="image/png" sizes="16x16" href="./icon-16.png">
<link rel="icon" type="image/png" sizes="32x32" href="./icon-32.png">
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<header>
<img height="32" draggable="false" src="./app-512.png">
<button onclick="fileOpener.click();">Open</button>
<input id="fileOpener" type="file" accept="application/octet-stream, .nbt, .dat, .dat_old">
<button id="saver" disabled>Save</button>
<button id="formatOpener" disabled>Format Options...</button>
</header>
<textarea id="editor" disabled placeholder="NBT data will show here..." wrap="off" spellcheck="false" autocomplete="off" autocapitalize="none" autocorrect="off"></textarea>
<dialog id="formatDialog">
<form id="formatForm" method="dialog">
<dialog-header>
<h3>Format Options</h3>
<button type="submit" aria-label="Close">✕</button>
</dialog-header>
<fieldset>
<legend>Root Name</legend>
<label>
<input type="text" name="name" placeholder="<empty>">
</label>
<label>
<input type="checkbox" name="disableName" onchange="this.form.elements.name.disabled = this.checked;">
Disable
</label>
</fieldset>
<fieldset>
<legend>Endian</legend>
<label>
<input type="radio" name="endian" value="big">
Big
</label>
<label>
<input type="radio" name="endian" value="little">
Little
</label>
</fieldset>
<fieldset>
<legend>Compression</legend>
<label>
<input type="radio" name="compression" value="none">
None
</label>
<label>
<input type="radio" name="compression" value="gzip">
gzip
</label>
<label>
<input type="radio" name="compression" value="deflate">
deflate (zlib)
</label>
</fieldset>
<fieldset>
<legend>Bedrock Level</legend>
<label>
<input type="number" name="bedrockLevel" placeholder="<false>" min="0" max="4294967295">
<code>(Uint32)</code>
</label>
</fieldset>
</form>
</dialog>
<script type="module" src="./src/app.ts"></script>
</body>
</html>