From 572973ccf9fa5e3b98e5a6ddc284e8378abb8824 Mon Sep 17 00:00:00 2001 From: annasandri Date: Wed, 17 Mar 2021 11:19:45 +0000 Subject: [PATCH] storage --- wayfair/wayfair.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wayfair/wayfair.js b/wayfair/wayfair.js index f925724..48e3492 100644 --- a/wayfair/wayfair.js +++ b/wayfair/wayfair.js @@ -10,7 +10,14 @@ $(document).ready(function() { $("#forniture1").hide(); $("#child1").show(); winning(); + if (counter===1) { + console.log("first click"); + localStorage.child=1; + localStorage.childImage= $("#child1").attr("src"); + + } }); + $("#forniture2").click(function(){ counter ++;