Fix some code style issues
This commit is contained in:
@@ -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;
|
||||
};
|
||||
});
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user