PageSourceSearch

https://xn-----elccma2alvfb1aefxq2a9i.xn--p1ai/js/js.init.js?v=1791087627

js xn-----elccma2alvfb1aefxq2a9i.xn--p1ai collected 2026-10-04 04:20:41 UTC 34,070 bytes, 814 lines download raw bytes

1
2//var NavigationCache = new Array(); //кэш
3$(document).ready(function(){init()});
4function scrolto(to){
5    if(to)
6        $('body,html').animate({
7            scrollTop: to
8        }, 2000);
9}
10function hide_images(){
11    if(!$('body').hasClass('hide_images')){
12      //  alert('hide_images');
13        $('body').addClass('hide_images')
14        $('img:visible').each(function(e){
15            console.log(this);
16            if(typeof $(this).attr('alt') !== 'undefined' && $(this).attr('alt').length > 0)
17            $(this).after("<div class='dib alt_image' style='width:"+$(this).width()+"px;height:"+$(this).height()+"px;'><span>"+$(this).attr('alt')+"</span></div>");
18            if(!$(this).hasClass('doc_icon')){
19                $(this).addClass('hidden_f_scrpt')
20            }
21        })
22    }
23}
24function show_images(){
25   // alert('show_images');
26    $('body').removeClass('hide_images')
27    $('img.hidden_f_scrpt').removeClass('hidden_f_scrpt');
28    $('.alt_image').remove();
29}
30function init_like_buttons(){
31  console.log('init_like_buttons()');
32    $('.like_button').unbind();
33    $('.like_button').on('click',function(){
34      var $type = $(this).data('type');
35      var $element_id = $(this).data('element_id');
36      var $data = {like:'set_like',is_ajax:'1',type:$type,element_id:$element_id};
37      // console.log($data);
38      //delay_method("check date", function(){send_ajax(2);});
39      $.ajax({
40         url:'',
41         type: 'get',
42         dataType: "json",
43         data: $data,
44         //timeout: 2000,
45         cache: false,
46         success: function (data, status, XHR) {
47             if(typeof data == 'object' && data  != null){
48               console.log(data);
49               $('.like_button[data-element_id="'+$element_id+'"]').addClass('is_liked');
50               if(typeof data.script !='undefined'){
51                 eval(data.script);
52               }
53               if(typeof data.message == 'string' && data.message != ''){
54                 create_popup('like_ok_'+$type+$element_id,data.message);
55                 show_popup('like_ok_'+$type+$element_id);
56               }
57               // if(typeof data.console.error();!='undefined'){
58               //   create_popup('like_error_'+$type+$element_id,data.message);
59               // }
60
61             }else{}
62         },
63         complete: function (data) {
64             //console.log(data);
65              },
66         error: function (data) {
67             //$(this).after(data.responseText);
68             console.error(data);
69         }
70     });
71    });
72
73}
74function clear_form(form){
75    console.log('clear_form()');
76    if(form !== undefined){
77        form.find('input[type="text"]').val('');
78        form.find('input[type="email"]').val('');
79        form.find('input[type="number"]').val('');
80        form.find('input[type="checkbox"]').removeAttr('checked');
81        form.find('textarea').val('');
82        form.find('[data-default_value]').each(function(){
83            $(this).val($(this).data('default_value'));
84        });
85    }
86}
87function check_gorizont_spoiler_menu(){
88  var $ul = $('nav ul.ul_lvl_1');
89  if($ul.length){
90    console.log($ul.height());
91    if($ul.height()<51){
92      $('#gorizont_spoiler_menu_but').hide()
93    }else{
94      $('#gorizont_spoiler_menu_but').show()
95
96    }
97  }
98}
99function init_bind(){
100console.log('init_bind()');
101  //It is function event showing navigation (event onclick) ...end comment
102    var btn = document.getElementById('js-btn-showing-nav'); //get button for event
103    if(btn){
104      $('.js-btn-showing-nav').unbind();
105        btn.addEventListener('click', function(){
106          console.log('addEventListener');
107            if($('#G_MENU').find('ul').css('display') == 'block'){
108                $('#G_MENU').find('.ul_lvl_1').css('display', 'none');
109            }else{
110                $('#G_MENU').find('.ul_lvl_1').css('display', 'block');
111            }
112        });
113    }
114    check_gorizont_spoiler_menu();
115    $('#gorizont_spoiler_menu_but').unbind();
116    $('#gorizont_spoiler_menu_but').on('click',function(){
117      var ul = $(this).next('.wrap_ul_nav');
118      ul.toggleClass('max_height_50');
119      $(this).find('.fa').toggleClass('fa-angle-up fa-angle-down');
120    });
121    $('.cookies-alert .my_btn').unbind();
122    $('.cookies-alert .my_btn').on('click',function(){
123        $('.cookies-alert').slideUp(364);
124        setCookie('agree_cookie',1,{'path':'/','max-age':9999999});
125        return false;
126    })
127    $('.open_close_handler').unbind();
128    $('.open_close_handler').on('click',function(event){
129        event.preventDefault ? event.preventDefault() : (event.returnValue=false);
130        var what = $(this).data('what')
131        if($(this).hasClass('opened')){
132            $(what).slideUp(364);
133        }else{
134            $(what).slideDown(364);
135        }
136        $(this).toggleClass('opened');
137    })
138    $('.scrolto').unbind();
139    $('.scrolto').click(function(event){
140        var el = "#"+$(this).attr('href').slice(1)+"";
141        console.log($(el));
142        scrolto($(el).offset().top);
143        event.preventDefault ? event.preventDefault() : (event.returnValue=false);
144        return false;
145    });
146     /* одна высота блоков*/
147    var elements_s = '.elements .element .title';
148    $(elements_s).height(get_max_height(elements_s));
149     elements_s = '.worker_post_mini';
150    $(elements_s).height(get_max_height(elements_s));
151     /* одна высота блоков*/
152
153   /*ajax calendar*/
154    $('.block_type_calendar .title a').unbind();
155    $('.block_type_calendar .title a').on('click',function(event){
156        console.log('block_type_calendar');
157        var m = $(this).data('month'), y = $(this).data('year'),url = $(this).data('url');
158         $.ajax({
159            url: url,
160            type: 'get',
161            dataType: "json",
162            data: {month:m,year:y},
163            //timeout: 2000,
164            cache: false,
165            success: function (data, status, XHR) {
166                if(typeof data == 'object' && data  != null){
167                    if(data.return_text){
168                         $('.block_type_calendar .text').html(data.return_text);
169                         init_bind();
170                    }
171
172                }else{}
173            },
174            complete: function (data) {
175                //console.log(data);
176                 },
177            error: function (data) {
178                //$(this).after(data.responseText);
179                console.error(data);
180            }
181        });
182        event.preventDefault ? event.preventDefault() : (event.returnValue=false);
183    })
184    /*ajax calendar*/
185       if (typeof $.fn.mask == 'function') {
186        $("input.datepicker_mask").unbind();
187        $("input.datepicker_mask").mask("99.99.9999");
188        $("input.number_phone").unbind();
189        $("input.number_phone").mask("+7 999 9999999");
190    }
191    if (typeof $.fn.datepicker == 'function') {
192        $('input.datepicker').unbind();
193        $('input.datepicker').datepicker({weekStart:1});
194    }
195    $('.plus_kolvo').unbind();
196    $('.plus_kolvo').on('click',function(event){
197        var input = $(this).parent().find('input');
198        input.val(parseInt(input.val())+1);
199        input.click();
200        event.preventDefault ? event.preventDefault() : (event.returnValue=false);
201        return false;
202   })
203   $('.minus_kolvo').unbind();
204   $('.minus_kolvo').on('click',function(event){
205      var input = $(this).parent().find('input');
206      var newval  = parseInt(input.val())-1;
207      if(newval > 0)
208          input.val(newval);
209      input.click();
210      event.preventDefault ? event.preventDefault() : (event.returnValue=false);
211      return false;
212   })
213
214
215
216    /*$('a [type="pretty"]').unbind();
217    $('a [type="pretty"]').colorbox({rel:'pretty',maxHeight:'95%',maxWidth:'95%'});
218    $('a.colorbox').unbind();
219    $('a.colorbox').colorbox({rel:'pretty2',maxHeight:'95%',maxWidth:'95%'});
220    $(".youtube").unbind();
221    $(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390,maxHeight:'95%',maxWidth:'95%'});*/
222     //if(typeof imageLightbox != 'undefined')
223    $('.colorbox').imageLightbox({
224            selector:       'id="imagelightbox"',   // string;
225            allowedTypes:   'png|jpg|jpeg|gif',     // string;
226            animationSpeed: 250,                    // integer;
227            preloadNext:    true,                   // bool;            silently preload the next image
228            enableKeyboard: true,                   // bool;            enable keyboard shortcuts (arrows Left/Right and Esc)
229            quitOnEnd:      true,                  // bool;            quit after viewing the last image
230            quitOnImgClick: false,                  // bool;            quit when the viewed image is clicked
231            quitOnDocClick: true,                   // bool;            quit when anything but the viewed image is clicked
232            onStart:        false,                  // function/bool;   calls function when the lightbox starts
233            onEnd:          false,                  // function/bool;   calls function when the lightbox quits
234            onLoadStart:    false,                  // function/bool;   calls function when the image load begins
235            onLoadEnd:      false                   // function/bool;   calls function when the image finishes loading
236        });
237
238    $('a[href^="#"]').unbind();
239    $('a[href^="#"]').click(function(event){
240        event.preventDefault ? event.preventDefault() : (event.returnValue=false);
241        var el = "[name='"+$(this).attr('href').slice(1)+"']";
242        if(!$(el).eq(0).length){
243            var el = "#"+$(this).attr('href').slice(1)+"";
244        }
245        if($(el).eq(0).length){
246            console.log('Крутим к элементу '+el+' до позиции '+$(el).eq(0).offset().top);
247            scrolto($(el).eq(0).offset().top);
248        }//return false;
249    });
250  if($('.form-search button').length){
251    inp_submit = $('.form-search button');
252    var s = 'Поиск ...';
253    inp_submit.attr("disabled" , "disabled");
254    $('.form-search  input.search_input').attr("value" , s);
255    $('.form-search  input.search_input').focus(function(){
256        this.value = '';
257        inp_submit.removeAttr('disabled');
258    }).blur(function(){
259        if(this.value == ''){
260            this.value = s;
261            inp_submit.attr("disabled" , "disabled")
262    ;}});
263    $('#r_search').click(function(){
264        $('.form-search .hide').toggle(200);
265        return false;
266    })
267}
268}
269
270function init(){
271    init_bind();
272
273
274    //digitalWatch();//запустить часы
275
276
277    /*if($('.block_type_gallery').length){
278        setInterval(function(){
279            load_content(window.location.href,'get_bblock=gallery',function(text){
280                $('.block_type_gallery .text').html(text);
281             });
282        },15000)
283    }*/
284
285    var element = $("#scrolltop"), display;
286      $(window).scroll(function () {
287        display = $(this).scrollTop() >= 200;
288        if(!display){
289            element.stop().animate({ 'bottom':'-50px'}, 500);
290        }else{
291            element.stop().animate({ 'bottom':'0'}, 500);
292        }
293      });
294     $('#scroltop').click(function () {
295            scrolto(1);
296            return false;
297        })
298
299
300    /*Анимация*/
301    if (typeof waypoint == 'function') {
302    $('.animated').each(function(e){
303
304        var delay = $(this).data('an_delay')||0,
305            an_class = $(this).data('an_class'),
306            type = '',
307            //type = $(this).data('an_type'),
308            direction = $(this).data('an_direction'),
309            th = this,
310            rand_class = str_rand(5);
311            $(this).addClass(rand_class+'');
312        switch (type){
313            case 'on_visible':
314                //console.log('type:on_visible');
315
316                    //setTimeout()
317            break
318        default:
319            $(this).waypoint(function (direction) {
320                    //console.log('delay:'+delay);
321                    setTimeout(function(){
322                        //console.log(arguments);
323                        $('.'+arguments[0]).removeClass('op0').addClass(arguments[1])
324                    },delay,rand_class,an_class)
325                    $(this).waypoint('destroy');
326                    //$(this).delay().addClass(an_class+' delay_'+delay).waypoint('destroy');
327                }, {
328                    offset: function () {
329                        switch (direction) {
330                            case 'top': return $.waypoints('viewportHeight') - $(this).height(); break;
331                            case 'bottom': return $.waypoints('viewportHeight'); break;
332                            default: return $.waypoints('viewportHeight') - Math.min($(this).height() / 2, 150); break; //** Left or right
333                        }
334                    }
335               })
336            break
337
338
339        }
340
341    })
342    }
343      alignCenter($('.popup')); // центрировали окно
344      $(window).on('resize scroll',function() {
345        alignCenter($('.popup')); // центрирование при ресайзе окна
346        check_gorizont_spoiler_menu();
347      })
348      $('#hide-layout').click(function() {
349        hide_popup();
350      })
351      $('.callback').click(function() {
352        show_popup('callback_popup');
353      })
354      $('.login_popup').click(function() {
355        show_popup('login_popup');
356        return false;
357      })
358
359
360
361    if($('.ya_zalip').length){
362        var ya_z = {}
363        var obsh_h = 20;
364        $('.ya_zalip').each(function(e){
365            ya_z[e] = (this),
366            ya_z['t'+e] = ya_z[e].getBoundingClientRect().top - document.documentElement.getBoundingClientRect().top; // отступ от верхнего края окна браузера до элемента
367            ya_z['h'+e] = obsh_h;
368            ya_z['h_orig'+e] = $(ya_z[e]).height();
369            ya_z['w'+e] =  $(ya_z[e]).width();
370            obsh_h = obsh_h + $(ya_z[e]).height();//+20;
371            ya_z['h2'+e] = obsh_h;
372            $(ya_z[e]).after('<div class="zam_bl zam_bl'+e+'" style="display:none;height:'+($(ya_z[e]).height())+'px"></div>')
373        //console.log(ya_z);
374       })
375       $(window).on('scroll resize',function(e) {
376         var window_h = $(window).height();var may_be_shoed = true;
377           $('.ya_zalip').each(function(e){
378               var t = ya_z['t'+e]-ya_z['h'+e]-20
379               if(e == 0){t = t+40}
380               if($(ya_z[e]).hasClass('h_max30p')){
381                 if(ya_z['h_orig'+e] < parseInt(window_h / 3.8)){//_orig
382                    may_be_shoed = true;
383                 }else{ may_be_shoed = false;}
384               }
385                // console.log(ya_z['t'+e]);
386            if(t < window.pageYOffset && may_be_shoed){
387              $(ya_z[e]).addClass('sticky1');
388                if(!$(ya_z[e]).hasClass('top0')){
389                  $(ya_z[e]).css('top',ya_z['h'+e]);
390                }
391                if($(ya_z[e]).hasClass('fix_width')){
392                  $(ya_z[e]).width(ya_z['w'+e]);
393                }
394                $('.zam_bl'+e).show();
395                //$('#wrapper').css('margin-top',$(for_sticky).height());
396            }else{
397                $(ya_z[e]).removeClass('sticky1').css('top',0);
398                $('.zam_bl'+e).hide();
399            }
400            })
401       })
402    }
403    if($('.for_sticky').length){
404    var for_sticky  = document.querySelector('.for_sticky'), t0 = for_sticky.getBoundingClientRect().top - document.documentElement.getBoundingClientRect().top; // отступ от верхнего края окна браузера до элемента
405    // window.pageYOffset - прокрутка веб-документа
406    $(window).on('scroll',function(e) {
407        if(t0-00 < window.pageYOffset){
408            $('.for_sticky').addClass('sticky');
409            if($('.container.top_slider').length){
410                $('.container.top_slider').css('padding-top',$(for_sticky).height()-20);
411            }else{
412                $('.container.wrapper').css('padding-top',$(for_sticky).height()-20);
413            }
414        }else{
415            $('.for_sticky').removeClass('sticky');
416            if($('.container.top_slider').length){
417                $('.container.top_slider').css('padding-top',20);
418            }else{
419                $('.container.wrapper').css('padding-top',20);
420            }
421        }
422    })}
423    if($('#top_line').length){
424    var top_line  = document.querySelector('#top_line'), t1 = top_line.getBoundingClientRect().top - document.documentElement.getBoundingClientRect().top; // отступ от верхнего края окна браузера до элемента
425    // window.pageYOffset - прокрутка веб-документа
426    $(window).on('scroll',function(e) {
427        if(t1 < window.pageYOffset){
428            $('#top_line').addClass('sticky');
429            $('.header').css('margin-top',$(top_line).height());
430        }else{
431            $('#top_line').removeClass('sticky');
432            $('.header').css('margin-top',0);
433        }
434    })}
435    if($('.spoiler').length){
436        $('.spoiler').each(function(){
437            var sp_title = $(this).data('title') || 'Развернуть';
438            $(this).hide().after("<p class='toggle_spoiler'><span>"+sp_title+"</span></p>");
439        })
440        $('.toggle_spoiler').on({
441            'click':function(){
442                var spoiler = $(this).prev('.spoiler');
443                console.log(spoiler.is(':visible'));
444                if(spoiler.is(':visible')){
445                    $(this).find('span').text(spoiler.data('title') || 'Развернуть')
446                    spoiler.slideUp(300);
447                }   else{
448                    $(this).find('span').text("Свернуть")
449                    spoiler.slideDown(300);
450
451                }
452            }
453        })
454
455    }
456
457    $('#scrolltop').click(function () {
458            $('body,html').animate({
459                scrollTop: 0
460            }, 800);
461            return false;
462        });
463
464     $("img").error(function(){
465            $(this).hide();
466        });
467
468
469    //$(".chosen").chosen({no_results_text: "Нет результатов",allow_single_deselect: true,disable_search_threshold: 10});
470
471/*
472
473    $('.aside_menu > div > ul > li').hover(
474        function () {
475           var side = $(this).parents('aside').attr('id') ;
476           var p = $(this).position();
477           d(side);
478           var to_left_p = (p.left + $(this).width()+60);
479           if(side == 'right') to_left_p = p.left- $(this).children('ul').width()+20;
480
481           $(this).children('ul').css({
482                'top' : p.top,
483                'left' : to_left_p
484                }).stop(1,true).slideDown(300);
485        },
486        function () {
487            $('ul', this).stop(false,0).slideUp(200);
488        }
489    );*/
490    $('nav  ul.ul_lvl_1 > li').hover(
491        function () {
492            if($(this).parents('nav').hasClass('none')){
493                return false;
494            }
495            var p = $(this).position();
496            $(this).children('ul').css({
497                'top' : p.top+6,
498                'left' : p.left
499                //}).stop(1,true).slideDown(100).css('overflow','visible');
500                }).stop(1,true).slideDown(100);
501        },
502        function () {
503            $('ul', this).stop(false,0).slideUp(300);
504        }
505    );
506    $('nav > div > ul > li > ul > li').hover(
507        function () {
508            var p = $(this).position();
509            var w = $(this).parents('ul').width();
510            var pp = $(this).parents('ul').position();
511            var ww = $(window).width();
512            console.log(pp);
513            console.log(ww);
514            if(pp.left > ww/2){
515               $(  this).children('ul').css({
516                'top' : p.top-10,
517                'right' : p.left+w
518                }).stop(1,0).show(000);
519            }else{
520                $(  this).children('ul').css({
521                'top' : p.top-10,
522                'left' : p.left+w
523                }).stop(1,0).show(000);
524            }
525        },
526        function () {
527            $('ul', this).stop(1,0).hide(000);
528        }
529    );
530
531}
532
533function digitalWatch() {
534    var date = new Date();
535    var hours = date.getHours();
536    var minutes = date.getMinutes();
537    var seconds = date.getSeconds();
538    if (hours < 10) hours = "0" + hours;
539    if (minutes < 10) minutes = "0" + minutes;
540    if (seconds < 10) seconds = "0" + seconds;
541    document.getElementById("digital_watch").innerHTML = hours + ":" + minutes + ":" + seconds;
542    setTimeout("digitalWatch()", 1000);
543  }
544
545function load_more_albums(last,type) {
546        if (typeof last !=="undefined") {
547            if (typeof type !=="undefined") {
548                if($('.show_more a').hasClass('disabled'))return;
549                $('.show_more a').addClass('disabled');
550                $.ajax({
551                    url: '?get_gallery_albums',
552                    type:  'post',
553                    dataType: "json",
554                    data: {'last':last,'type':type},
555                    //timeout: 2000,
556                    cache: false,
557                    context: this,
558                    success: function (data, status, XHR) {
559                        console.log(data);
560                        console.log($(this));
561
562                        if(typeof data == 'object'){
563                            if(data.return_text.length){
564                                $('#content_gallery').find('.show_more').last().before(''+data.return_text+'');
565                                $('#content_gallery').find('.show_more').last().remove();
566                            }else{
567                                $('#content_gallery').find('.show_more').remove();
568
569                            }
570                            if(isnull(data.script)){
571                                eval(data.script);
572                            }
573
574                        }else{}
575                    },
576                    complete: function (data) {
577                        console.log(data); },
578                    error: function (data) {
579                        //$(this).after(data.responseText);
580                        console.error(data);
581                    }
582                });
583            }
584            return;
585        }
586    }
587function to_cart(id,price){
588    if(typeof(id) != 'undefined'){
589        var _post = '';
590        var count  = $('.element[data-id='+id+']').find('.colvo').val();
591        if($('.pickings_block tr.active').length)
592        var pkey =$('.pickings_block tr.active input[type="radio"]').data('key');
593        else
594        var pkey = 0;
595        var color  = $('.element[data-id='+id+']').find('.ch_color').val();
596        var href = $('.element[data-id='+id+']').find('.buy_btn').attr('href');
597        var $data ={ajax:true,eid:parseInt(id),price:price,count:count,pkey:pkey,post:_post}
598        if(typeof href === 'undefined'){
599            var href = $('.self_elem[data-id='+id+']').find('.buy_btn').attr('href');
600            var _post = $('.self_elem[data-id='+id+']').find('.buy_btn').parents('form').serialize();
601            console.log(_post);
602            var $data = _post+'&ajax=1';
603        }
604        $.ajax({
605            url:'/app/components/cart.php',
606            type: "POST",
607            dataType : "json",
608            data: $data,
609            //timeout: 2000,
610            cache : false,
611            context : $('#right_cart'),
612            success: function(data,status,XHR ){
613                console.log(data);
614                if(data == 'find_in_cart' && typeof href !== 'undefined'){
615                    window.location.assign(href);
616                }
617                $('#right_cart').addClass('a');
618                $('#right_cart .count').text(' ('+data.count+')');
619                $('#right_cart .cart_cost').text(' '+parseInt(data.cart_cost).toLocaleString()+' р.');
620                if(data.count == 1 && $('#place_your_order.popup').length){
621                    show_popup('place_your_order');
622                }
623                console.log($('.element[data-id='+id+']'));
624                //$('.element[data-id='+id+']').addClass('in_cart').find('.in_cart'+price).show();
625                $('.element[data-id='+id+']').find('.buy_btn  .ic1').hide();
626                if(typeof(th) != 'undefined'){
627                    if($(th).parents('.element').find('.img img').length)
628                        animate_cart_my($(th).parents('.element').find('.img img'));
629                }else{
630                    if($('.element[data-id='+id+']').find('.img img').length)
631                        animate_cart_my($('.element[data-id='+id+']').find('.img img'));
632                }
633                if($('#main_img img').length)
634                    animate_cart_my($('#main_img img'));
635
636            },
637            complete : function(data){
638            },
639            error: function(data){
640                if(data.responseText == 'find_in_cart'){
641                    window.location.assign(href);
642                }
643                console.error(data);
644           }
645        });
646   // event.preventDefault ? event.preventDefault() : (event.returnValue=false);
647    return false;
648    }
649}
650function remove_from_cart(id){
651    if(confirm('Удалить?')){
652    th = $('.remove_from_cart[data-id="'+id+'"]');
653    id = th.data('id');
654    cart_key = th.data('cart_key');
655    $.ajax({
656        url: "/app/components/cart.php",
657        type: 'post',
658        dataType: "json",
659        data: {
660             ajax:true,
661             eid: id,
662             cart_key: cart_key,
663             remove:true
664        },
665        cache: false,
666        success: function (data, status, XHR) {
667              console.log(data);
668           if((typeof data == 'object') && (data.status== 'ok')){
669               $('.table_cart tr[data-cart_key="'+cart_key+'"]').hide(300,function(){
670                    $(this).remove();
671                    obsh = 0;
672                    $('.total').each(function(){
673                        obsh = parseInt($(this).text().replace(/\s+/g, '')) + obsh;
674                    })
675                    $('#total_price').text(obsh);
676               });
677            }
678            if((typeof data == 'object') && (data.script) ){
679                eval(data.script);
680            }
681            if((typeof data == 'object') && (data.count) ){
682                $('#right_cart .count').text(' ('+data.count+')');
683                $('#right_cart .cart_cost').text(' '+parseInt(data.cart_cost).toLocaleString()+' р.');
684            }
685        },
686        complete: function (data) {
687            console.log(data); },
688        error: function (data) {
689            //$(this).after(data.responseText);
690            console.error(data);
691        }
692    });
693  }
694}
695function animate_cart_my (obj){
696    if($('a').is('#right_cart')){
697        $('<img src="'+$(obj).attr('src')+'" id="temp_cart_animate" style="z-index: 2000;position: absolute;top:'+Math.ceil($(obj).offset().top)+'px; left:'+Math.ceil($(obj).offset().left)+'px;">').prependTo('body');
698        console.log($(obj).attr('src'));
699        var cartpos = $('#right_cart').offset();
700        $('#temp_cart_animate').animate({
701            opacity: 0.5,
702            top: cartpos.top+30,
703            left: cartpos.left+25,
704            width: 50,
705            height: 50
706        },
707        700,
708        function() {$('#temp_cart_animate').remove();});
709    }
710}
711f2=function(t){
712    clas = 'col';
713    t.className=/\D/.test(t.value)?clas+' err':clas+'';
714     if(/\D/.test(t.value) || (t.value == 0)){
715        t.value=t.defaultValue;
716        if(self.ww)clearTimeout(ww);
717         o=t;
718         ww=setTimeout("o.className='col';",999);
719    }else {
720        calculator(t);
721        t.defaultValue=t.value; }
722    };
723var tot_el_price = 0;
724
725calculator = function(th){
726    count = th.value;
727    parent = $(th).parents('tr');
728    var eid = parent.data('cart_element_id');
729    var cart_key = parent.data('cart_key');
730    $.post('/app/components/cart.php',{'ajax':1,'set_count':count,'eid':eid,'cart_key':cart_key});
731    price = parseInt(parent.find('.price').text().replace(/\s+/g, ''));
732    parent.find('.total').text(Number((price*th.value).toFixed(1)).toLocaleString());
733    obsh = 0;
734    count = 0;
735    $('.total').each(function(){
736        obsh = parseInt($(this).text().replace(/\s+/g, '')) + obsh;
737        count = parseInt($(this).parents('tr').find('.col_input_wrap input').val()) + count;
738    })
739    obsh = Number(obsh.toFixed(1)).toLocaleString();
740    $('#total_price').text(obsh);
741    if($('#right_cart .count').length){
742        $('#right_cart .count').text(''+count+'');
743        $('#right_cart .cart_cost').text(obsh+' р.')
744    }
745}
746
747function d(variable){console.log(variable)}
748(function() {var matched, browser;/* Использовать jQuery.browser не одобряется.*//* Подробнее: http://api.jquery.com/jQuery.browser*//* jQuery.uaMatch поддерживается для совместимости */ jQuery.uaMatch = function( ua ) {ua = ua.toLowerCase();var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||/(webkit)[ \/]([\w.]+)/.exec( ua ) ||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||/(msie) ([\w.]+)/.exec( ua ) ||ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||[];return {browser: match[ 1 ] || "",version: match[ 2 ] || "0"};};matched = jQuery.uaMatch( navigator.userAgent );browser = {};if ( matched.browser ) {browser[ matched.browser ] = true;browser.version = matched.version;}/* Chrome is Webkit, but Webkit is also Safari.*/if ( browser.chrome ) {browser.webkit = true;} else if ( browser.webkit ) {browser.safari = true;}jQuery.browser = browser;jQuery.sub = function() {function jQuerySub( selector, context ) {return new jQuerySub.fn.init( selector, context );}jQuery.extend( true, jQuerySub, this );jQuerySub.superclass = this;jQuerySub.fn = jQuerySub.prototype = this();jQuerySub.fn.constructor = jQuerySub;jQuerySub.sub = this.sub;jQuerySub.fn.init = function init( selector, context ) {if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {context = jQuerySub( context );}return jQuery.fn.init.call( this, selector, context, rootjQuerySub );};jQuerySub.fn.init.prototype = jQuerySub.fn;var rootjQuerySub = jQuerySub(document);return jQuerySub;};})();
749function noselect() {return false;}
750  function preventSelection(element){
751          var preventSelection = false;
752          function addHandler(element, event, handler){
753            if (element.attachEvent)
754              element.attachEvent('on' + event, handler);
755            else
756              if (element.addEventListener)
757                element.addEventListener(event, handler, false);
758          }
759          function removeSelection(){
760            if (window.getSelection) { window.getSelection().removeAllRanges(); }
761            else if (document.selection && document.selection.clear)
762              document.selection.clear();
763          }
764          function killCtrlA(event){
765            var event = event || window.event;
766            var sender = event.target || event.srcElement;
767            if (sender.tagName.match(/INPUT|TEXTAREA/i))
768              return;
769            var key = event.keyCode || event.which;
770            if (event.ctrlKey && key == 'A'.charCodeAt(0))  // 'A'.charCodeAt(0) можно заменить на 65
771            {
772              removeSelection();
773
774              if (event.preventDefault)
775                event.preventDefault();
776              else
777                event.returnValue = false;
778            }
779          }
780          // не даем выделять текст мышкой
781          addHandler(element, 'mousemove', function(){
782            if(preventSelection)
783              removeSelection();
784          });
785          addHandler(element, 'mousedown', function(event){
786            var event = event || window.event;
787            var sender = event.target || event.srcElement;
788            preventSelection = !sender.tagName.match(/INPUT|TEXTAREA/i);
789          });
790          // борем dblclick
791          // если вешать функцию не на событие dblclick, можно избежать
792          // временное выделение текста в некоторых браузерах
793          addHandler(element, 'mouseup', function(){
794            if (preventSelection)
795              removeSelection();
796            preventSelection = false;
797          });
798          // борем ctrl+A
799          // скорей всего это и не надо, к тому же есть подозрение
800          // что в случае все же такой необходимости функцию нужно
801          // вешать один раз и на document, а не на элемент
802          addHandler(element, 'keydown', killCtrlA);
803          addHandler(element, 'keyup', killCtrlA);
804        }
805  /*
806  delay_method("check date parallel", function(){send_ajax(2);});
807  delay_method("check date", function(){send_ajax(2);});
808  */
809  function delay_method(label,callback,time){
810      if(typeof window.delayed_methods=="undefined"){window.delayed_methods={};}
811      delayed_methods[label]=Date.now();
812      var t=delayed_methods[label];
813      setTimeout(function(){ if(delayed_methods[label]!=t){return;}else{  delayed_methods[label]=""; callback();}}, time||500);
814    }

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.