mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 19:10:10 +00:00
20 lines
745 B
HTML
20 lines
745 B
HTML
<!DOCTYPE HTML>
|
|
<html lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
<title>Colors Example</title>
|
|
<script src="colors.js"></script>
|
|
<script type="text/javascript">
|
|
console.log('Rainbows are fun!'.rainbow);
|
|
console.log('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse);
|
|
console.log('Chains are also cool.'.bold.italic.underline.red);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
document.write('Rainbows are fun!'.rainbow + '<br>');
|
|
document.write('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse + '<br>');
|
|
document.write('Chains are also cool.'.bold.italic.underline.red);
|
|
</script>
|
|
</body>
|
|
</html> |