aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHao Chen2019-05-12 07:21:48 -0500
committerHao Chen2019-05-12 07:21:48 -0500
commita726538329e4a28891428a98e7eb89c5ed68da5e (patch)
tree3c12b423fc4bf78364e707805d116bf96bee0e66 /templates
parent5abc13ae06b2ce7e53480340a1b9292701dc4ab5 (diff)
downloadgenecup-a726538329e4a28891428a98e7eb89c5ed68da5e.tar.gz
color and minors
Diffstat (limited to 'templates')
-rw-r--r--templates/cytoscape.html4
-rw-r--r--templates/progress.html2
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/cytoscape.html b/templates/cytoscape.html
index b70481b..2f25e62 100644
--- a/templates/cytoscape.html
+++ b/templates/cytoscape.html
@@ -24,7 +24,9 @@
'line-color':'black',
'opacity': 'mapData(sentCnt, 1, 50, 0.3, 1)',
'width': 'mapData(sentCnt, 1, 50, 0.3, 4)',
- 'font-size': '9%'
+ 'font-size': '9%',
+ 'font-weight': 'bold',
+ 'color': '#117A65'
}
},
{ selector: 'node.highlight',
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){