|
|
@ -10,8 +10,15 @@ $(document).ready(function() {
|
|
|
|
$("#forniture1").hide();
|
|
|
|
$("#forniture1").hide();
|
|
|
|
$("#child1").show();
|
|
|
|
$("#child1").show();
|
|
|
|
winning();
|
|
|
|
winning();
|
|
|
|
|
|
|
|
if (counter===1) {
|
|
|
|
|
|
|
|
console.log("first click");
|
|
|
|
|
|
|
|
localStorage.child=1;
|
|
|
|
|
|
|
|
localStorage.childImage= $("#child1").attr("src");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#forniture2").click(function(){
|
|
|
|
$("#forniture2").click(function(){
|
|
|
|
counter ++;
|
|
|
|
counter ++;
|
|
|
|
$('#result').html(counter);
|
|
|
|
$('#result').html(counter);
|
|
|
|