PageSourceSearch

https://jkproperties.com.mt/wp-content/plugins/property-integratio…operty-integration-public.js?ver=1790409838

js jkproperties.com.mt collected 2026-09-26 08:04:53 UTC 4,280 bytes, 118 lines download raw bytes

1var ajaxCall = null;
2var filterObj = [];
3
4jQuery(document).ready(function () {
5    if (jQuery(document).find('.search-filter').length > 0) {
6        /*Sticky Filter */
7        window.onscroll = function () {
8            stickyFilter();
9        };
10
11        var header = document.getElementsByClassName("search-filter")[0];
12
13        function stickyFilter() {
14            var sticky = header.offsetTop;
15            if (window.pageYOffset > sticky) {
16                header.classList.add("sticky");
17                header.style.top = document.getElementById("top").clientHeight + 'px';
18                document.getElementById("top")
19                jQuery('#header-outer').addClass("sticky-filter-head");
20            } else {
21                header.classList.remove("sticky");
22                header.style.top = 'auto';
23                jQuery('#header-outer').removeClass("sticky-filter-head");
24            }
25        }
26        /*End Sticky Filter */
27    }
28//        jQuery(document).on('click keyup', '#searchFilter .multi-filter,#searchFilter input[type=checkbox],#searchFilter input[type=number],.search-result-container .pagination a', debounce(function (e) {
29////        selectedLocation();
30//        var field = '';
31//        if (ajaxCall) {
32//            ajaxCall.abort();
33//        }
34//        if (e.target.hasAttribute('data-page')) {
35//            field = 'page';
36//            if (jQuery(this).data('page') === 'next') {
37//                var page = jQuery('.current').data('page');
38//                var value = page + 1;
39//            } else if (jQuery(this).data('page') === 'prev') {
40//                var page = jQuery('.current').data('page');
41//                var value = page - 1;
42//            } else {
43//                var value = (jQuery(this).data('page') ? jQuery(this).data('page') : '1');
44//            }
45//        } else if (jQuery(this).attr('name') === 'choice-towns') {
46//            field = 'choice-towns';
47//            var value = [];
48//            jQuery('input[name="choice-towns"]:checked').each(function () {
49//                value.push(jQuery(this).val());
50//            });
51//        } else if (jQuery(this).attr('name') === 'choice-type') {
52//            field = 'choice-type';
53//            var value = [];
54//            jQuery('input[name="choice-type"]:checked').each(function () {
55//                value.push(jQuery(this).val());
56//            });
57//        } else if (jQuery(this).attr('name') === 'choice-provices[]') {
58//            field = 'choice-provices';
59//            var value = [];
60//            jQuery('input[name="choice-provices[]"]:checked').each(function () {
61//                value.push(jQuery(this).val());
62//            });
63//        } else {
64//            field = jQuery(this).attr("name");
65//            var value = jQuery(this).val();
66//        }
67//
68//        var exist = false;
69//
70//        filterObj.forEach((item) => {
71//            if (!e.target.hasAttribute('data-page')) {
72//                if (item.name == 'page') {
73//                    item.data = 1;
74//                    exist = true;
75//                }
76//            }
77//
78//            if (item.name == field) {
79//                item.data = value;
80//                exist = true;
81//            }
82//        });
83//        if (!exist && (value !== 'null' && value !== '' && value.length !== 0)) {
84//            var fieldObj = {name: field, data: value};
85//            filterObj.push(fieldObj);
86//        }
87//        setTimeout(function () {
88//            sendCall(filterObj);
89//        }, 1000);
90//    }, 1000));
91    
92});
93
94
95jQuery(function () {
96    jQuery('a[href*=\\#]:not([href=\\#])').on('click', function () {
97        var target = jQuery(this.hash);
98        var head_height = jQuery('#header-outer').outerHeight() + 70;
99        target = target.length ? target : jQuery('[name=' + this.hash.substr(1) + ']');
100        if (target.length) {
101			
102			if(jQuery('body').hasClass('admin-bar')){
103				var admin_height = jQuery('#wpadminbar').outerHeight();
104				 jQuery('html,body').animate({
105					scrollTop: target.offset().top - head_height - admin_height
106				}, 1000);
107				return false;
108			}
109			else{
110				  jQuery('html,body').animate({
111					scrollTop: target.offset().top - head_height
112				}, 1000);
113				return false;
114			}
115          
116        }
117    });
118});

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.