main #9
@ -72,25 +72,25 @@
|
||||
</div>
|
||||
|
||||
<!-- foods elements -->
|
||||
<div id="champagne" class="dish">
|
||||
<img src="asset/pic/alexander/greek_salad.png" alt="香槟"
|
||||
onclick="handleClick('cham');">
|
||||
</div>
|
||||
<div id="cheese" class="dish">
|
||||
<img src="asset/pic/louis16/BrieCheese.png" alt="芝士"
|
||||
<img src="asset/pic/alexander/goat_cheese.png" alt="芝士"
|
||||
onclick="handleClick('cheese');">
|
||||
</div>
|
||||
<div id="crepe" class="dish">
|
||||
<img src="asset/pic/louis16/Crepe.png" alt="雪糕"
|
||||
onclick="handleClick('crepe');">
|
||||
<div id="salad" class="dish">
|
||||
<img src="asset/pic/alexander/greek_salad.png" alt="沙拉"
|
||||
onclick="handleClick('salad');">
|
||||
</div>
|
||||
<div id="foie-gras" class="dish">
|
||||
<img src="asset/pic/louis16/FoieGras.png" alt="肥肝"
|
||||
onclick="handleClick('foiegras');">
|
||||
<div id="yoghurt" class="dish">
|
||||
<img src="asset/pic/alexander/greek_yoghurt.png" alt="酸奶"
|
||||
onclick="handleClick('yoghurt');">
|
||||
</div>
|
||||
<div id="onion-soup" class="dish">
|
||||
<img src="asset/pic/louis16/FrenchOnionSoup.png" alt="洋葱汤"
|
||||
onclick="handleClick('onionsoup');">
|
||||
<div id="moussaka" class="dish">
|
||||
<img src="asset/pic/alexander/moussaka.png" alt="饼"
|
||||
onclick="handleClick('moussaka');">
|
||||
</div>
|
||||
<div id="lamb" class="dish">
|
||||
<img src="asset/pic/alexander/roasted_lamb_chops.png" alt="羊"
|
||||
onclick="handleClick('lamb');">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
After Width: | Height: | Size: 3.5 MiB |
@ -131,24 +131,24 @@
|
||||
top:100px !important;
|
||||
display: none;
|
||||
}
|
||||
# img{ /* 香槟 */
|
||||
#lamb img{
|
||||
left: -10px;
|
||||
|
||||
display: none;
|
||||
}
|
||||
#cheese img{ /* 芝士 */
|
||||
#yoghurt img{ /* 芝士 */
|
||||
left: 170px;
|
||||
display: none;
|
||||
}
|
||||
#crepe img{
|
||||
#moussaka img{
|
||||
left: 380px;
|
||||
display: none;
|
||||
}
|
||||
#foie-gras img{
|
||||
#salad img{
|
||||
left: 590px;
|
||||
display: none;
|
||||
}
|
||||
#onion-soup img{
|
||||
#cheese img{
|
||||
left: 750px;
|
||||
top: 719px!important;
|
||||
width: 181px!important;
|
||||
|
@ -111,30 +111,30 @@ var failedTimes = 0
|
||||
|
||||
// Questions list
|
||||
var questions = [
|
||||
"How to establish a unified system of metrics to strengthen centralised power?",
|
||||
"How to formulate a reasonable tax policy to strengthen the national treasury?",
|
||||
"How to organise and mobilise resources for the construction of the Great Wall to defend against foreign enemies?",
|
||||
"How to enforce the policy of prohibiting private ownership of weapons?",
|
||||
"How to promote a uniform writing system to strengthen cultural unity?",
|
||||
"How to recruit soldiers wisely and keep the army running efficiently?",
|
||||
"How to deal with political dissent arising from different ideas?",
|
||||
"How to strengthen the centralised power system of the emperor?",
|
||||
"How to establish and maintain an effective road transport network?",
|
||||
"How to handle diplomatic relations with neighbouring countries?"
|
||||
"How was Macedonian dominance in Greece consolidated?",
|
||||
"How was the long-standing hostility with the Persian Empire managed?",
|
||||
"how to administer and integrate a vast territory?",
|
||||
"how to balance the different peoples and cultures in the army?",
|
||||
"how to deal with uprisings and rebellions in conquered areas?",
|
||||
"How to promote Greek culture and influence?",
|
||||
"How to establish an effective administrative system in the newly conquered territories?",
|
||||
"How to handle diplomatic relations with other Mediterranean powers?",
|
||||
"How to maintain the economic stability and prosperity of the vast empire?",
|
||||
"How to ensure royal succession and stability of power?"
|
||||
];
|
||||
|
||||
// Answers list
|
||||
var answers = [
|
||||
'roast_duck',
|
||||
'mapo',
|
||||
'Yangzhou',
|
||||
'Chicken',
|
||||
'roast_duck',
|
||||
'Yangzhou',
|
||||
'mapo',
|
||||
'mapo',
|
||||
'Prawns',
|
||||
'Yangzhou'
|
||||
'lamb',
|
||||
'yoghurt',
|
||||
'moussaka',
|
||||
'salad',
|
||||
'lamb',
|
||||
'salad',
|
||||
'moussaka',
|
||||
'cheese',
|
||||
'cheese',
|
||||
'yoghurt'
|
||||
]
|
||||
|
||||
var QAlist = Array.from(Array(questions.length).keys());
|
||||
@ -159,11 +159,11 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
showElement("#dialogueBox img");
|
||||
|
||||
// Show all dishes
|
||||
showElement('#champagne img');
|
||||
showElement('#lamb img');
|
||||
showElement('#yoghurt img');
|
||||
showElement('#moussaka img');
|
||||
showElement('#salad img');
|
||||
showElement('#cheese img');
|
||||
showElement('#crepe img');
|
||||
showElement('#foie-gras img');
|
||||
showElement('#onion-soup img');
|
||||
|
||||
// Show a random customer
|
||||
showElement(customers[RandomCustomerIndex][0]);
|
||||
|
@ -111,30 +111,30 @@ var failedTimes = 0
|
||||
|
||||
// Questions list
|
||||
var questions = [
|
||||
"How to establish a unified system of metrics to strengthen centralised power?",
|
||||
"How to formulate a reasonable tax policy to strengthen the national treasury?",
|
||||
"How to organise and mobilise resources for the construction of the Great Wall to defend against foreign enemies?",
|
||||
"How to enforce the policy of prohibiting private ownership of weapons?",
|
||||
"How to promote a uniform writing system to strengthen cultural unity?",
|
||||
"How to recruit soldiers wisely and keep the army running efficiently?",
|
||||
"How to deal with political dissent arising from different ideas?",
|
||||
"How to strengthen the centralised power system of the emperor?",
|
||||
"How to establish and maintain an effective road transport network?",
|
||||
"How to handle diplomatic relations with neighbouring countries?"
|
||||
"How to deal with religious conflicts in different churches?",
|
||||
"How to consolidate links with new churches, especially in the early years of the reign?",
|
||||
"How to deal with the privileges of the aristocracy and balance the conflicts between social classes?",
|
||||
"How to cope with tensions between Scotland and Spain, especially during the Anglo-Spanish War",
|
||||
"What role should it play in the American War of Independence?",
|
||||
"How to deal with the demand of the Third Estate for the convening of Congress?",
|
||||
"How should the storming of the Bastille be confronted?",
|
||||
"What should be the attitude towards the formulation of a new constitution?",
|
||||
"How should one respond to the rise of counterrevolutionary forces?",
|
||||
"How should relations with other European countries be handled in the midst of a wave of revolutions?"
|
||||
];
|
||||
|
||||
// Answers list
|
||||
var answers = [
|
||||
'roast_duck',
|
||||
'mapo',
|
||||
'Yangzhou',
|
||||
'Chicken',
|
||||
'roast_duck',
|
||||
'Yangzhou',
|
||||
'mapo',
|
||||
'mapo',
|
||||
'Prawns',
|
||||
'Yangzhou'
|
||||
'fish&chips',
|
||||
'cream_tea',
|
||||
'pudding',
|
||||
'pudding',
|
||||
'fish&chips',
|
||||
'breakfast',
|
||||
'spaghetti',
|
||||
'spaghetti',
|
||||
'breakfast',
|
||||
'cream_tea'
|
||||
]
|
||||
|
||||
var QAlist = Array.from(Array(questions.length).keys());
|
||||
|
@ -22,10 +22,10 @@ const customers = [
|
||||
|
||||
const RandomCustomerIndex = Math.floor(Math.random() * customers.length);
|
||||
|
||||
const louises = [
|
||||
'#louis img',
|
||||
'#louis1 img',
|
||||
'#louis2 img'
|
||||
const nixones = [
|
||||
'#nixon img',
|
||||
'#nixon1 img',
|
||||
'#nixon2 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 = 'nixonwin.html';
|
||||
}, 2000);
|
||||
|
||||
}else{
|
||||
@ -61,9 +61,9 @@ function handleClick(dishName) {
|
||||
hideElement(customers[RandomCustomerIndex][failedTimes]);
|
||||
showElement(customers[RandomCustomerIndex][0]);
|
||||
|
||||
// louis safe
|
||||
hideElement(louises[failedTimes])
|
||||
showElement(louises)
|
||||
// nixon safe
|
||||
hideElement(nixones[failedTimes])
|
||||
showElement(nixones)
|
||||
|
||||
failedTimes = 0;
|
||||
|
||||
@ -84,8 +84,8 @@ function handleClick(dishName) {
|
||||
hideElement(customers[RandomCustomerIndex][0])
|
||||
showElement(customers[RandomCustomerIndex][1])
|
||||
|
||||
hideElement(louises[0])
|
||||
showElement(louises[1])
|
||||
hideElement(nixones[0])
|
||||
showElement(nixones[1])
|
||||
break;
|
||||
case 2:
|
||||
hideElement(customers[RandomCustomerIndex][1])
|
||||
@ -93,11 +93,11 @@ function handleClick(dishName) {
|
||||
|
||||
break;
|
||||
case 3:
|
||||
hideElement(louises[1])
|
||||
showElement(louises[2])
|
||||
hideElement(nixones[1])
|
||||
showElement(nixones[2])
|
||||
// Delay for 2 seconds before redirecting
|
||||
setTimeout(function() {
|
||||
window.location.href = 'louislose.html';
|
||||
window.location.href = 'nixonlose.html';
|
||||
}, 2000);
|
||||
// 这里可以添加结束游戏或其他逻辑
|
||||
break;
|
||||
@ -111,30 +111,30 @@ var failedTimes = 0
|
||||
|
||||
// Questions list
|
||||
var questions = [
|
||||
"How to establish a unified system of metrics to strengthen centralised power?",
|
||||
"How to formulate a reasonable tax policy to strengthen the national treasury?",
|
||||
"How to organise and mobilise resources for the construction of the Great Wall to defend against foreign enemies?",
|
||||
"How to enforce the policy of prohibiting private ownership of weapons?",
|
||||
"How to promote a uniform writing system to strengthen cultural unity?",
|
||||
"How to recruit soldiers wisely and keep the army running efficiently?",
|
||||
"How to deal with political dissent arising from different ideas?",
|
||||
"How to strengthen the centralised power system of the emperor?",
|
||||
"How to establish and maintain an effective road transport network?",
|
||||
"How to handle diplomatic relations with neighbouring countries?"
|
||||
"How can we ensure transparency and integrity in government?",
|
||||
"How can we end the Vietnam War and ensure that needless diplomatic conflicts and wars are avoided in the future?",
|
||||
"how can we improve relations with China and foster better diplomatic and trade cooperation based on respect for differences?",
|
||||
"how should we manage tensions with the Soviet Union?",
|
||||
"what should we do in the face of ongoing conflict and oil crises in the Middle East?",
|
||||
"how will we respond to growing environmental problems?",
|
||||
"In the face of recession and inflation, how will our economic policies be adjusted to restore and maintain economic stability?",
|
||||
"how will the government respond to citizens' concerns about war and equal rights?",
|
||||
"how can we promote nuclear weapons control and reduce nuclear threats globally?",
|
||||
"how will government ensure the proper use of power, abide by the Constitution, and protect the freedoms and rights of its citizens?"
|
||||
];
|
||||
|
||||
// Answers list
|
||||
var answers = [
|
||||
'roast_duck',
|
||||
'mapo',
|
||||
'Yangzhou',
|
||||
'Chicken',
|
||||
'roast_duck',
|
||||
'Yangzhou',
|
||||
'mapo',
|
||||
'mapo',
|
||||
'Prawns',
|
||||
'Yangzhou'
|
||||
'ham',
|
||||
'hotdog',
|
||||
'applepie',
|
||||
'frychicken',
|
||||
'jiangbing',
|
||||
'ham',
|
||||
'hotdog',
|
||||
'applepie',
|
||||
'frychicken',
|
||||
'jianbing'
|
||||
]
|
||||
|
||||
var QAlist = Array.from(Array(questions.length).keys());
|
||||
@ -168,8 +168,8 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
// Show a random customer
|
||||
showElement(customers[RandomCustomerIndex][0]);
|
||||
|
||||
// Show normal louis
|
||||
showElement('#louis img');
|
||||
// Show normal nixon
|
||||
showElement('#nixon img');
|
||||
|
||||
// Show hint bottom
|
||||
showElement('#hint img')
|
||||
|
Loading…
x
Reference in New Issue
Block a user