Completed
Pull Request — master (#90)
by ignace nyamagana
01:59
created

docs/custom.js   A

Complexity

Total Complexity 4
Complexity/F 1.33

Size

Lines of Code 18
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 12 2
1
$(function() {
2
    $('.versions').change(function (e) {
0 ignored issues
show
Unused Code introduced by
The parameter e is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
3
        location.href = $(this).find('option:selected').data('url');
4
    });
5
});
6
7
(function (w) {
8
  var d = w.document,
9
      headerList = d.querySelector('main').querySelectorAll("h2[id]");
10
  for (var i = 0, header, link; header = headerList[i]; ++i) {
11
    link = d.createElement("a");
12
    link.className = "header-permalink";
13
    link.title = "Permalink";
14
    link.href = "#" + header.id;
15
    link.innerHTML = "¶";
16
    header.appendChild(link);
17
  }
18
})(window);