From caffdb15fc636352b9ca343b406917e36ca188f0 Mon Sep 17 00:00:00 2001 From: James Freeman Date: Tue, 16 Feb 2016 18:52:32 -0700 Subject: [PATCH 1/6] alert added --- boxes.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/boxes.js b/boxes.js index 6b2b3db..5290a16 100644 --- a/boxes.js +++ b/boxes.js @@ -1 +1,11 @@ -console.log("hello world"); +$(document).ready(function(){ + alert("Hello, world!"); +}); + + + + + +$(window).load(function(){ + console.log("Window loaded!") +}) From 1d0ca75c130a3e799b7b764c5c93ffbce4a8e58d Mon Sep 17 00:00:00 2001 From: James Freeman Date: Tue, 16 Feb 2016 19:17:33 -0700 Subject: [PATCH 2/6] changed top row to boxType3, secret box discovered/labeled --- boxes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boxes.js b/boxes.js index 5290a16..5768c2d 100644 --- a/boxes.js +++ b/boxes.js @@ -1,11 +1,14 @@ $(document).ready(function(){ alert("Hello, world!"); + $('#secretBox').css({'backgroundColor':'white'}).append("

I'm a secret box!

"); + $('#row1').children().removeClass().addClass('box boxType3'); }); + $(window).load(function(){ console.log("Window loaded!") }) From e44b21fb9393c23b6b24bf5f464eac7deefb72fa Mon Sep 17 00:00:00 2001 From: James Freeman Date: Tue, 16 Feb 2016 19:31:12 -0700 Subject: [PATCH 3/6] created black box --- boxes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/boxes.js b/boxes.js index 5768c2d..7092591 100644 --- a/boxes.js +++ b/boxes.js @@ -2,6 +2,7 @@ $(document).ready(function(){ alert("Hello, world!"); $('#secretBox').css({'backgroundColor':'white'}).append("

I'm a secret box!

"); $('#row1').children().removeClass().addClass('box boxType3'); + $('#row4 > div:last').css({'backgroundColor':'black'}); }); From 90d821dfe825132aa46a7e66cfef5d0e84e1c62a Mon Sep 17 00:00:00 2001 From: James Freeman Date: Tue, 16 Feb 2016 19:33:54 -0700 Subject: [PATCH 4/6] removed bottom right box --- boxes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes.js b/boxes.js index 7092591..f117410 100644 --- a/boxes.js +++ b/boxes.js @@ -2,7 +2,7 @@ $(document).ready(function(){ alert("Hello, world!"); $('#secretBox').css({'backgroundColor':'white'}).append("

I'm a secret box!

"); $('#row1').children().removeClass().addClass('box boxType3'); - $('#row4 > div:last').css({'backgroundColor':'black'}); + $('#row4 > div:last').css({'display':'none'}); }); From 52033d9f43cff84a077397ee1e5d0cb48b68bb07 Mon Sep 17 00:00:00 2001 From: James Freeman Date: Tue, 16 Feb 2016 19:37:34 -0700 Subject: [PATCH 5/6] red boxes now white --- boxes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/boxes.js b/boxes.js index f117410..2910cfc 100644 --- a/boxes.js +++ b/boxes.js @@ -3,6 +3,7 @@ $(document).ready(function(){ $('#secretBox').css({'backgroundColor':'white'}).append("

I'm a secret box!

"); $('#row1').children().removeClass().addClass('box boxType3'); $('#row4 > div:last').css({'display':'none'}); + $('body').find('.boxType1').css({'backgroundColor':'white'}) }); From ba61a564a76db01efdc59d48f32bb7a7936c312b Mon Sep 17 00:00:00 2001 From: James Freeman Date: Tue, 16 Feb 2016 20:13:51 -0700 Subject: [PATCH 6/6] removed styling by removing classes...not sure thats what you wanted --- boxes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boxes.js b/boxes.js index 2910cfc..524fda7 100644 --- a/boxes.js +++ b/boxes.js @@ -3,7 +3,8 @@ $(document).ready(function(){ $('#secretBox').css({'backgroundColor':'white'}).append("

I'm a secret box!

"); $('#row1').children().removeClass().addClass('box boxType3'); $('#row4 > div:last').css({'display':'none'}); - $('body').find('.boxType1').css({'backgroundColor':'white'}) + $('body').find('.boxType1').css({'backgroundColor':'white'}); + $('#row2 > div:first-child, #row2 > div:nth-child(2)').removeClass(); });