PageSourceSearch

https://auraf.ru/bitrix/templates/aura-flowers-new/js/buy/speedBuy.js

js auraf.ru collected 2026-10-07 17:01:23 UTC 1,437 bytes, 53 lines download raw bytes

1function showResponse(responseText, statusText, xhr, $form) {
2    obj = jQuery.parseJSON(responseText);
3    if (obj.result == 0) {
4        $('#speedForm').html("<div class='ok'>Запрос успешно отправлен !</div> ");
5
6    } else {
7
8        var str = "Ошибки:<br />";
9        var length = obj.data.length;
10        for (var i = 0; i < length; i++) {
11            str = str + obj.data[i] + "<br />";
12        }
13        $("#errorsContainter").html(str);
14    }
15}
16
17function sendform() {
18    $('#errorsContainter').html('<img src="<?=SITE_TEMPLATE_PATH;?>/resources/img/fancybox_loading.gif');
19    $("#orderForm").ajaxForm({
20        success:showResponse
21    }).submit();
22}
23
24
25$(document).ready(function () {
26
27    $('#speedForm input').keypress(function (e) {
28        if (e.which == 13) {
29            sendform();
30        }
31    });
32
33    $('#speedForm #buttonSubmit').click(function () {
34        sendform();
35    });
36
37    $(".fancyboxAjax").fancybox(
38        {
39            type:"ajax",
40            padding:0,
41            'speedIn':500,
42            'speedOut':300
43        }
44    )
45
46    //Указывается параметры заказа для popup
47    productPrice = $("#product-data").attr('data-price');
48    productImg = $("#product-data").attr('data-img-url');
49    $('#cardProductPrice').html(productPrice);
50    $('#cardProductImg img').attr('src', productImg);
51    console.log('productPrice: ' + productPrice);
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.