Updating getting started tutorial

This commit is contained in:
Sam El-Husseini 2017-01-04 10:06:47 -08:00
parent 641a5e9673
commit d2d776fd01
2 changed files with 21 additions and 9 deletions

View File

@ -1,13 +1,13 @@
# Getting started # Getting started
<begin>basic.showString("Hello world")</begin> # begin: basic.showString("Hello world")
### Step 1 ### Step 1
Use the **Basic** drawer in the editor Use the **Basic** drawer in the editor
to drag out and arrange three blocks to create this program: to drag out and arrange three blocks to create this program:
```blocks ```block
basic.showString("Hello world") basic.showString("Hello world")
``` ```
@ -21,18 +21,25 @@ to drag out and arrange three blocks to create this program:
Use the **Basic** drawer in the editor Use the **Basic** drawer in the editor
to drag out and arrange three blocks to create this program: to drag out and arrange three blocks to create this program:
```blocks ```block
basic.showString("Hello world") basic.forever(() => {
basic.showNumber(0)
})
``` ```
### Step 4 ### Step 4
Use the **Basic** drawer in the editor Use the **Basic** drawer in the editor
to drag out and arrange three blocks to create this program: to drag out and arrange three blocks to create this program:
```blocks ```block
basic.forever(() => { input.onButtonPressed(Button.B, () => {
basic.showNumber(0) basic.showLeds(`
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
`)
}) })
``` ```
@ -41,7 +48,7 @@ basic.forever(() => {
Use the **Basic** drawer in the editor Use the **Basic** drawer in the editor
to drag out and arrange three blocks to create this program: to drag out and arrange three blocks to create this program:
```blocks ```block
input.onButtonPressed(Button.A, () => { input.onButtonPressed(Button.A, () => {
basic.showString("Hello!") basic.showString("Hello!")
}) })

View File

@ -46,6 +46,11 @@
.blocklyTreeRow { .blocklyTreeRow {
border-bottom: 1px solid #ecf0f1 !important; border-bottom: 1px solid #ecf0f1 !important;
margin-bottom: 0px !important; margin-bottom: 0px !important;
-webkit-transition-property: background-color; /* Safari */
-webkit-transition-duration: 1s; /* Safari */
transition-property: background-color;
transition-duration: 1s;
} }
/* Blockly toolbox font size same as the page font */ /* Blockly toolbox font size same as the page font */