Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

src/htdocs/js/login.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2
mnd 1
bc 1
fnc 1
bpm 1
cpm 2
noi 1
1
/**
2
 * Inject CSS into the Twitter Feed iframe once it has loaded
3
 * to change the styling of the iframe scrollbar.
4
 */
5
function tryInject() {
6
	var widget = $("iframe#twitter-widget-0");
7
	if (widget.length == 0) {
0 ignored issues
show
Best Practice introduced by
Comparing widget.length to 0 using the == operator is not safe. Consider using === instead.
Loading history...
8
		// If the iframe hasn't loaded yet, rerun this function again before
9
		// the next repaint.
10
		window.requestAnimationFrame(tryInject);
11
	} else {
12
		// Inject scrollbar CSS into the iframe (webkit only).
13
		widget.contents().find('head').append('<style>::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.8); border-radius: 10px; } ::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(128,200,112,1); }</style>');
14
		// Unhide the twitter feed element.
15
		$("td#twitter-feed").removeClass("hide");
16
	}
17
}
18
19
tryInject();
20