From 32fe3a193be2bdfd143806359cbc6aa886246da7 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 03:25:54 +0800 Subject: [PATCH] feat: add alex --- js/alexgame.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/alexgame.js b/js/alexgame.js index 29a40a0..7690a44 100644 --- a/js/alexgame.js +++ b/js/alexgame.js @@ -61,9 +61,9 @@ function handleClick(dishName) { hideElement(customers[RandomCustomerIndex][failedTimes]); showElement(customers[RandomCustomerIndex][0]); - // louis safe - hideElement(louises[failedTimes]) - showElement(louises) + // alex safe + hideElement(alexes[failedTimes]) + showElement(alexes) failedTimes = 0; @@ -84,8 +84,8 @@ function handleClick(dishName) { hideElement(customers[RandomCustomerIndex][0]) showElement(customers[RandomCustomerIndex][1]) - hideElement(louises[0]) - showElement(louises[1]) + hideElement(alexes[0]) + showElement(alexes[1]) break; case 2: hideElement(customers[RandomCustomerIndex][1]) @@ -93,8 +93,8 @@ function handleClick(dishName) { break; case 3: - hideElement(louises[1]) - showElement(louises[2]) + hideElement(alexes[1]) + showElement(alexes[2]) // Delay for 2 seconds before redirecting setTimeout(function() { window.location.href = 'alexlose.html'; @@ -168,7 +168,7 @@ document.addEventListener("DOMContentLoaded", function() { // Show a random customer showElement(customers[RandomCustomerIndex][0]); - // Show normal louis + // Show normal alex showElement('#alex img'); // Show hint bottom