js/authenticate.js   A
last analyzed

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
/**
2
 * Analytics
3
 *
4
 * SPDX-FileCopyrightText: 2019-2022 Marcel Scherello
5
 * SPDX-License-Identifier: AGPL-3.0-or-later
6
 */
7
8
document.addEventListener('DOMContentLoaded', function () {
9
    $('#password').on('keyup input change', function () {
10
        if ($('#password').val().length > 0) {
11
            $('#password-submit').prop('disabled', false);
12
        } else {
13
            $('#password-submit').prop('disabled', true);
14
        }
15
    });
16
});
17