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 ++;