added studio html file
This commit is contained in:
29
frontend/studio.html
Normal file
29
frontend/studio.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Codebloks Studio</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="blocklyDiv" style="height: 480px; width: 600px;"></div>
|
||||
|
||||
<script>
|
||||
const workspace = Blockly.inject(
|
||||
document.getElementById('blocklyDiv'), { /* config */ });
|
||||
</script>
|
||||
<!--
|
||||
REMEMBER --- REPLACE UNPKG WITH BLOCKLY FILES ON
|
||||
SAME PROJECT
|
||||
-->
|
||||
<!-- Load Blockly core -->
|
||||
<script src="https://unpkg.com/blockly/blockly_compressed.js"></script>
|
||||
<!-- Load the default blocks -->
|
||||
<script src="https://unpkg.com/blockly/blocks_compressed.js"></script>
|
||||
<!-- Load a generator -->
|
||||
<script src="https://unpkg.com/blockly/javascript_compressed.js"></script>
|
||||
<!-- Load a message file -->
|
||||
<script src="https://unpkg.com/blockly/msg/en.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user