PageSourceSearch

https://deltel.ru/local/templates/altermax/js/main.js?17710778141903

js deltel.ru collected 2026-10-04 12:48:52 UTC 1,903 bytes, 54 lines download raw bytes

1jQuery(document).ready(function() {
2    "use strict";
3
4
5refreshMiniCart('#minicart-ajax-rfsh','/ajax/basketAjax.php');
6
7    function refreshMiniCart(miniCartBoxId,actionPath){
8        //обновление миникорзины
9        if(miniCartBoxId && jQuery(miniCartBoxId).length>0){
10          //console.info('upt_set2');
11          //отлавливаем событие
12          jQuery(miniCartBoxId).on('refreshcart',function(){
13            //console.info('upt_do');
14            //отправим обычный ajax
15            var data = {}
16            data.action = 'refresh';
17      
18            jQuery.ajax({
19              url: actionPath,
20              type: 'POST',
21              data: data,
22              success:function(data){
23                jQuery(miniCartBoxId).html(data);
24              }
25            });
26          });
27        }
28      }
29
30
31      //$('#minicart-ajax-rfsh').trigger('refreshcart');
32      
33
34
35    $(document).on('click', '.captcha_reload', function(e){
36        var captcha = $(this).parents('.captcha-row');
37        e.preventDefault();
38        $.ajax({
39            url: '/ajax/captcha.php'
40        }).done(function(text){
41            if(captcha.find('input[name=captcha_sid]').length){
42                captcha.find('input[name=captcha_sid]').val(text);
43                captcha.find('img').attr('src', '/bitrix/tools/captcha.php?captcha_sid=' + text);
44            }
45            else if(captcha.find('input[name=captcha_code]').length){
46                captcha.find('input[name=captcha_code]').val(text);
47                captcha.find('img').attr('src', '/bitrix/tools/captcha.php?captcha_code=' + text);
48            }
49            captcha.find('input[name=captcha_word]').val('').removeClass('error');
50            captcha.find('.captcha_input').removeClass('error').find('.error').remove();
51        });
52    });
53
54})

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.