public/js/login.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 11
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 0
c 1
b 0
f 1
nc 1
dl 0
loc 11
rs 10
wmc 3
mnd 0
bc 3
fnc 3
bpm 1
cpm 1
noi 1
1
  $(document).ready(function(){
2
        $('.log-btn').click(function(){
3
            $('.log-status').addClass('wrong-entry');
4
           $('.alert').fadeIn(500);
5
           setTimeout( "$('.alert').fadeOut(1500);",3000 );
0 ignored issues
show
introduced by
Using setTimeout with a string argument to run code is slow and may pose a security risk. Consider using a function instead.
Loading history...
6
        });
7
        $('.form-control').keypress(function(){
8
            $('.log-status').removeClass('wrong-entry');
9
        });
10
11
    });