PageSourceSearch

https://www.keramogranit.ru/local/templates/.default/components/bi…/right_popup_block/script.js?15142783503353

js keramogranit.ru collected 2026-10-03 19:40:42 UTC 3,353 bytes, 99 lines download raw bytes

1function kgInitRightPopup()
2{
3    jQuery(document).ready(function($) {
4
5        jQuery("#kg-right-popup-block").is("div")
6        {
7            jQuery(window).scroll(function(){
8
9                if  (jQuery(window).scrollTop() > 50)
10                {
11                    jQuery('#kg-right-popup-block').animate({'right':'5px'},250);
12                }
13                else
14                {
15                    jQuery('#kg-right-popup-block').stop(true).animate({'right':'-1000px'},250);
16                }
17                jQuery('.kg-right-popup-block-item-close').bind('click',function(){
18                    jQuery(this).parent().remove();
19                });
20            });
21
22            jQuery(".kg-right-popup-block .kg-right-popup-block-item-close").on("click", function(){
23
24                var banner_id = jQuery(this).data("banner-id");
25
26                //console.log(banner_id);
27
28                jQuery.post("/ajax/ajax.php",
29                    {
30                        action: "get_server_timestamp"
31                    },
32                    function(data, status){
33                        if(banner_id && data.timestamp)
34                        {
35                            var timestamp = data.timestamp;
36
37                            kgSetCookie("KG_BANNER_LAST_VIEW_"+banner_id, timestamp, 30);
38                        }
39                    },
40                    "json"
41                );
42            });
43
44
45            jQuery("body").on("click", ".kg-right-popup-block .hide-block-item", function(){
46
47                jQuery(this).closest(".kg-right-popup-block-item-wr").addClass("hidden-block");
48
49            });
50        }
51
52        jQuery(".kg-region-contact-form-wr").is("div")
53        {
54            //jQuery('.kg-rcf-phone').inputmask('+7 (999) 999-99-99');
55
56            if(jQuery('span').is('.kg-auto-region-name'))
57            {
58                jQuery(".kg-auto-region-name" ).load( "/ajax/region_name.php" );
59            }
60
61            jQuery("#kg-rcf-submit").on("click", function(){
62                jQuery("#kg-rcf-name").removeClass("error");
63                jQuery("#kg-rcf-phone").removeClass("error");
64
65                var error = false;
66
67                var region = jQuery("#kg-auto-region-name").text();
68                var phone = jQuery("#kg-rcf-phone").val();
69                var name = jQuery("#kg-rcf-name").val();
70
71                if(!name)
72                {
73                    jQuery("#kg-rcf-name").addClass("error");
74                    error = true;
75                }
76
77                if(!phone)
78                {
79                    jQuery("#kg-rcf-phone").addClass("error");
80                    error = true;
81                }
82
83                if(!error)
84                {
85                    jQuery.post("/ajax/send_rcf_form.php",
86                        {
87                            region: region,
88                            name: name,
89                            phone: phone
90                        },
91                        function(data, status){
92                            jQuery(".kg-region-contact-form").html('<span style="color: green; font-weight: bold;">Ваша заявка отправлена</span>');
93                        });
94                }
95            });
96
97        }
98    });
99}

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.