diff --git a/index.html b/index.html index e5f8fea..0ff91cc 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,6 @@ Stoplight Exercise - @@ -18,5 +17,10 @@
+ + diff --git a/index.js b/index.js index 03cc920..b84f049 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,16 @@ (function() { 'use strict'; - // YOUR CODE HERE -})(); + $("#stopButton").click(function() { + $("#stopLight").toggleClass('stop'); + }); + + $("#slowButton").click(function() { + $("#slowLight").toggleClass("slow"); + }); + + $("#goButton").click(function() { + $("#goLight").toggleClass("go"); + }); + +}());