Passed
Push — develop ( c6dd2a...1f8334 )
by Paul
03:38
created

assets/js/credits.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 17
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
nc 1
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3
mnd 0
bc 3
fnc 3
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A credits.js ➔ css 0 6 1
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(
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
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