This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traffic Light | |
| Red* | |
| Timer -> Green | |
| Pedestrians | |
| Walk* | |
| Ped_timer -> Wait | |
| Wait | |
| Ped_timer -> Stop | |
| Stop | |
| Timer -> Green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Stop Watch | |
| Idle* | |
| press START -> Start | |
| Start | |
| press PAUSE -> Pause | |
| press RESET -> Idle | |
| Pause | |
| press START -> Start | |
| press RESET -> Idle | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Stop Watch | |
| Idle* | |
| press START -> Start | |
| Start | |
| press PAUSE -> Pause | |
| press RESET -> Idle | |
| Pause | |
| press START -> Start | |
| press RESET -> Idle | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function render(model){ | |
| let current_state_name = model.active_states[0].name; | |
| return $("h1", | |
| {style: {color: "darkBlue"}}, | |
| `The current state is: ${current_state_name}`); | |
| } |