-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
37 lines (36 loc) · 1.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="manifest" href="/manifest.json" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("./sw.js");
}
</script>
<title>AutoBlocks</title>
</head>
<body>
<div id="toolbar">
<label id="loadCommandLabel">
Load Commands
<input id="fileInput" type="file" accept="application/json" />
</label>
<button id="saveWorkspace">Save Workspace</button>
<label id="loadWorkspaceLabel">
Load Workspace
<input id="loadWorkspace" type="file" accept="application/json" />
</label>
<button id="languageToggle">Use Scripting</button>
</div>
<div id="blocklyArea">
<pre
id="codeArea"
><button id="copyButton"><img src="assets/result.svg" alt="Copy" height=20 width=20/></button></pre>
<div id="blocklyDiv"></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>