diff --git a/frameworks/blockly/01--conta-passo1/blocks.js b/frameworks/blockly/01--conta-passo1/blocks.js new file mode 100644 index 0000000..3ab5618 --- /dev/null +++ b/frameworks/blockly/01--conta-passo1/blocks.js @@ -0,0 +1,7 @@ +Blockly.Blocks['conta'] = { + init: function () { + this.jsonInit({ + message0: 'conta' + }) + } +} \ No newline at end of file diff --git a/frameworks/blockly/01--conta-passo1/index.html b/frameworks/blockly/01--conta-passo1/index.html new file mode 100644 index 0000000..0f84a5f --- /dev/null +++ b/frameworks/blockly/01--conta-passo1/index.html @@ -0,0 +1,17 @@ + + + + + + + +
+ + + + \ No newline at end of file diff --git a/frameworks/blockly/02--conta-passo2/blocks.js b/frameworks/blockly/02--conta-passo2/blocks.js new file mode 100644 index 0000000..011cd57 --- /dev/null +++ b/frameworks/blockly/02--conta-passo2/blocks.js @@ -0,0 +1,18 @@ +Blockly.Blocks['conta'] = { + init: function () { + this.jsonInit({ + message0: 'conta: %1 + %2', + args0: [ + { + type: 'field_number', + name: 'A' + }, + { + type: 'field_number', + name: 'B' + } + ], + colour: 160 + }) + } +} \ No newline at end of file diff --git a/frameworks/blockly/02--conta-passo2/index.html b/frameworks/blockly/02--conta-passo2/index.html new file mode 100644 index 0000000..0f84a5f --- /dev/null +++ b/frameworks/blockly/02--conta-passo2/index.html @@ -0,0 +1,17 @@ + + + + + + + +
+ + + + \ No newline at end of file diff --git a/frameworks/blockly/03--conta-passo3/blocks.js b/frameworks/blockly/03--conta-passo3/blocks.js new file mode 100644 index 0000000..b3ad9f6 --- /dev/null +++ b/frameworks/blockly/03--conta-passo3/blocks.js @@ -0,0 +1,39 @@ +Blockly.Blocks['conta'] = { + init: function () { + this.jsonInit({ + message0: 'conta: %1 + %2 %3', + args0: [ + { + type: 'field_number', + name: 'A' + }, + { + type: 'field_number', + name: 'B' + }, + { + type: 'input_value', + name: 'C', + check: 'encaixe' + } + ], + colour: 160 + }) + } +} + +Blockly.Blocks['resultado'] = { + init: function () { + this.jsonInit({ + message0: 'resultado: %1', + args0: [ + { + type: 'field_number', + name: 'R' + } + ], + colour: 80, + output: 'encaixe' + }) + } +} \ No newline at end of file diff --git a/frameworks/blockly/03--conta-passo3/index.html b/frameworks/blockly/03--conta-passo3/index.html new file mode 100644 index 0000000..c1b72f4 --- /dev/null +++ b/frameworks/blockly/03--conta-passo3/index.html @@ -0,0 +1,18 @@ + + + + + + + +
+ + + + \ No newline at end of file diff --git a/frameworks/blockly/blocks.js b/frameworks/blockly/10-heart/blocks.js similarity index 100% rename from frameworks/blockly/blocks.js rename to frameworks/blockly/10-heart/blocks.js diff --git a/frameworks/blockly/images/README.md b/frameworks/blockly/10-heart/images/README.md similarity index 100% rename from frameworks/blockly/images/README.md rename to frameworks/blockly/10-heart/images/README.md diff --git a/frameworks/blockly/images/heart1.svg b/frameworks/blockly/10-heart/images/heart1.svg similarity index 100% rename from frameworks/blockly/images/heart1.svg rename to frameworks/blockly/10-heart/images/heart1.svg diff --git a/frameworks/blockly/images/heart2.svg b/frameworks/blockly/10-heart/images/heart2.svg similarity index 100% rename from frameworks/blockly/images/heart2.svg rename to frameworks/blockly/10-heart/images/heart2.svg diff --git a/frameworks/blockly/index.html b/frameworks/blockly/10-heart/index.html similarity index 100% rename from frameworks/blockly/index.html rename to frameworks/blockly/10-heart/index.html