Permalink
Browse files

add cut_off parameter to shorten host names.

  • Loading branch information...
1 parent abc19cf commit ec68c8fc6ee25774f9518a935fc2ff1f691efc97 @i0rek i0rek committed Nov 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/js/main.js
View
@@ -52,8 +52,9 @@ var Healthety = function(){
// write legend
$('#legend').html('');
for(var i in hosts){
+ var cut_off = $(document).getUrlParam('cut_off')
$('#legend').append(
- '<span style="color:'+ colors[i] +'">'+ hosts[i] +'</span>'
+ '<span style="color:'+ colors[i] +'">'+ hosts[i].replace(cut_off, '') +'</span>'
);
}

0 comments on commit ec68c8f

Please sign in to comment.