mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
HTML for both demos is now checked in as demos/mobile/html/index.html. Updated android and ios scripts to copy webview.html from above.
29 lines
737 B
HTML
29 lines
737 B
HTML
<!DOCTYPE html>
|
|
<!-- HTML file to host Blockly in a mobile WebView. -->
|
|
<html>
|
|
<head>
|
|
<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']
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |