Passed
Push — master ( c3551c...649947 )
by Marcel
03:09
created

js/authenticate.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 9
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 3
mnd 1
bc 1
fnc 2
bpm 0.5
cpm 1.5
noi 0
1
$(document).ready(function () {
2
    $('#password').on('keyup input change', function () {
3
        if ($('#password').val().length > 0) {
4
            $('#password-submit').prop('disabled', false);
5
        } else {
6
            $('#password-submit').prop('disabled', true);
7
        }
8
    });
9
});
10