From 2b14cb96d95bb1497bdb81fb1de9b737f11e14d1 Mon Sep 17 00:00:00 2001
From: sangge <2251250136@qq.com>
Date: Sun, 24 Dec 2023 21:54:07 +0800
Subject: [PATCH] feat: replace dishes name
---
alexgame.html | 28 +++++++++---------
...lamb_chops .png => roasted_lamb_chops.png} | Bin
css/alexgame.css | 10 +++----
js/alexgame.js | 8 ++---
4 files changed, 23 insertions(+), 23 deletions(-)
rename asset/pic/alexander/{roasted_lamb_chops .png => roasted_lamb_chops.png} (100%)
diff --git a/alexgame.html b/alexgame.html
index 7bc150e..958d74d 100644
--- a/alexgame.html
+++ b/alexgame.html
@@ -72,25 +72,25 @@
-
-

-
-
-
-

+
+
-
-

+
+
-
diff --git a/asset/pic/alexander/roasted_lamb_chops .png b/asset/pic/alexander/roasted_lamb_chops.png
similarity index 100%
rename from asset/pic/alexander/roasted_lamb_chops .png
rename to asset/pic/alexander/roasted_lamb_chops.png
diff --git a/css/alexgame.css b/css/alexgame.css
index c9f975b..f12e2a1 100644
--- a/css/alexgame.css
+++ b/css/alexgame.css
@@ -131,24 +131,24 @@
top:100px !important;
display: none;
}
- #champagne 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;
diff --git a/js/alexgame.js b/js/alexgame.js
index 06cc8fd..e4f8c89 100644
--- a/js/alexgame.js
+++ b/js/alexgame.js
@@ -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]);