From dc825ec1cdb7c7c47465bb94c10bd8659af25863 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 12 Apr 2023 12:32:09 +0200 Subject: [PATCH 1/2] Fix count js import --- .gitignore | 1 + game.html | 12 ++++++++---- game.js | 6 ++++-- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/game.html b/game.html index ec2749d..a4a9d21 100644 --- a/game.html +++ b/game.html @@ -11,8 +11,6 @@ - -
@@ -63,5 +61,11 @@ + + \ No newline at end of file diff --git a/game.js b/game.js index 0b0091e..b2734af 100644 --- a/game.js +++ b/game.js @@ -1,3 +1,5 @@ +import { CountUp } from "./node_modules/countup.js/dist/countUp.min.js"; + var cpuList; var currentCpu; var nextCpu; @@ -18,11 +20,11 @@ function getRandomCpu() { } } -function btnLowerClick() { +export function btnLowerClick() { currentCpu.score < nextCpu.score ? showResult(true) : showResult(false); } -function btnHigherClick() { +export function btnHigherClick() { currentCpu.score > nextCpu.score ? showResult(true) : showResult(false); } -- 2.45.2 From 288f5b6dbe8bc82b436c2364649b56d89836611c Mon Sep 17 00:00:00 2001 From: Florian Schmid Date: Wed, 12 Apr 2023 12:35:12 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=E2=80=9E.DS=5FStore=E2=80=9C=20l=C3=B6sche?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index af2d2f9a55024a983c60a98ec143ccb8b3adad1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKT}s115dNkHO!cMUi!VY>Q0xuTl0Nt#h`oTckyc1dK?NUk0B@q;CA@(*@dEnI z?h?{QeH1A(F#GM!?Cj5%kjVg$$wNK@1^{BJVz1BU8&SV%M|#1sPZV9_tf&_AqMCE8 z3!40Y2K3oQxIu{}?zW!a1%0QVPTWPBdBt)xTU6z`b-l({R#_I_f%xd<{ptDRZQS0Y ztny#|>s4p%1D@{|Ij-@DAy&BOX^XA1zH*OY>#TiTVu~>`oD+wP$TuV8WGkX|8S5GY z#(*)f;|wrotHg&Mtu+RW0b`(HK)(+ORWS`%dvu=;Hm(F9Ml?HN-~IX%6EzUifVD?j zDB?qjK2$=9A)#^*A5MQ7=GPv5IK=JDb;8aPDijHYha_$~B=u;mF<=aAGO*`|1I_=_ zpX>k4AR8G2#=uT7AW=5UCcIL}t)0thu1%;{R27|9du&43ajBSdH5DIIozR|WhnNPe SJ<>w49|1>$HO9c7GVleI<4@KA -- 2.45.2