From c15ff448fefef8f74af96961c999fb8f93501982 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 23:15:27 +0800 Subject: [PATCH 1/2] feat: update dishes id --- js/nixongame.js | 8 ++++---- nixongame.html | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/js/nixongame.js b/js/nixongame.js index 9cd27cd..1d758c8 100644 --- a/js/nixongame.js +++ b/js/nixongame.js @@ -128,13 +128,13 @@ var answers = [ 'ham', 'hotdog', 'applepie', - 'frychicken', - 'jiangbing', + 'friedchicken', + 'pancakes', 'ham', 'hotdog', 'applepie', - 'frychicken', - 'jianbing' + 'friedchicken', + 'pancakes' ] var QAlist = Array.from(Array(questions.length).keys()); diff --git a/nixongame.html b/nixongame.html index bdfbb10..04acdff 100644 --- a/nixongame.html +++ b/nixongame.html @@ -72,25 +72,25 @@ -
+
burger + onclick="handleClick('hamburger');">
hot_dog + onclick="handleClick('hotdog');">
-
+
apple_pie
-
+
fried_chicken + onclick="handleClick('friedchicken');">
-
+
pancakes + onclick="handleClick('pancakes');">
From 2888464a13cc53f54ca64935bcc68e4a7d3bbedb Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 23:19:21 +0800 Subject: [PATCH 2/2] fix: fix desktop error --- css/nixongame.css | 4 ++-- nixongame.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/nixongame.css b/css/nixongame.css index 74a335d..4c62e4a 100644 --- a/css/nixongame.css +++ b/css/nixongame.css @@ -3,11 +3,11 @@ background-repeat: no-repeat; background-color: rgb(0, 136, 109); } - #desk{ + #desktop{ position: absolute; background-repeat: no-repeat; } - #desk img{ + #desktop img{ left: -10px; top: -10px; position: absolute; diff --git a/nixongame.html b/nixongame.html index 491761c..dac94e4 100644 --- a/nixongame.html +++ b/nixongame.html @@ -22,10 +22,10 @@
nixon
-
+
nixon
-
+
死