aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-26 18:04:00 +0100
committersD <stoned@derpymail.org>2019-12-26 18:04:00 +0100
commit11e800bdf67dd3f5a1a63f7e9bd83fbb79a3d30e (patch)
treefa10c705036bd812c612ddc622d20c63ffa7b49d
parentfd81db5965b3847491e808dea67dd353c896a6e4 (diff)
add flash
-rw-r--r--webAO/client.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 10ae4e5..c03d32e 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1376,7 +1376,7 @@ class Viewport {
this.sfxplayed = 1;
this.sfxaudio.src = AO_HOST + "sounds/general/sfx-realization.wav";
this.sfxaudio.play();
- $("#client_gamewindow").effect("pulsate", { times: 1 }, 200);
+ document.getElementById("client_fg").style.animation = "flash 0.4s 1";
}
// Pre-animation stuff
@@ -1889,7 +1889,6 @@ async function changeBackground(position) {
};
const { bg, desk, speedLines } = positions[position];
- document.getElementById("client_fg").style.display = "none";
if (viewport.chatmsg.type === "5") {
document.getElementById("client_court").src = `${AO_HOST}themes/default/${encodeURI(speedLines)}`;