{"size": 1332, "ext": "js", "max_stars_repo_path": "web/js/pay_touradmin/main.js", "max_stars_repo_name": "Denis-Vasilyev/yii2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/js/pay_touradmin/main.js", "max_issues_repo_name": "Denis-Vasilyev/yii2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/js/pay_touradmin/main.js", "max_forks_repo_name": "Denis-Vasilyev/yii2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.75, "max_line_length": 65, "alphanum_fraction": 0.4489489489}
$(document).ready(function () {
    $('.js-auth-form__input').each(function () {
        if ($(this).val().length) {
            $(this).next('.auth-form__label').addClass('up');
        }
    });

    $('.js-auth-form__input').on('focus', function () {
        $(this).addClass('focus');
        $(this).next('.auth-form__label').addClass('up');
    });

    $('.js-auth-form__input').on('blur', function () {
        if ($(this).val().trim() === '') {
            $(this).next('.auth-form__label').removeClass('up');
        }
        $(this).removeClass('focus');
    });

    $('#js-open-eye').on('click', function () {
        $(this).toggleClass('active');
    });

    $('.js-validate').on('click', function () {
        if ($('input[id=email]').val().trim() === '') {
            $('#emuMessage').show();
            $('input[id=email]').addClass('error');
        }
        if ($('input[id=pwd]').val().trim() === '') {
            $('#epMessage').show();
            $('input[id=pwd]').addClass('error');
        }

    });

    $('.js-auth-form__input').on('change', function () {
        $('.js-auth-form__input').each(function () {
            if ($(this).val().length) {
                $(this).next('.auth-form__label').addClass('up');
            }
        });
    });

    $('.js-auth-form__input').change();



});