Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / http-proxy / node_modules / colors / example.html
1 <!DOCTYPE HTML>
2 <html lang="en-us">
3   <head>
4     <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5     <title>Colors Example</title>
6     <script src="colors.js"></script>
7   </head>
8   <body>
9     <script>
10
11     var test = colors.red("hopefully colorless output");
12
13     document.write('Rainbows are fun!'.rainbow + '<br/>');
14     document.write('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
15     document.write('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
16     //document.write('zalgo time!'.zalgo);
17     document.write(test.stripColors);
18     document.write("a".grey + " b".black);
19
20     document.write("Zebras are so fun!".zebra);
21
22     document.write(colors.rainbow('Rainbows are fun!'));
23     document.write("This is " + "not".strikethrough + " fun.");
24
25     document.write(colors.italic('So ') + colors.underline('are') + colors.bold(' styles! ') + colors.inverse('inverse')); // styles not widely supported
26     document.write(colors.bold(colors.italic(colors.underline(colors.red('Chains are also cool.'))))); // styles not widely supported
27     //document.write(colors.zalgo('zalgo time!'));
28     document.write(colors.stripColors(test));
29     document.write(colors.grey("a") + colors.black(" b"));
30
31     colors.addSequencer("america", function(letter, i, exploded) {
32       if(letter === " ") return letter;
33       switch(i%3) {
34         case 0: return letter.red;
35         case 1: return letter.white;
36         case 2: return letter.blue;
37       }
38     });
39
40     colors.addSequencer("random", (function() {
41       var available = ['bold', 'underline', 'italic', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
42
43       return function(letter, i, exploded) {
44         return letter === " " ? letter : letter[available[Math.round(Math.random() * (available.length - 1))]];
45       };
46     })());
47
48     document.write("AMERICA! F--K YEAH!".america);
49     document.write("So apparently I've been to Mars, with all the little green men. But you know, I don't recall.".random);
50
51     //
52     // Custom themes
53     //
54
55     colors.setTheme({
56       silly: 'rainbow',
57       input: 'grey',
58       verbose: 'cyan',
59       prompt: 'grey',
60       info: 'green',
61       data: 'grey',
62       help: 'cyan',
63       warn: 'yellow',
64       debug: 'blue',
65       error: 'red'
66     });
67
68     // outputs red text
69     document.write("this is an error".error);
70
71     // outputs yellow text
72     document.write("this is a warning".warn);
73
74     </script>
75   </body>
76 </html>