-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
59 lines (47 loc) · 2.03 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
<!DOCTYPE html>
<html>
<head>
<title>Blockly</title>
<link rel="stylesheet" href="css/style.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- injecting Blockly to the web page -->
<script src="blockly_compressed.js"></script>
<script src="blocks_compressed.js"></script>
<script src="msg/js/en.js"></script>
<script src="js/custom.js"></script>
</head>
<body>
<div class="container">
<div class="jumbotron text-center">
<h1>Blockly</h1>
<p>Visual Block Programming - Tutorial</p>
</div>
<div class="row" id="firstRow">
<div class="col-sm-6">
<div id="blocklyDiv" style="height: 480px; width: 600px;"></div>
<xml id="toolbox" style="display: none">
<block type="controls_if"></block>
<block type="controls_repeat_ext"></block>
<block type="logic_compare"></block>
<block type="math_number"></block>
<block type="math_arithmetic"></block>
<block type="text"></block>
<block type="text_print"></block>
</xml>
</div>
<div class="col-sm-6">
<!-- empty space for comming stuff -->
</div>
</div>
</div>
</body>
<script>
var workspacePlayground = Blockly.inject('blocklyDiv',
{toolbox: document.getElementById('toolbox')});
</script>
</html>