JS cleanup

This commit is contained in:
Julius Haertl
2016-11-09 13:08:45 +01:00
parent 493b9b6260
commit 7c4d007642
6 changed files with 20 additions and 77 deletions

View File

@@ -49,14 +49,11 @@ app.filter('textColorFilter', function() {
}
h /= 6;
}
// TODO: Maybe just darken/lighten the color
if(l<0.5) {
return "#ffffff";
} else {
return "#000000";
}
//var rgba = "rgba(" + color.r + "," + color.g + "," + color.b + ",0.7)";
//return rgba;
} else {
return "#000000";
}