Skip to content

Commit abc5b7b

Browse files
committed
Make the example runnable
The proposed changes, together with the style sheet suggestion proposed in the previous proposed change (and shown below), means that the example moves from being abstract, and students can directly copy/paste the example and see it work. <style> .on { background-color: yellow; } .off { background-color: black; color: white; } </style>
1 parent e0f2a74 commit abc5b7b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

page/events/introduction-to-custom-events.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,18 @@ Let's make our example a little more interesting. We'll add another room to our
7878

7979
```
8080
<div class="room" id="kitchen">
81-
<div class="lightbulb on"></div>
82-
<div class="switch"></div>
83-
<div class="switch"></div>
84-
<div class="clapper"></div>
81+
<div class="lightbulb on">Kitchen light</div>
82+
<div class="switch">Kitchen switch 1</div>
83+
<div class="switch">Kitchen switch 1</div>
84+
<div class="clapper">Kitchen clapper switch</div>
8585
</div>
8686
<div class="room" id="bedroom">
87-
<div class="lightbulb on"></div>
88-
<div class="switch"></div>
89-
<div class="switch"></div>
90-
<div class="clapper"></div>
87+
<div class="lightbulb on">Bedroom light</div>
88+
<div class="switch">Bedroom switch 1</div>
89+
<div class="switch">Bedroom switch 2</div>
90+
<div class="clapper">Bedroom clapper switch</div>
9191
</div>
92-
<div id="master_switch"></div>
92+
<div id="master_switch">Master switch</div>
9393
```
9494

9595
If there are any lights on in the house, we want the master switch to turn all

0 commit comments

Comments
 (0)