feat: add alex
This commit is contained in:
@@ -22,10 +22,10 @@ const customers = [
|
||||
|
||||
const RandomCustomerIndex = Math.floor(Math.random() * customers.length);
|
||||
|
||||
const louises = [
|
||||
'#louis img',
|
||||
'#louis1 img',
|
||||
'#louis2 img'
|
||||
const alexes = [
|
||||
'#alex img',
|
||||
'#alex1 img',
|
||||
'#alex2 img'
|
||||
]
|
||||
|
||||
function checkAnswer(dishName){
|
||||
@@ -53,7 +53,7 @@ function handleClick(dishName) {
|
||||
console.log("恭喜,你选对了!");
|
||||
if (currentIndex == 9){
|
||||
setTimeout(function() {
|
||||
window.location.href = 'louiswin.html';
|
||||
window.location.href = 'alexwin.html';
|
||||
}, 2000);
|
||||
|
||||
}else{
|
||||
@@ -97,7 +97,7 @@ function handleClick(dishName) {
|
||||
showElement(louises[2])
|
||||
// Delay for 2 seconds before redirecting
|
||||
setTimeout(function() {
|
||||
window.location.href = 'louislose.html';
|
||||
window.location.href = 'alexlose.html';
|
||||
}, 2000);
|
||||
// 这里可以添加结束游戏或其他逻辑
|
||||
break;
|
||||
@@ -169,7 +169,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
showElement(customers[RandomCustomerIndex][0]);
|
||||
|
||||
// Show normal louis
|
||||
showElement('#louis img');
|
||||
showElement('#alex img');
|
||||
|
||||
// Show hint bottom
|
||||
showElement('#hint img')
|
||||
|
Reference in New Issue
Block a user