-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
67 lines (63 loc) · 2.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Scratch Clone</title>
<script
src="https://unpkg.com/[email protected]/dist/jquery.js"
integrity="sha384-S58meLBGKxIiQmJ/pJ8ilvFUcGcqgla+mWH9EEKGm6i6rKxSTA2kpXJQJ8n7XK4w"
crossorigin="anonymous"
></script>
<script
type="application/javascript"
src="https://unpkg.com/[email protected]/blockly.min.js"
integrity="sha384-mfKsT64BRP7vhBQMlY3D53PCLcbhTK91PDTC/FcapHdJJB+/1sDSLfahINR6z3MA"
crossorigin="anonymous"
></script>
<script
type="application/javascript"
src="https://unpkg.com/[email protected]/dist/FileSaver.min.js"
integrity="sha384-PlRSzpewlarQuj5alIadXwjNUX+2eNMKwr0f07ShWYLy8B6TjEbm7ZlcN/ScSbwy"
crossorigin="anonymous"
></script>
<link rel="stylesheet" type="text/css" href="static/index.css">
</head>
<body>
<header>
<span id="importExportBox">
<div id="importBox">
<input id="importInput" type="file">
</div>
<button id="importButton">Import</button>
<button id="exportButton">Export</button>
</span>
<button id="runButton">Evaluate</button>
</header>
<main id="blocklyDiv"></main>
<div id="output">
<div class="message">Output will appear here.</div>
</div>
<xml id="toolbox">
<category name="Variables" custom="VARIABLE" colour="330"></category>
<category name="Control" colour="210">
<block type="controls_if"></block>
<block type="controls_repeat_ext"></block>
</category>
<category name="Maths" colour="150">
<block type="math_number"></block>
<block type="math_arithmetic"></block>
</category>
<category name="Logic" colour="100">
<block type="logic_compare"></block>
</category>
</xml>
<xml id="template">
<block type="entry_point" x="200" y="50">
</block>
</xml>
<script src="static/index.js">
</script>
</body>
</html>