diff --git a/index.html b/index.html index d6b8fb9..3c551c7 100644 --- a/index.html +++ b/index.html @@ -2,311 +2,308 @@ - - - - - R4G - - - - - - + + + + + R4G + + + + + + + - - - - - - - -
- -
- - - - - - - - - -
- -
- - -
-
+ + + + + + + +
+ +
+ + + + + + + + + +
+ +
+ + +
+
+ + + + + + + +
+ + + + + + + // Position blocklyDiv over blocklyArea. + blocklyDiv.style.left = x + 'px'; + blocklyDiv.style.top = y + 'px'; + blocklyDiv.style.width = blocklyArea.offsetWidth + 'px'; + blocklyDiv.style.height = blocklyArea.offsetHeight + 'px'; + Blockly.svgResize(workspace); + }; - - - -
+ window.addEventListener('resize', onresize, false); + onresize(); + Blockly.svgResize(workspace); - - - - - - - + // An href with #key trigers an AJAX call to retrieve saved blocks. + if ('BlocklyStorage' in window && window.location.hash.length > 1) { + BlocklyStorage.retrieveXml(window.location.hash.substring(1)); + } + + + - + \ No newline at end of file