Fix some code style issues

This commit is contained in:
Julius Haertl
2016-10-28 12:09:48 +02:00
parent 0191b000dc
commit 0aa3f661ac
16 changed files with 108 additions and 203 deletions

View File

@@ -36,10 +36,8 @@ app.filter('cardSearchFilter', function() {
});
});
var arrayResult = $.map(_result, function(value, index) {
return $.map(_result, function(value, index) {
return [value];
});
return arrayResult;
};
});

View File

@@ -31,9 +31,9 @@ app.filter('iconWhiteFilter', function() {
b: parseInt(result[3], 16)
} : null;
if(result !== null) {
r = color.r/255;
g = color.g/255;
b = color.b/255;
var r = color.r/255;
var g = color.g/255;
var b = color.b/255;
var max = Math.max(r, g, b), min = Math.min(r, g, b);
var h, s, l = (max + min) / 2;

View File

@@ -29,8 +29,7 @@ app.filter('lightenColorFilter', function() {
b: parseInt(result[3], 16)
} : null;
if (result !== null) {
var rgba = "rgba(" + color.r + "," + color.g + "," + color.b + ",0.7)";
return rgba;
return "rgba(" + color.r + "," + color.g + "," + color.b + ",0.7)";
} else {
return "#" + hex;
}

View File

@@ -31,9 +31,9 @@ app.filter('textColorFilter', function() {
b: parseInt(result[3], 16)
} : null;
if(result !== null) {
r = color.r/255;
g = color.g/255;
b = color.b/255;
var r = color.r/255;
var g = color.g/255;
var b = color.b/255;
var max = Math.max(r, g, b), min = Math.min(r, g, b);
var h, s, l = (max + min) / 2;