autofix eslint

This commit is contained in:
Thomas Grainger 2016-11-30 11:35:16 +00:00
parent c9cbc4ab81
commit 5f3226a8f7
No known key found for this signature in database
GPG key ID: 995EA0A029283160
10 changed files with 243 additions and 245 deletions

View file

@ -160,7 +160,7 @@ const HTML = {
* @returns {html}
*/
run_parse_colour_code(input, args) {
var m = null,
let m = null,
r = 0,
g = 0,
b = 0,
@ -201,7 +201,7 @@ const HTML = {
b = Math.round(255 * (1 - y_) * (1 - k_));
}
var hsl_ = HTML._rgb_to_hsl(r, g, b),
let hsl_ = HTML._rgb_to_hsl(r, g, b),
h = Math.round(hsl_[0] * 360),
s = Math.round(hsl_[1] * 100),
l = Math.round(hsl_[2] * 100),
@ -226,7 +226,7 @@ const HTML = {
cmyk = `cmyk(${c}, ${m}, ${y}, ${k})`;
// Generate output
return `${"<div data-cyber-chef-func='colorpicker' data-rgba='" + rgba + "' id='colorpicker' style='display: inline-block'></div>" +
return `${`<div data-cyber-chef-func='colorpicker' data-rgba='${rgba}' id='colorpicker' style='display: inline-block'></div>` +
'Hex: '}${hex}\n` +
`RGB: ${rgb}\n` +
`RGBA: ${rgba}\n` +