You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now open `scripts/main.js`. Just before the end of the main function, add code to inject Blockly editor:
178
178
179
179
```js
180
-
Blockly.inject('blockly-div', {
180
+
Blockly.inject('blocklyDiv', {
181
181
toolbox:document.getElementById('toolbox'),
182
182
scrollbars:false
183
183
});
@@ -268,13 +268,13 @@ Now we can update the toolbox to include the new sound block, by adding `<block
268
268
</xml>
269
269
```
270
270
271
-
Run the app one more time, and play around with the new "Play (sound)" block. It should look like this:
271
+
Run the app one more time, and play around with the new `Play (sound)` block. It should look like this:
272
272
273
273

274
274
275
275
### The block factory
276
276
277
-
This step discussed how to manually define custom blocks in Blockly. Once you've completed the entire codelab, we recommend that you check out our <ahref="https://developers.google.com/blockly/guides/create-custom-blocks/blockly-developer-tools">block factory tool</a>, which helps automate part of this process.
277
+
This step discussed how to manually define custom blocks in Blockly. Once you've completed the entire codelab, we recommend that you check out our [block factory tool](https://developers.google.com/blockly/guides/create-custom-blocks/blockly-developer-tools), which helps automate part of this process.
0 commit comments