PageSourceSearch

https://ready.kz/bitrix/components/bxready.market2/panel.top.fixed.ajax/templates/.default/script.js

js ready.kz collected 2026-09-30 05:43:41 UTC 2,789 bytes, 101 lines download raw bytes

1(function() {
2
3    var BXRFixedPanelCreate = false,
4    BXRFixedPanelTop = 99999999;
5
6    if (!!window.JCTopFixedPanelAjax)
7        return;
8
9    window.JCTopFixedPanelAjax = function(params) {
10        this.params = params;
11        
12        var BXRFixedPanel = this;
13
14
15        $(document).scroll(function(){
16
17            if ($(window).width() < BXRFixedPanel.params.mWidth){
18                BXRFixedPanel.hide();
19                return;
20            }
21
22            if ($(document).scrollTop() > BXRFixedPanelTop){
23                BXRFixedPanel.show();
24            }else{
25                BXRFixedPanel.hide();
26            }
27
28        });
29
30        $(window).resize(function(){
31            if ($(window).width() < BXRFixedPanel.params.mWidth){
32                BXRFixedPanel.hide();
33                return;
34            }
35        });
36
37        BXRFixedPanel.init();
38
39    };
40
41    window.JCTopFixedPanelAjax.prototype =
42    {
43        isTouchDevice: function() {
44            try {
45                document.createEvent('TouchEvent');
46                return true;
47            }
48            catch(e) {
49                return false;
50            }
51        },
52
53        init: function(){
54
55
56
57            if (!BXRFixedPanelCreate){
58
59                params ={
60                    'siteId' : this.params.siteId,
61                    'template' : this.params.templateID,
62                    'parameters' : this.params.parameters,
63                    'bxmarket' : this.params.bxmarket,
64                    'rg': Math.random()
65                }
66
67                request = $.ajax({
68                    url:  this.params.ajaxUrl,
69                    data: params,
70                    type: 'POST',
71                    success: function(data){
72                        $('#bxr-top-fixed-panel').html(data);
73                        BXRFixedPanelTop = $('#bxr-top-fixed-panel-anker').position().top;
74                        $('#bxr-top-fixed-panel').trigger('onCreateFixedPanel');
75                        BXRFixedPanelCreate = true;
76                    }
77                });
78
79
80            };
81
82        },
83
84        show: function(){
85            if ($('#bxr-top-fixed-panel').data('show') != '1'){
86
87                $('#bxr-top-fixed-panel').fadeIn(200);
88                $('#bxr-top-fixed-panel').data('show', '1');
89                $('#bxr-top-fixed-panel').trigger('onShowFixedPanel');
90            }
91        },
92
93        hide: function(){
94            if ($('#bxr-top-fixed-panel').data('show') != '0'){
95                $('#bxr-top-fixed-panel').fadeOut(200);
96                $('#bxr-top-fixed-panel').data('show', '0');
97                $('#bxr-top-fixed-panel').trigger('onHideFixedPanel');
98            }
99        }
100    }
101})();

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.