PageSourceSearch

https://www.larec-skazok.ru/bundles/user/js/appuserregister.js?1.3.3

js larec-skazok.ru collected 2026-10-02 10:27:03 UTC 2,416 bytes, 72 lines download raw bytes

1
2var appasyncadd = appasyncadd || [];
3(function(){
4    var app = {}, am = {}, self = {};
5    var loader = function(an_app){
6        app = an_app;
7        am = app.misc;
8        ap = app.misc.popup;
9        app.userregister = module;
10        self = module;
11        self.init();
12    };
13    setTimeout(function(){ appasyncadd.push(loader); }, 0);
14
15    var popup = null, form = null, busy = false;
16
17    var module = {
18        init: function(){
19            popup = $('.js_register_popup');
20            if (!popup.length) return;
21
22            form = popup.find('form');
23            form.submit(function(e){
24                e.preventDefault();
25
26                if (busy) return;
27                busy = true;
28                
29                $.fancybox.showLoading();
30                am.clearGenericFormErrors(form);
31                am.promiseCmd({
32                    method: 'user.register',
33                    first_name: form.find(".js_first_name").val(),
34                    email: form.find(".js_email").val(),
35                    password: form.find(".js_password").val(),
36                    captcha: form.find('.js_captcha').val(),
37                    is_agree: form.find(".js_is_agree:checked").val(),
38                }).always(function(){
39                    busy = false;
40                    $.fancybox.hideLoading();
41                }).done(function(res){
42                    app.get('message').done(function(message){
43                        message.alert('Спасибо! <br /> Регистрация завершена, <br /> ожидайте письмо <br /> с данными для авторизации на сайте.');
44                    });     
45                }).fail(function(err){
46                    am.showGenericFormErrors(form, err);
47                });
48            })
49
50            $('.js_call_register').click(function(e){
51                e.preventDefault();
52
53                try {
54                    yaCounter33845569.reachGoal('open_register_form');
55                } catch(e){}
56
57                var val = form.find('.js_email').val().trim();
58                if (!val) {
59                    val = $('.js_auth_popup form .js_email').val();
60                }
61                form.find('.js_email').val(val);
62
63                app.user.captcha.show();
64
65                ap.open(popup, {
66                    // minWidth: 380,
67                });
68            });
69        }
70    };
71
72})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.