From a726538329e4a28891428a98e7eb89c5ed68da5e Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Sun, 12 May 2019 07:21:48 -0500 Subject: color and minors --- templates/progress.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/progress.html') diff --git a/templates/progress.html b/templates/progress.html index 7b4a9d0..081f1d9 100644 --- a/templates/progress.html +++ b/templates/progress.html @@ -15,7 +15,7 @@ var source = new EventSource("/search"); source.onmessage = function(event) { $('.progress-bar').css('width', event.data+'%').attr('aria-valuenow', event.data); $('.progress-bar-label').text(event.data+'%'); - var alpha = event.data/150 + var alpha = 1-event.data/150 document.body.style.backgroundColor = 'rgba('+r+','+g+','+b+',0.3)'.replace(/[^,]+(?=\))/, alpha) if(event.data == 100){ -- cgit v1.2.3