Skip to content

1) Make a button switch. It should be labelled as "TURN OFF"

Notifications You must be signed in to change notification settings

Mahimahto/On-and-Off-Switch

 
 

Repository files navigation

On-and-Off-Switch

  1. Make a button switch. It should be labelled as "TURN OFF"
  2. Use DOM Manipulation to change the content to "TURN ON" when the button is clicked.
  3. Change the content to "TURN OFF" when the button is clicked again.
  4. (OPTIONAL) Change the style of the button when it is turned on.
  5. (CHALLENGE) Add a bulb image which toggles on and off when the button is clicked.

About

1) Make a button switch. It should be labelled as "TURN OFF"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.9%
  • HTML 38.5%
  • CSS 8.6%