Skip to content

Commit

Permalink
Update demoBlockly.html
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Aug 10, 2024
1 parent aa74fe1 commit 2980359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demoBlockly.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Author : ChungYi Fu (Kaohsiung, Taiwan) 2024/8/10 15:00
Author : ChungYi Fu (Kaohsiung, Taiwan) 2024/8/10 15:30
https://www.facebook.com/francefu
JavaScript
Expand Down Expand Up @@ -47,7 +47,7 @@
this.appendDummyInput()
.appendField(Blockly.Msg["HELLOWORLD_MSG"]);
this.appendValueInput("message")
.setCheck("String");
.setCheck(null);
this.setInputsInline(!0);
this.setPreviousStatement(!0);
this.setNextStatement(!0);
Expand Down Expand Up @@ -78,10 +78,10 @@
};

javascript.javascriptGenerator.forBlock['test2'] = function(block, generator) {
javascript.javascriptGenerator.forBlock.definitions_['messagebox'] = 'var message = "World Peace";\n';
javascript.javascriptGenerator.definitions_['messagebox'] = 'var message = "World Peace";\n';

var code = "message";
return [code, javascript.Order.ORDER_NONE];
return [code, javascript.Order.NONE];
};

</script>
Expand Down

0 comments on commit 2980359

Please sign in to comment.