From df1c7a88a09389087798746f8a9ef4f58138f23f Mon Sep 17 00:00:00 2001 From: SEAN MCLIMANS Date: Thu, 31 Aug 2017 13:38:04 -0600 Subject: [PATCH] Lights toggling --- index.html | 6 +++++- index.js | 15 +++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) 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"); + }); + +}());