Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 17 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | (function() { |
||
2 | var css = function( args ) { |
||
3 | var string = "font-size:{0};color:{1};padding:{2};line-height:24px;text-shadow:0 1px #000;background:#263238;text-decoration:none;"; |
||
4 | return string.replace( /{(\d+)}/g, function( match, number ) { |
||
5 | return args[ number ]; |
||
6 | }); |
||
7 | }; |
||
8 | console.log( |
||
|
|||
9 | "\n%cSite made with %c♥ %cby Paul Ryley\n%chttps://twitter.com/pryley\n%chttps://geminilabs.io%c\n\n", |
||
10 | css(['12px', '#fff', '8px 0 8px 10px']), |
||
11 | css(['12px', '#f44336', '8px 0']), |
||
12 | css(['12px', '#fff', '8px 10px 8px 0']), |
||
13 | css(['11px', '#90caf9', '5px']), |
||
14 | css(['11px', '#90caf9', '8px 5px']), |
||
15 | "" |
||
16 | ); |
||
17 | }()); |
||
18 |