parent
af09a65b38
commit
367ef18381
|
|
@ -105,8 +105,8 @@ function funniPrompt() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if(property === "color") {
|
if(property === "color") {
|
||||||
if(!value.startsWith("rgb(") || value.split(",").length !== 3) {
|
if(!value.startsWith("rgb(") || !value.startsWith("hsl(") || value.split(",").length !== 3) {
|
||||||
alert("Color must be in the form \"rgb(red,green,blue)\"!");
|
alert("Color must be in the form \"rgb(red,green,blue)\" or \"hsl(hue,saturation,lightness)\"!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
var checkedColorObject = rgbStringToUnvalidatedObject(value);
|
var checkedColorObject = rgbStringToUnvalidatedObject(value);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue