Compare commits
12 Commits
Hanlin_Hua
...
3904a8174e
| Author | SHA1 | Date | |
|---|---|---|---|
| 3904a8174e | |||
| 5ebd8ffb97 | |||
| 3fa9f99fce | |||
| e8cf6f9744 | |||
| ef91aa2fff | |||
| b86c0e6a76 | |||
| ba7726cf43 | |||
| d4e9714be2 | |||
| 459ea42d13 | |||
| 70eea2d0e3 | |||
| 1088fb79ac | |||
| d59ca48be1 |
10
choice.html
10
choice.html
@@ -31,11 +31,11 @@
|
|||||||
|
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="asset/pic/Character_Selection.png" alt="选择角色">
|
<img src="asset/pic/Character_Selection.png" alt="选择角色">
|
||||||
<button class="button button1" onclick="location.href='alexgame.html'">亚历山大</button>
|
<button class="button button1" onclick="location.href='alexgame.html'">Alexander</button>
|
||||||
<button class="button button2" onclick="location.href='louisgame.html'">路易十六</button>
|
<button class="button button2" onclick="location.href='louisgame.html'">Louis XVI</button>
|
||||||
<button class="button button3" onclick="location.href='qinshihuanggame.html'">秦始皇</button>
|
<button class="button button3" onclick="location.href='qinshihuanggame.html'">Qin Shi Huang</button>
|
||||||
<button class="button button4" onclick="location.href='elizabethgame.html'">伊丽莎白</button>
|
<button class="button button4" onclick="location.href='elizabethgame.html'">Elizabeth I</button>
|
||||||
<button class="button button5" onclick="location.href='nixongame.html'">尼克松</button>
|
<button class="button button5" onclick="location.href='nixongame.html'">Nixon</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -20,6 +20,10 @@
|
|||||||
height: 1024px;
|
height: 1024px;
|
||||||
top:50px;
|
top:50px;
|
||||||
left: -100px;
|
left: -100px;
|
||||||
|
height: 884px!important;
|
||||||
|
width: 883px!important;
|
||||||
|
top: 204px!important;
|
||||||
|
left: 40px!important;
|
||||||
}
|
}
|
||||||
#restaurant .dish img {
|
#restaurant .dish img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -20,6 +20,10 @@
|
|||||||
height: 1024px;
|
height: 1024px;
|
||||||
top:50px;
|
top:50px;
|
||||||
left: -100px;
|
left: -100px;
|
||||||
|
height: 884px!important;
|
||||||
|
width: 883px!important;
|
||||||
|
top: 204px!important;
|
||||||
|
left: 40px!important;
|
||||||
}
|
}
|
||||||
#restaurant .dish img {
|
#restaurant .dish img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -137,22 +141,33 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#cheese img{ /* 芝士 */
|
#cheese img{ /* 芝士 */
|
||||||
left: 170px;
|
left: 159px;
|
||||||
display: none;
|
display: none;
|
||||||
|
top: 734px!important;
|
||||||
|
width: 182px!important;
|
||||||
|
height: 207px!important;
|
||||||
}
|
}
|
||||||
#crepe img{
|
#crepe img{
|
||||||
left: 380px;
|
|
||||||
display: none;
|
display: none;
|
||||||
|
left: 347px;
|
||||||
|
top: 735px!important;
|
||||||
|
width: 194px!important;
|
||||||
|
height: 202px!important;
|
||||||
}
|
}
|
||||||
#foie-gras img{
|
#foie-gras img{
|
||||||
left: 590px;
|
left: 563px;
|
||||||
display: none;
|
display: none;
|
||||||
|
top: 750px!important;
|
||||||
|
width: 190px!important;
|
||||||
|
height: 191px!important;
|
||||||
|
z-index: 3!important;
|
||||||
}
|
}
|
||||||
#onion-soup img{
|
#onion-soup img{
|
||||||
left: 750px;
|
left: 750px;
|
||||||
top: 719px!important;
|
top: 725px!important;
|
||||||
width: 181px!important;
|
width: 200px!important;
|
||||||
height: 183px!important;
|
height: 207px!important;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
body {
|
body {
|
||||||
background-image: url('../asset/pic/louis16/LouisXVI_Restaurant.png');
|
background-image: url('../asset/pic/nixon/background.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-color: rgb(0, 136, 109);
|
background-color: rgb(0, 136, 109);
|
||||||
}
|
}
|
||||||
@@ -36,17 +36,17 @@
|
|||||||
z-index: 4;
|
z-index: 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
#louis img{ /* louis 16 */
|
#nixon img{ /* nixon 16 */
|
||||||
top: 235px;
|
top: 235px;
|
||||||
left: 1050px;
|
left: 1050px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#louis1 img{ /* 断头台 */
|
#nixon1 img{ /* 断头台 */
|
||||||
top: 235px;
|
top: 235px;
|
||||||
left: 1050px;
|
left: 1050px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#louis2 img{ /* 死 */
|
#nixon2 img{ /* 死 */
|
||||||
top: 235px;
|
top: 235px;
|
||||||
left: 1050px;
|
left: 1050px;
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -159,11 +159,11 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
showElement("#dialogueBox img");
|
showElement("#dialogueBox img");
|
||||||
|
|
||||||
// Show all dishes
|
// Show all dishes
|
||||||
showElement('#champagne img');
|
showElement('#burger img');
|
||||||
showElement('#cheese img');
|
showElement('#hot_dog img');
|
||||||
showElement('#crepe img');
|
showElement('#apple_pie img');
|
||||||
showElement('#foie-gras img');
|
showElement('#fried_chicken img');
|
||||||
showElement('#onion-soup img');
|
showElement('#pancakes img');
|
||||||
|
|
||||||
// Show a random customer
|
// Show a random customer
|
||||||
showElement(customers[RandomCustomerIndex][0]);
|
showElement(customers[RandomCustomerIndex][0]);
|
||||||
|
|||||||
@@ -72,23 +72,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- foods elements -->
|
<!-- foods elements -->
|
||||||
<div id="champagne" class="dish">
|
<div id="burger" class="dish">
|
||||||
<img src="asset/pic/nixon/burger.png" alt="burger"
|
<img src="asset/pic/nixon/burger.png" alt="burger"
|
||||||
onclick="handleClick('cham');">
|
onclick="handleClick('cham');">
|
||||||
</div>
|
</div>
|
||||||
<div id="cheese" class="dish">
|
<div id="hot_dog" class="dish">
|
||||||
<img src="asset/pic/nixon/hot_dog.png" alt="hot_dog"
|
<img src="asset/pic/nixon/hot_dog.png" alt="hot_dog"
|
||||||
onclick="handleClick('cheese');">
|
onclick="handleClick('cheese');">
|
||||||
</div>
|
</div>
|
||||||
<div id="crepe" class="dish">
|
<div id="apple_pie" class="dish">
|
||||||
<img src="asset/pic/nixon/apple_pie.png" alt="apple_pie"
|
<img src="asset/pic/nixon/apple_pie.png" alt="apple_pie"
|
||||||
onclick="handleClick('crepe');">
|
onclick="handleClick('crepe');">
|
||||||
</div>
|
</div>
|
||||||
<div id="foie-gras" class="dish">
|
<div id="fried_chicken" class="dish">
|
||||||
<img src="asset/pic/nixon/fried_chicken.png" alt="fried_chicken"
|
<img src="asset/pic/nixon/fried_chicken.png" alt="fried_chicken"
|
||||||
onclick="handleClick('foiegras');">
|
onclick="handleClick('foiegras');">
|
||||||
</div>
|
</div>
|
||||||
<div id="onion-soup" class="dish">
|
<div id="pancakes" class="dish">
|
||||||
<img src="asset/pic/nixon/pancakes.png" alt="pancakes"
|
<img src="asset/pic/nixon/pancakes.png" alt="pancakes"
|
||||||
onclick="handleClick('onionsoup');">
|
onclick="handleClick('onionsoup');">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user