{"size": 1608, "ext": "js", "max_stars_repo_path": "assets/js/checker.js", "max_stars_repo_name": "aquill/aquill", "max_stars_repo_stars_event_min_datetime": "2022-01-23T13:22:39.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T13:22:41.000Z", "max_issues_repo_path": "assets/js/checker.js", "max_issues_repo_name": "aquill/aquill", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/js/checker.js", "max_forks_repo_name": "aquill/aquill", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.9230769231, "max_line_length": 89, "alphanum_fraction": 0.5043532338}
/**
 * Checker
 * Copyright (c) 2013, Aquill Team. (MIT Licensed)
 */
(function ($) {
    $.fn.easyCheckRadio = function () {
        $(this).each(function () {
            var checked = this.checked ? ' checked icon-'+this.type : ' icon-'+this.type,
                disabled = this.disabled ? ' disabled' : '',
                type = this.type,
                name = this.name;

            var wrapper = '<div class="checker input-$1$2$3" id="name-$4"/>';

            wrapper = wrapper.replace('$1', type)
                .replace('$2', disabled)
                .replace('$3', checked)
                .replace('$4', name);

            $(this).wrap(wrapper).after('<i>').addClass('hidden');
        });
    };

    $('input[type=radio]').on('change', function () {
        $('input[name=' + this.name + ']').parent().removeClass('checked');

        if (this.checked) {
            $(this).parent().addClass('checked');
        }
    });

    $('input[type=checkbox]').on('change', function () {
        if (this.checked) {
            $(this).parent().addClass('checked');
        } else {
            $(this).parent().removeClass('checked')
        }
    });

    $('input[type=radio], input[type=checkbox]').parents('label').mouseover(function() {
        $(this).find('div').addClass('hover');
    });

    $('input[type=radio], input[type=checkbox]').parents('label').mouseout(function() {
        $(this).find('div').removeClass('hover');
    });

    $('input[type=radio], input[type=checkbox]').easyCheckRadio();

    $("select").selecter();

})(typeof jQuery !== 'undefined' ? jQuery : Zepto);