diff options
author | hakangunturkun | 2020-09-07 22:35:17 -0500 |
---|---|---|
committer | hakangunturkun | 2020-09-07 22:35:17 -0500 |
commit | a637889f13c2151303998e411dc81f3196a974f6 (patch) | |
tree | f593bb635e759889109504405d2abc3e31af9008 /templates/progress.html | |
parent | 35179dec9aa1926102ad2ddbbd5b8ad2882be92e (diff) | |
download | genecup-a637889f13c2151303998e411dc81f3196a974f6.tar.gz |
last version
Diffstat (limited to 'templates/progress.html')
-rw-r--r-- | templates/progress.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/progress.html b/templates/progress.html index bd0224e..33a612e 100644 --- a/templates/progress.html +++ b/templates/progress.html @@ -4,15 +4,15 @@ <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> -var r = Math.floor(Math.random() * Math.floor(200)); -var g = 150; -var b = Math.floor(Math.random() * Math.floor(200)); -document.body.style.backgroundColor = 'rgba('+r+','+g+','+b+',0.1)' +//var r = Math.floor(Math.random() * Math.floor(200)); +//var g = 150; +//var b = Math.floor(Math.random() * Math.floor(200)); +//document.body.style.backgroundColor = 'rgba('+r+','+g+','+b+',0.1)' var source = new EventSource("/{{ url_in |safe }}"); source.onmessage = function(event) { $('.progress-bar').css('width', event.data+'%').attr('aria-valuenow', event.data); - var alpha = 1-event.data/150 - document.body.style.backgroundColor = 'rgba('+r+','+g+','+b+',0.3)'.replace(/[^,]+(?=\))/, alpha) +// var alpha = 1-event.data/150 +// document.body.style.backgroundColor = 'rgba('+r+','+g+','+b+',0.1)'.replace(/[^,]+(?=\))/, alpha) if(event.data == 100){ window.location.replace("/{{ url_out | safe}}") source.close() |