From 14a820df051d53e9a3254b819c1b63c84c549b14 Mon Sep 17 00:00:00 2001 From: sD Date: Sat, 21 Dec 2019 18:47:12 +0100 Subject: fix offset --- webAO/client.css | 1 - webAO/client.html | 2 +- webAO/client.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webAO/client.css b/webAO/client.css index 0899e48..5056e27 100644 --- a/webAO/client.css +++ b/webAO/client.css @@ -169,7 +169,6 @@ img { height: 100%; width: 100%; bottom: 0; - left: 0; } #client_bench { diff --git a/webAO/client.html b/webAO/client.html index 9423341..4a6852f 100644 --- a/webAO/client.html +++ b/webAO/client.html @@ -129,7 +129,7 @@ - + diff --git a/webAO/client.js b/webAO/client.js index 512dc22..cccf2c8 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1309,6 +1309,7 @@ class Viewport { const pairName = this.chatmsg.other_name.toLowerCase(); const pairEmote = this.chatmsg.other_emote.toLowerCase(); pairSprite.style.display = ""; + pairSprite.style.left = this.chatmsg.other_offset+"%"; pairSprite.src = `${AO_HOST}characters/${pairName}/(a)${pairEmote}.gif`; } else { pairSprite.style.display = "none"; -- cgit