Passed
Push — master ( e4f13f...46daff )
by Takashi
02:18
created

default.js ➔ $   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A default.js ➔ ... ➔ $(ꞌ#esa-content-body tableꞌ).each 0 7 2
1
$(function () {
2
    $('#esa-content-body .code-block pre.plaintext code').addClass('nohighlight');
3
    hljs.initHighlightingOnLoad();
0 ignored issues
show
Bug introduced by
The variable hljs seems to be never declared. If this is a global, consider adding a /** global: hljs */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
4
5
    $('#esa-content-body table')
6
        .addClass('table table-bordered table-striped')
7
        .each(function () {
8
            // decrease font-size when the number of column is 5 or more
9
            var tr = $(this).find('tr').get(0);
10
            if ($(tr).find('td, th').length >= 5) {
11
                $(this).css('font-size', '0.9em');
12
            }
13
        })
14
    ;
15
});
16