Permalink
Switch branches/tags
Nothing to show
Find file Copy path
fae224b May 13, 2018
1 contributor

Users who have contributed to this file

59 lines (47 sloc) 2.03 KB
<!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>