This file contains 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
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset='UTF-8'> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0'> | |
<meta http-equiv='X-UA-Compatible' content='ie=edge'> | |
<link rel='icon'> | |
<title>Countdown</title> | |
</head> | |
<body> |
This file contains 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
ng build <options...> | |
Builds your app and places it into the output path (dist/ by default). | |
aliases: b | |
--target (String) (Default: development) Defines the build target. | |
aliases: -t <value>, -dev (--target=development), -prod (--target=production), --target <value> | |
--environment (String) Defines the build environment. | |
aliases: -e <value>, --environment <value> | |
--output-path (Path) Path where output will be placed. | |
aliases: -op <value>, --outputPath <value> | |
--aot (Boolean) Build using Ahead of Time compilation. |
This file contains 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
// r = (l + 0.05) / (d + 0.05) | |
function contrastRatio(luminanceLight, luminanceDark) { | |
return (luminanceLight + 0.05) / (luminanceDark + 0.05); | |
} | |
// l = r * (d + 0.05) - 0.05 | |
function luminanceLight(contrastRatio, luminanceDark) { | |
return contrastRatio * (luminanceDark + 0.05) - 0.05; | |
} | |
// d = (l + 0.05) / r - 0.05 | |
function luminanceDark(contrastRatio, luminanceLight) { |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<meta name="viewport" content="initial-scale=1.0, width=device-width"> | |
<title>Stringify</title> | |
<style> | |
@font-face { | |
font-family: "system-monospace"; |