view/post/addcomment.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 12
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 12
c 0
b 0
f 0
rs 10
wmc 2
mnd 0
bc 0
fnc 2
bpm 0
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A addcomment.js ➔ myFunction 0 6 1
1
function add() {
2
    var element = document.getElementById('comments');
3
    element.classList.toggle("hide");
4
}
5
6
7
function myFunction(id) {
8
    var idid="comment" + id;
9
    console.log(idid);
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...
10
    var element = document.getElementById(idid);
11
    element.classList.toggle("hide");
12
}
13