feat: update game
This commit is contained in:
@@ -55,7 +55,7 @@ function handleClick(dishName) {
|
||||
console.log("恭喜,你选对了!");
|
||||
if (currentIndex == 9){
|
||||
setTimeout(function() {
|
||||
window.location.href = 'win.html';
|
||||
window.location.href = 'qinshihuangwin.html';
|
||||
}, 2000);
|
||||
|
||||
}else{
|
||||
@@ -90,7 +90,7 @@ function handleClick(dishName) {
|
||||
showElement(qinshihuangs[RandomQinShiHuangIndex])
|
||||
// Delay for 2 seconds before redirecting
|
||||
setTimeout(function() {
|
||||
window.location.href = 'lose.html';
|
||||
window.location.href = 'qinshihuanglose.html';
|
||||
}, 2000);
|
||||
// 这里可以添加结束游戏或其他逻辑
|
||||
break;
|
||||
Reference in New Issue
Block a user