feat: replace dishes name

This commit is contained in:
sangge 2023-12-24 21:54:07 +08:00
parent 604ee009ef
commit 2b14cb96d9
4 changed files with 23 additions and 23 deletions

View File

@ -72,25 +72,25 @@
</div> </div>
<!-- foods elements --> <!-- foods elements -->
<div id="champagne" class="dish">
<img src="asset/pic/louis16/Champagne.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>

View File

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

View File

@ -131,24 +131,24 @@
top:100px !important; top:100px !important;
display: none; display: none;
} }
#champagne 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;

View File

@ -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]);