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