mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
31 lines
859 B
HTML
31 lines
859 B
HTML
<!DOCTYPE html>
|
|
<!-- HTML file to host Blockly in a mobile WebView. -->
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<style type="text/css">
|
|
html, body, #blocklyDiv {
|
|
border: 0;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
<script src="blockly_compressed.js"></script>
|
|
<script src="blocks_compressed.js"></script>
|
|
<!-- TODO: Select msg file based on locale. -->
|
|
<script src="msg/js/en.js"></script>
|
|
<script src="toolbox_standard.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="blocklyDiv"></div>
|
|
<script type="text/javascript">
|
|
var workspacePlayground = Blockly.inject('blocklyDiv', {
|
|
media: 'media/',
|
|
toolbox: BLOCKLY_TOOLBOX_XML['standard'],
|
|
zoom: {controls: true}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |