-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
67 lines (59 loc) · 2 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>
<head>
<meta charset="utf-8">
<title>Proceds Blockly - Demo</title>
<script src="node_modules/blockly-package/blockly_compressed.js"></script>
<script src="node_modules/blockly-package/blocks_compressed.js"></script>
<script src="node_modules/blockly-package/es.js"></script>
<script src="node_modules/blockly-package/javascript_compressed.js"></script>
<script src="proceds-blockly-original.js"></script>
<script src="proceds-blockly.js"></script>
<script>
initProcedsBlockly();
</script>
</head>
<body>
<h1><a href="https://program.ar">Program.AR</a> -
Procedures for Blockly </h1>
<p>This is a simple demo for new Procedures for Blockly</p>
<div id="blocklyDiv" style="height: 480px; width: 600px;"></div>
<xml id="toolbox" style="display: none">
<category name="Procedures">
<block type="procedures_defnoreturn"></block>
<block type="procedures_defnoreturnnoparams"></block>
</category>
<category name="Functions">
<block type="procedures_defreturn"></block>
<block type="procedures_defreturnsimplewithparams"></block>
<block type="procedures_defreturnsimple"></block>
</category>
<category name="Commands">
<category name="Procedure invocations" custom="PROCEDURE_CALLS">
</category>
</category>
<category name="Expressions">
<category name="Function invocations" custom="FUNCTION_CALLS">
</category>
</category>
<category name="Other blocks">
<block type="controls_if"></block>
<block type="logic_compare"></block>
<block type="controls_repeat_ext"></block>
<block type="math_number"></block>
<block type="math_arithmetic"></block>
<block type="text"></block>
<block type="text_print"></block>
</category>
</xml>
<script>
var workspace = Blockly.inject(
"blocklyDiv",
{
media: "node_modules/blockly-package/media/",
toolbox: document.getElementById("toolbox")
}
);
</script>
</body>
</html>