This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function lightOrDark(color) { | |
| // Check the format of the color, HEX or RGB? | |
| if (color.match(/^rgb/)) { | |
| // If HEX --> store the red, green, blue values in separate variables | |
| color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/); | |
| r = color[1]; | |
| g = color[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules | |
| dist/ | |
| yarn.lock | |
| wwwroot |