added studio html file

This commit is contained in:
2025-10-10 21:03:58 +01:00
parent cbdf5605c3
commit 2c71b157e1

29
frontend/studio.html Normal file
View 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>