-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
63 lines (63 loc) · 3.06 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta property="og:title" content="OGZ Editor">
<meta property="og:description" content="A tool for writing Cube 2 Sauerbraten maps using JSON.">
<meta property="og:image" content="https://raw.githubusercontent.com/SalatielSauer/OGZ-Editor/master/images/screenshot-3.png">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title>OGZ Editor</title>
<link rel="stylesheet" type="text/css" href="styles/styles.css"/>
<link rel="stylesheet" type="text/css" href="styles/texteditor.css"/>
<link rel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/stackoverflow-dark.min.css">
<link rel="manifest" href="manifest.json">
<script src="pwapp.js"></script>
<script src="https://kit.fontawesome.com/03a1634190.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js"></script>
<script src="scripts/jsocta.js"></script>
<script src="scripts/mini-jsocta.js"></script>
<script src="scripts/texteditor.js" defer></script>
<script src="scripts/main.js" defer></script>
</head>
<body>
<div class="pagetop">
<div class="menu">
<div class="submenu">
<h2 class="submenu-button"><i class="fas fa-plus"></i></h2>
<div class="submenu-content">
<h2 id="filesystem-file">No file selected</h2>
<button id="button-save" title="CTRL+S"><i class="fas fa-save"></i> Save OGZ</button><br>
<!--<p>CTRL+S</p>-->
<button id="button-saveas"><i class="fas fa-folder"></i> Save As...</button><br>
<!--<p>CTRL+SHIFT+S</p>-->
<button id="button-download"><a id="button-download-a"><i class="fas fa-download"></i> Download</a></button>
</div>
</div>
<button id="button-validatejson"><i class="fas fa-search"></i> Validate JSON</button>
<button id="button-formatjson"><i class="fas fa-file"></i> Format JSON</button>
<button id="button-importjson"><i class="fas fa-exchange-alt"></i> Import & Convert JSON</button>
</div>
<div class="pageabout">
<h2>
OGZ Raw Editor
<!--<span>by <a href="https://salatielsauer.github.io/">@SalatielSauer</a></span>-->
<br>
<span><a target="_blank" href="https://github.com/SalatielSauer/OGZ-Editor/blob/master/README.md"><i class="fab fa-readme"></i> help</a> - <a href="https://github.com/SalatielSauer/OGZ-Editor#jsocta"><i class="fab fa-github"></i> jsocta</a> - <a href="http://sauerbraten.org/"> sauerbraten.org</a></span>
</h2>
</div>
<h2 id="filesystem-status"></h2>
</div>
<div id="editor-container">
<textarea id="editor" spellcheck="false"></textarea>
<pre id="highlight" aria-hidden="true">
<code class="language-json" id="highlight-content"></code>
</pre>
</div>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/OGZ-Editor/pwapp.js", {scope: "/OGZ-Editor/"})
}
</script>
</body>
</html>