From ef91aa2fffdb0e72807daaec94ea79536c7d7ff6 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 23:07:24 +0800 Subject: [PATCH 1/2] fix: rename background --- css/nixongame.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/css/nixongame.css b/css/nixongame.css index 0f29b90..376a0d1 100644 --- a/css/nixongame.css +++ b/css/nixongame.css @@ -1,5 +1,5 @@ body { - background-image: url('../asset/pic/louis16/LouisXVI_Restaurant.png'); + background-image: url('../asset/pic/nixon/background.png'); background-repeat: no-repeat; background-color: rgb(0, 136, 109); } @@ -36,17 +36,17 @@ z-index: 4; } - #louis img{ /* louis 16 */ + #nixon img{ /* nixon 16 */ top: 235px; left: 1050px; display: none; } - #louis1 img{ /* 断头台 */ + #nixon1 img{ /* 断头台 */ top: 235px; left: 1050px; display: none; } - #louis2 img{ /* 死 */ + #nixon2 img{ /* 死 */ top: 235px; left: 1050px; display: none; From 3fa9f99fcee38933a8a1ec302dc14f8fe1270489 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 23:10:37 +0800 Subject: [PATCH 2/2] feat: show dished --- js/nixongame.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/nixongame.js b/js/nixongame.js index 7f2c4fe..9cd27cd 100644 --- a/js/nixongame.js +++ b/js/nixongame.js @@ -159,11 +159,11 @@ document.addEventListener("DOMContentLoaded", function() { showElement("#dialogueBox img"); // Show all dishes - showElement('#champagne img'); - showElement('#cheese img'); - showElement('#crepe img'); - showElement('#foie-gras img'); - showElement('#onion-soup img'); + showElement('#burger img'); + showElement('#hot_dog img'); + showElement('#apple_pie img'); + showElement('#fried_chicken img'); + showElement('#pancakes img'); // Show a random customer showElement(customers[RandomCustomerIndex][0]);