diff --git a/blockly/ini/blocks/get.js b/blockly/ini/blocks/get.js index 34d7b926bf443b682c319905260a00b5924718b8..12721c71babb1b4400b3827a1a34531a909dbfa6 100644 --- a/blockly/ini/blocks/get.js +++ b/blockly/ini/blocks/get.js @@ -243,7 +243,7 @@ Blockly.Blocks['style_first'] = { this.appendValueInput("NAME") .setCheck("Number") .appendField(new Blockly.FieldDropdown([["宽度","width"], ["高度","height"]]), "style_name") - .appendField(new Blockly.FieldDropdown([["百分比","point"], ["像素","px"]]), "unit"); + .appendField(new Blockly.FieldDropdown([["百分比","%"], ["像素","px"]]), "unit"); this.setInputsInline(true); this.setPreviousStatement(true, null); this.setNextStatement(true, null); diff --git a/blockly/ini/blocks/get.js.js b/blockly/ini/blocks/get.js.js index f0eb6f5d501837aaf2540ca1446a550ac659f765..220957a9998498016bbd3b7cde01baab6e1630f6 100644 --- a/blockly/ini/blocks/get.js.js +++ b/blockly/ini/blocks/get.js.js @@ -226,7 +226,7 @@ Blockly.PHP['shuxing'] = function(block) { // TODO: Assemble PHP into code variable. var l = value_value; var value_value = l.slice(1, l.length - 1); - var code = text_name + ':' + value_value + ';'; + var code = text_name + ':' + value_value + ' '; return code; }; diff --git a/blockly/ini/ide_files/function.js b/blockly/ini/ide_files/function.js index 6488d328d596ba46f22d0372aae5d834d732df63..2ddaf3471066b9cc6c0076932621cd9df6b9e01f 100644 --- a/blockly/ini/ide_files/function.js +++ b/blockly/ini/ide_files/function.js @@ -55,6 +55,27 @@ CCCGC8CC8CCCCC8CCC8CCGGC, 8C8CCCGCGCCCGCCCCC8CCCCC: `); + +function getClientHeight() +{ + var clientHeight=0; + if(document.body.clientHeight&&document.documentElement.clientHeight) + { + var clientHeight = (document.body.clientHeightdocument.documentElement.clientHeight)?document.body.clientHeight:document.documentElement.clientHeight; + } + return clientHeight; +} + +function myUpdateFunction(event) {//实时代码生成 + var code = Blockly.PHP.workspaceToCode(workspace); + document.getElementById('code').innerHTML = code; + } +workspace.addChangeListener(myUpdateFunction); + function bushu(){//一键部署功能 var a=confirm("请先复制好您生成的代码!!!!是否使用此功能,第一次使用需要下载peizhi.php!(请在官网进入使用手册下载)") diff --git a/blockly/ini/workspace/library.xml b/blockly/ini/workspace/library.xml index 587e7a296a446d32692fc4d3d74f32a7e611415c..4b412f06ac74fb5a9b828bfb5bffc2d20e08ab16 100644 --- a/blockly/ini/workspace/library.xml +++ b/blockly/ini/workspace/library.xml @@ -1732,7 +1732,7 @@ unit 百分比 - point + % 像素 px diff --git a/blockly/ini/workspace/toolbox.xml b/blockly/ini/workspace/toolbox.xml index 2ae547dc243a56aff52839c494840384c5d5001c..e94019d38b7d2bc445f87a7b3eac841413247d46 100644 --- a/blockly/ini/workspace/toolbox.xml +++ b/blockly/ini/workspace/toolbox.xml @@ -401,22 +401,6 @@ …… - - - - - - 0 - - - - - - - 0 - - - width point diff --git a/ide.html b/ide.html index 72800c5a4372415dc43e397b145d3802acfbd65a..fd21c2170d80181055489fe699b86563e347b8d8 100644 --- a/ide.html +++ b/ide.html @@ -11,14 +11,15 @@ - + + - + PHP助手 @@ -468,22 +469,6 @@ …… - - - - - - 0 - - - - - - - 0 - - - width point @@ -654,9 +639,9 @@ - + - + diff --git a/kzhzbcphp.php b/kzhzbcphp.php index 659bc1d9edd6ce7d10183a1591b249bcda58a714..4b0fa33b7861b5582d09e0362dd768a7698c0443 100644 --- a/kzhzbcphp.php +++ b/kzhzbcphp.php @@ -35,14 +35,15 @@ echo $text = <<<__ - + + - + PHP助手 @@ -90,9 +91,9 @@ echo $text = <<<__ $wx $bo - + - +