From d23a6b4f3acc73417f79d381ea4c397bf1c450bf Mon Sep 17 00:00:00 2001 From: Mahdi Qiamast <78082316+Qiamast@users.noreply.github.com> Date: Tue, 31 May 2022 12:41:38 +0200 Subject: [PATCH] Add Dino Game Easter Egg :) --- JavaScript/scripts/EasterEgg.js | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/JavaScript/scripts/EasterEgg.js b/JavaScript/scripts/EasterEgg.js index 2943b68..268630b 100644 --- a/JavaScript/scripts/EasterEgg.js +++ b/JavaScript/scripts/EasterEgg.js @@ -28,7 +28,7 @@ function loadImages() { } else { start(); - console.log("start"); + console.log("Umm! i think Dino game started :)"); } } @@ -47,7 +47,7 @@ function setFavicon() { // newIcon.setAttribute("href", canvas.toDataURL()); // favicon.parentNode.replaceChild(newIcon, favicon); favicon.setAttribute("href", canvas.toDataURL()); - history.replaceState(null, null, window.location.hash == "#1" ? "#false" : "#true"); + history.replaceState(null, null, window.location.hash == "#1" ? "#0" : "#hi-there-wellcome"); } // event handling @@ -260,7 +260,7 @@ function gameOverStart() { // set and display high score if (score > highScore) { highScore = score; - document.title = `Qiamast | Dino High Score : ${highScore}`; + document.title = `Qiamast | 🦕 High Score : ${highScore}`; } if (spaceDown) { diff --git a/README.md b/README.md index 30d2cca..edc9ae0 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# Hey, this is 81 105 97 109 97 115 116 :) \ No newline at end of file +# Hey :) wellcome \ No newline at end of file