PageSourceSearch

https://dposs.ru/static/client_requests/js/requests.js

js dposs.ru collected 2026-10-09 22:44:17 UTC 1,697 bytes, 48 lines download raw bytes

1/**
2 * Created by Mike86k on 16.06.2014.
3 */
4$(function(){
5    var request = null;
6//    var $form = $('.js-consultation-request');
7
8    $('.js-consultation-request').each(function(){
9        var $form = $(this);
10        $form.find('input[name=phone]').mask("+d (ddd) ddd-dd-dd",{placeholder:"_"});
11        $form.validate({
12            rules: {
13                name: {required: true},
14                phone: {required: true}
15            },
16            errorPlacement: function(){}
17        });
18
19        $form.on('submit', function(event){
20            event.preventDefault();
21            if( $form.valid() ){
22                if( request ) request.abort();
23                request = $.ajax({
24                    url: $form.prop('action'),
25                    data: $form.serialize(),
26                    type: 'post',
27                    before: function(){
28                        $form.find('input, textarea, select').prop('disabled', true);
29                    },
30                    complete: function(){
31                        $form.find('input, textarea, select').prop('disabled', false);
32                    },
33                    success: function(response){
34                        $form.hide().next('.consultation-request-thanks').show();
35                        yaCounter29458435.reachGoal('callback_call');
36                        console.log('ya reach goal callback_call');
37                    },
38                    error: function(){
39                        alert('Извените произошла ошибка.\nПовторите попытку позже или свяжитесь снами.');
40                    }
41                });
42            }
43        });
44    });
45
46
47
48});

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.