diff --git a/js/battle.js b/js/battle.js index 3641e9ac3..de1a1243b 100644 --- a/js/battle.js +++ b/js/battle.js @@ -2479,7 +2479,7 @@ var Battle = (function () { } else { this.logFrameElem.html('
'); this.optionsElem = this.logFrameElem.children().last(); - this.logFrameElem.append(''); + this.logFrameElem.append(''); this.logElem = this.logFrameElem.children().last(); this.logFrameElem.append(''); this.logPreemptElem = this.logFrameElem.children().last(); @@ -2511,16 +2511,16 @@ var Battle = (function () { this.spriteElem.append(''); this.spriteElems[0] = this.spriteElem.children().last(); - this.elem.append(''); + this.elem.append(''); this.statElem = this.elem.children().last(); this.elem.append(''); this.fxElem = this.elem.children().last(); - this.elem.append(''); + this.elem.append(''); this.leftbarElem = this.elem.children().last(); - this.elem.append(''); + this.elem.append(''); this.rightbarElem = this.elem.children().last(); this.elem.append(''); diff --git a/js/client-battle-tooltips.js b/js/client-battle-tooltips.js index 3f2e4f9cd..199e86f1d 100644 --- a/js/client-battle-tooltips.js +++ b/js/client-battle-tooltips.js @@ -104,8 +104,11 @@ var BattleTooltips = (function () { ' ontouchleave="BattleTooltips._handleTouchLeaveFor(event)"' + ' ontouchcancel="BattleTooltips._handleTouchLeaveFor(event)"' + ' onmouseover="BattleTooltips.showTooltipFor(\'' + roomid + '\', \'' + Tools.escapeHTML('' + thing, true) + '\',\'' + type + '\', this, ' + (ownHeight ? 'true' : 'false') + ')"' + + ' onfocus="BattleTooltips.showTooltipFor(\'' + roomid + '\', \'' + Tools.escapeHTML('' + thing, true) + '\',\'' + type + '\', this, ' + (ownHeight ? 'true' : 'false') + ')"' + ' onmouseout="BattleTooltips.hideTooltip()"' + - ' onmouseup="BattleTooltips._handleMouseUpFor()"'; + ' onblur="BattleTooltips.hideTooltip()"' + + ' onmouseup="BattleTooltips._handleMouseUpFor()"' + + ' aria-describedby="tooltipwrapper"'; }; BattleTooltips.prototype.showTooltip = function (thing, type, elem, ownHeight) { var room = this.room; @@ -156,7 +159,7 @@ var BattleTooltips = (function () { if (y < 140) y = 140; if (x > $(window).width() - 303) x = Math.max($(window).width() - 303, 0); - if (!$('#tooltipwrapper').length) $(document.body).append(''); + if (!$('#tooltipwrapper').length) $(document.body).append(''); $('#tooltipwrapper').css({ left: x, top: y diff --git a/js/client-battle.js b/js/client-battle.js index 615b8cf7e..17849f17d 100644 --- a/js/client-battle.js +++ b/js/client-battle.js @@ -11,7 +11,7 @@ this.isSideRoom = Tools.prefs('rightpanelbattles'); - this.$el.addClass('ps-room-opaque').html('