{"size": 681, "ext": "js", "max_stars_repo_path": "app/components/widget/captcha/captcha.directive.js", "max_stars_repo_name": "hongduclam/nametests", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/components/widget/captcha/captcha.directive.js", "max_issues_repo_name": "hongduclam/nametests", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/components/widget/captcha/captcha.directive.js", "max_forks_repo_name": "hongduclam/nametests", "max_forks_repo_forks_event_min_datetime": "2022-03-10T11:18:17.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-10T11:18:17.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.9677419355, "max_line_length": 78, "alphanum_fraction": 0.4552129222}
(function () {
    'use strict';

    angular
        .module('lnc.widget')
        .directive('captcha', captcha);

    function captcha() {
        return {
            restrict: 'EA',
            replace: true,
            scope: {},
            templateUrl: 'components/widget/captcha/captcha.html',
            link: linkFunc
        };

        ////////////////

        function linkFunc(scope) {
            scope.captcha = '/captcha';
            scope.refresh = refresh;
            scope.$on('reload.captcha', refresh);

            function refresh() {
                scope.captcha = '/captcha?_t=' + new Date().getMilliseconds();
            }
        }
    }
})();

