From 27ecbe8d4a4fea0084f3fe4f903751f98a4f7522 Mon Sep 17 00:00:00 2001 From: Rakesh Mithun Date: Sun, 13 Feb 2022 20:21:42 +1000 Subject: [PATCH] adding social shares test --- index.html | 7 +++++++ js/app.js | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 9df086a..543675a 100644 --- a/index.html +++ b/index.html @@ -37,6 +37,10 @@

Rakesh's Memory Game

+ +
diff --git a/js/app.js b/js/app.js index 421ed70..f511aa7 100644 --- a/js/app.js +++ b/js/app.js @@ -17,7 +17,7 @@ function generatedCard(card) { //declare empty array as openCards let openCards = []; -// declare variables for star icons +//declare variables for star icons const stars = document.querySelectorAll(".fa-star"); // stars list @@ -58,6 +58,7 @@ function shuffle(array) { return array; } +//initite game initGame(); let timerActive = false @@ -251,4 +252,8 @@ document.getElementById("play-again").addEventListener("click", function() { function playAgain() { modal.classList.remove("show"); restartGame(); -} \ No newline at end of file +} + +document.getElementById("open-modal").addEventListener("click", function() { + modal.classList.add('show'); +}); \ No newline at end of file