From 84747dc6a957fd2804e83c360a2c9d1f066a9413 Mon Sep 17 00:00:00 2001 From: t510599 Date: Sat, 2 Jun 2018 01:54:51 +0800 Subject: [PATCH] Fix preloading image --- web/cards.html | 2 -- web/gameUI.css | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/cards.html b/web/cards.html index 1dedd76..7a0fe50 100644 --- a/web/cards.html +++ b/web/cards.html @@ -10,8 +10,6 @@ - -
diff --git a/web/gameUI.css b/web/gameUI.css index 682dfec..d5a14f0 100644 --- a/web/gameUI.css +++ b/web/gameUI.css @@ -85,4 +85,8 @@ p.result.enemy.name { } p.result.player.name { right: 1.5em; +} +body::after{ + position:absolute; width:0; height:0; overflow:hidden; z-index:-1; + content:url('./won.png') url('./lose.png'); } \ No newline at end of file