diff --git a/public/js/filters.js b/public/js/filters.js index 7f368fc..f361756 100644 --- a/public/js/filters.js +++ b/public/js/filters.js @@ -80,14 +80,17 @@ angular.module('netStatsApp.filters', []) if(block.number < bestBlock) return 'text-gray'; + if(block.propagation == 0) + return 'text-info'; + if(block.propagation < 1000) return 'text-success'; if(block.propagation < 3000) - return 'text-info'; + return 'text-warning'; if(block.propagation < 7000) - return 'text-warning'; + return 'text-orange'; return 'text-danger' }; diff --git a/public/js/script.js b/public/js/script.js index 90f429f..f15bde6 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -12,9 +12,10 @@ $.fn.sparkline.defaults.bar.tooltipOffsetX = 0; $.fn.sparkline.defaults.bar.tooltipFormat = $.spformat('