From 88e69db537ac1aa6ac3801ec7dfb9ef392d2ffee Mon Sep 17 00:00:00 2001 From: Merav-M Date: Tue, 27 May 2025 17:17:44 +0300 Subject: [PATCH 1/3] Commit Exemplet --- play-game.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-game.html b/play-game.html index 8dd9e0c..03b3eed 100644 --- a/play-game.html +++ b/play-game.html @@ -1,7 +1,7 @@ From bfdba7f35ebad69ee5a92f85a36804a479a418aa Mon Sep 17 00:00:00 2001 From: Merav-M Date: Tue, 27 May 2025 17:40:10 +0300 Subject: [PATCH 2/3] English fixes and explanations. --- .vscode/settings.json | 3 +++ auth-handler.js | 5 ++++- login.html | 4 ++-- play-game.html | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/auth-handler.js b/auth-handler.js index 9e435a2..8dac576 100644 --- a/auth-handler.js +++ b/auth-handler.js @@ -54,7 +54,7 @@ document.getElementById("google-login").addEventListener("click", async () => { // Function to handle guest access // Функция для обработки гостевого доступа -export function continueAsGuest() { +function continueAsGuest() { // Save guest status to local storage // Сохранение статуса гостя в локальное хранилище localStorage.setItem("user", JSON.stringify({ guest: true })); @@ -62,3 +62,6 @@ export function continueAsGuest() { // Перенаправление на главную страницу window.location.href = "index.html"; } + +// Add event listener for guest login button +document.getElementById("guest-login").addEventListener("click", continueAsGuest); diff --git a/login.html b/login.html index b7e4e2a..5d527f8 100644 --- a/login.html +++ b/login.html @@ -21,10 +21,10 @@

Welcome To MegaPath

-

ou

+

or

- + @@ -16,16 +9,11 @@

- Write the translation of these words in your language -
- +