- Make a button switch. It should be labelled as "TURN OFF"
- Use DOM Manipulation to change the content to "TURN ON" when the button is clicked.
- Change the content to "TURN OFF" when the button is clicked again.
- (OPTIONAL) Change the style of the button when it is turned on.
- (CHALLENGE) Add a bulb image which toggles on and off when the button is clicked.
forked from rajeevatlas/On-and-Off-Switch
-
Notifications
You must be signed in to change notification settings - Fork 0
Mahimahto/On-and-Off-Switch
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
1) Make a button switch. It should be labelled as "TURN OFF"
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 52.9%
- HTML 38.5%
- CSS 8.6%