From 3e458e06de9da8099816851e510af1225223b901 Mon Sep 17 00:00:00 2001 From: Yuki Date: Thu, 8 Jan 2015 22:28:26 +0530 Subject: [PATCH] warningCount -> barDiv color RED --- OverlayPlugin/resources/spelltimer.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OverlayPlugin/resources/spelltimer.html b/OverlayPlugin/resources/spelltimer.html index 201bc50d3..017788bbb 100644 --- a/OverlayPlugin/resources/spelltimer.html +++ b/OverlayPlugin/resources/spelltimer.html @@ -407,6 +407,10 @@ var percentage = Math.max(0, Math.min(1, this.spellTimer.getRemaining() / this.spellTimer.startCount)) * 100; barDiv.style.width = percentage.toFixed(2) + "%"; + + setTimeout(function(barDiv) { + barDiv.style.backgroundColor = "#FF0000"; + }, Math.max(0, (this.spellTimer.getRemaining() - this.spellTimer.warningCount) * 1000), barDiv); $(barDiv).animate( { width: "0%" }, @@ -458,4 +462,4 @@ - \ No newline at end of file +