Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add cut_off parameter to shorten host names.

  • Loading branch information...
commit ec68c8fc6ee25774f9518a935fc2ff1f691efc97 1 parent abc19cf
@i0rek i0rek authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  public/js/main.js
View
3  public/js/main.js
@@ -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>'
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.