aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-26 16:08:28 +0100
committersD <stoned@derpymail.org>2019-12-26 16:08:28 +0100
commit32c42015e57e7cf2d5c66a1d54ceec2e9cdb1214 (patch)
tree7dd261337c5e020797de580091e0701f1ffd5a21 /webAO
parent9737b4274caca7c9b1c6b97e5cee5b63ca2199a1 (diff)
replace shake animation
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/webAO/client.js b/webAO/client.js
index ca1dcdd..10ae4e5 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1368,9 +1368,7 @@ class Viewport {
this.sfxplayed = 1;
this.sfxaudio.src = AO_HOST + "sounds/general/sfx-stab.wav";
this.sfxaudio.play();
- $("#client_gamewindow").effect("shake", {
- "direction": "up"
- });
+ document.getElementById("client_gamewindow").style.animation = "shake 0.2s 1";
} else if (this.chatmsg.flash === "1") {
// Flash screen
background.style.backgroundColor = "white";