PageSourceSearch

https://www.enfield-kv.ru/local/templates/enfield_rw/components/realweb/blank/popup/script.js?17466044272170

js enfield-kv.ru collected 2026-10-01 23:58:31 UTC 2,170 bytes, 68 lines download raw bytes

1$(document).on('click', '.js-open-popup', function (e) {
2    e.preventDefault();
3    var $this = $(this);
4    $.magnificPopup.open({
5        items: {
6            src: '#' + $this.attr('data-popup'),
7            type: 'inline',
8        },
9        closeBtnInside: true,
10        closeMarkup: '<a href="javascript: void(0)" class="popup-close js-popup-close">✕</a>',
11        callbacks: {
12            open: function () {
13                adRiverCallCounter('otkrytiye_form_obratnoy_svyazi');
14            }
15        }
16    })
17});
18
19$(document).on('click', '.js-popup-close', function (e) {
20    $.magnificPopup.close();
21});
22
23$(document).on('submit', '.js-submit-form', function (e) {
24    e.preventDefault();
25    var $form = $(this),
26        data = new FormData($form[0]);
27
28    $.ajax({
29        type: "POST",
30        dataType: 'json',
31        url: "/local/ajax/form.php",
32        contentType: false,
33        processData: false,
34        data: data,
35        beforeSend: function () {
36            BX.closeWait();
37            BX.showWait();
38        }
39    }).done(function (response) {
40        $form.find('.js-response').html('<div class="alert mt-3 alert-' + (response.code === 'ok' ? 'success' : 'danger') + '">' + response.text + '</div>');
41        BX.closeWait();
42        var params = {};
43        if ($form.find('[name="name"]').length) {
44            params.first_name = $form.find('[name="name"]').val();
45        } else if ($form.find('[name="name[0]"]').length) {
46            params.first_name = $form.find('[name="name[0]"]').val();
47        }
48        if ($form.find('[name="name[1]"]').length) {
49            params.last_name = $form.find('[name="name[1]"]').val();
50        }
51        if ($form.find('[name="phone"]').length) {
52            params.phone_number = $form.find('[name="phone"]').val();
53        }
54        if ($form.find('[name="email"]').length) {
55            params.email = $form.find('[name="email"]').val();
56        }
57        if (response.code === 'ok') {
58            ymFirstPartyParams(params);
59            adRiverCallCounter('zayavka_s_sayta');
60        }
61        try {
62            grecaptcha.reset();
63        } catch (e) {
64        }
65    });
66
67    return false;
68});

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.