Skip to content

Commit db4f2ca

Browse files
committed
GitBook: [master] one page modified
1 parent 3244ede commit db4f2ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced/code-mod-examples/add-a-categories-selection-screen.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Let's add a screen for the player to choose a question category after they click start.
44

5-
**1 - Add the following HTML in your** _**index.html**_ **file just after your** _**welcome screen**_**.** This provides a place for the iDEW trivia to place buttons for your categories.
5+
**1 - Add the following HTML in your** _**index.html**_ **file just after your** _**welcome screen**_**.** This provides a place for the iDEW trivia library to place buttons for your categories.
66

77
```markup
88
<!-------------- CATEGORY SCREEN --------------->
@@ -37,7 +37,7 @@ function onClickedStart() {
3737
}
3838
```
3939

40-
**5 - Lastly, add a new Javascript function to handle what to do when a category is selected.** In this case you will just move the player on to the question screen. The iDEW trivia library is keeping track of what category was selected. To keep things tidy, place this new function just before, but not inside, your `onClickedStart( )` function.
40+
**5 - Lastly, add a new Javascript function to handle what to do when a category is selected.** In this case you will just move the player on to the question screen. The iDEW trivia library is keeping track of what category was selected. To keep things tidy, place this new function just before \(but not inside\) your `onClickedStart( )` function.
4141

4242
```javascript
4343
function onClickedCategory() {

0 commit comments

Comments
 (0)