PageSourceSearch

https://shukino.ru/wp-content/themes/moshukino/js/order-complete.js?ver=312b62cb33e9

js shukino.ru collected 2026-10-02 21:34:52 UTC 2,167 bytes, 53 lines download raw bytes

1jQuery( function( $ ){
2    function send_data_from_ajax(){
3        if (jQuery('#delivery').is(':checked')) {
4            var delivery = 1;
5        } else {
6            var delivery = 0;
7        }
8        if (jQuery('#montazh').is(':checked')) {
9            var montazh = 1;
10        } else {
11            var montazh = 0;
12        }
13        var tel = jQuery('#tel').val();
14        var name = jQuery('#name').val();
15        var agreem = jQuery('#product__agreement').val();
16        var name_product = jQuery('.card__title').text()
17        console.log(agreem, tel, name);
18        console.log(jQuery('#product__agreement').prop('checked'));
19
20        if (jQuery('#product__agreement').prop('checked') == true & tel != '' && name != '') {
21            console.log("Всё отмечено");
22            $.ajax({
23                url : ajax_obj.ajaxurl, // обработчик
24                data : {
25                    action: 'complete_order',
26                    del: delivery,
27                    mon: montazh,
28                    telephone: tel,
29                    n: name,
30                    nprod: name_product
31                }, // данные
32                type : 'POST', // тип запроса
33                success : function( data ){
34                    console.log("Успешно");
35                    jQuery('#response').text("Сообщение было успешно отправлено.");
36                    document.getElementById('response').className = "";
37                    document.getElementById('response').classList.add('response-success');
38                },
39                error : function(error){ console.log(error) }
40            });
41        } else {
42            console.log("Не отмечен чекбокс");
43            jQuery('#response').text("Пожалуйста, проверьте корректность введённых вами данных.");
44            document.getElementById('response').className = "";
45            document.getElementById('response').classList.add('response-error');
46        }
47        return;
48    }
49
50    $('#send-form').on('click', function() {
51        send_data_from_ajax();
52    });
53});

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.