Skip to content

Commit

Permalink
Change colour range
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario S committed Oct 4, 2016
1 parent 168e3fe commit 879d8bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/js/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,13 +658,13 @@ function timeClass(timestamp)

function blockTimeClass(diff)
{
if(diff <= 25)
if(diff <= 35)
return 'text-success';

if(diff <= 40)
if(diff <= 50)
return 'text-warning';

if(diff <= 60)
if(diff <= 70)
return 'text-orange';

return 'text-danger'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
$.fn.sparkline.defaults.bar.tooltipFormat = $.spformat('<div class="tooltip-arrow"></div><div class="tooltip-inner">{{prefix}}{{value}} {{suffix}}</div>');
$.fn.sparkline.defaults.bar.colorMap = $.range_map({
'0:6': '#10a0de',
'6:13': '#7bcc3a',
'13:20': '#FFD162',
'20:30': '#ff8a00',
'30:': '#F74B4B'
'6:35': '#7bcc3a',
'35:50': '#FFD162',
'50:70': '#ff8a00',
'70:': '#F74B4B'
});

moment.relativeTimeThreshold('s', 60);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(function(){
function blockTimeClass(diff)
{
if(diff <= 13)
if(diff <= 35)
return 'text-success';

if(diff <= 20)
if(diff <= 50)
return 'text-warning';

if(diff <= 30)
if(diff <= 70)
return 'text-orange';

return 'text-danger'
Expand Down Expand Up @@ -68,13 +68,13 @@ function peerClass(peers, active)

function blockTimeClass(diff)
{
if(diff <= 13)
if(diff <= 35)
return 'text-success';

if(diff <= 20)
if(diff <= 50)
return 'text-warning';

if(diff <= 30)
if(diff <= 70)
return 'text-orange';

return 'text-danger'
Expand Down

0 comments on commit 879d8bd

Please sign in to comment.