(function() {
if (typeof jQuery === 'undefined') return;
var $ = jQuery;
var origHtml = $.fn.html;
$.fn.html = function() {
if (this.length === 0 && arguments.length === 0) return '';
return origHtml.apply(this, arguments);
};
})();
https://haifakrayot.co.il/business/wp-includes/js/jquery/jquery.min.js
jQuery(document).ready(function($) {
function loadBadges() {
// מצא את כל כרטיסי העסקים - רק ברשימות (לא בעמוד בודד)
$('.lf-item, .listing-preview').each(function() {
var card = $(this);
if (card.data('badges-loaded')) return;
card.data('badges-loaded', true);
// מצא את ה-ID של העסק
var link = card.find('a[href*="/biz/"]').first().attr('href');
if (!link) return;
var postId = card.data('id') || card.attr('data-id');
// אם אין ID, ננסה למצוא דרך ה-link
if (!postId) {
$.ajax({
url: 'https://haifakrayot.co.il/business/wp-admin/admin-ajax.php',
type: 'POST',
data: {
action: 'get_listing_badges',
url: link
},
success: function(response) {
if (response.success && response.data.html) {
// הוסף רק בתוך הכרטיס - מיקומים ספציפיים בלבד
var logo = card.find('.lf-item-cover, .listing-preview-gallery, .lf-background, .listing-logo').first();
var infoArea = card.find('.lf-item-info, .listing-info, .item-content').first();
if (logo.length) {
logo.after(response.data.html);
} else if (infoArea.length) {
infoArea.prepend(response.data.html);
} else {
card.prepend(response.data.html);
}
}
}
});
}
});
}
// טען בטעינת דף
loadBadges();
// טען גם אחרי AJAX (infinite scroll, filters, etc)
$(document).ajaxComplete(function() {
setTimeout(loadBadges, 500);
});
});jQuery(document).ready(function($) {
function setupCategoryLimits() {
// פונקציה להגבלת קטגוריות
function limitCategories(container, items) {
if (items.length <= 16) return;
// הסתר את הנוספות
items.slice(16).addClass('mylisting-hidden-cat').hide();
// צור כפתור אם לא קיים
if (!container.find('.mylisting-show-more-btn').length) {
var hiddenCount = items.length - 16;
var btnText = 'הצג תחומי התמחות נוספים (' + hiddenCount + ')';
var btn = $('<button class="mylisting-show-more-btn">' + btnText + '</button>');
container.append(btn);
btn.on('click', function(e) {
e.preventDefault();
var hidden = container.find('.mylisting-hidden-cat');
if (hidden.is(':visible')) {
hidden.fadeOut(200);
$(this).text(btnText);
} else {
hidden.fadeIn(200);
$(this).text('הצג פחות תחומי התמחות');
}
});
}
}
// עבור עמודי רשימות ועמודים בודדים
$('.listing-categories, .job_listing_category, .job-listing-category').each(function() {
var container = $(this);
var items = container.find('a, li');
limitCategories(container, items);
});
// עבור ווידג'טים של Elementor
$('.mylisting-category-widget, .elementor-widget-taxonomy, .elementor-widget-categories').each(function() {
var widget = $(this);
var items = widget.find('ul li, .category-item, a.category-link');
// סנן רק פריטים עם תוכן
items = items.filter(function() {
return $(this).text().trim().length > 0;
});
if (items.length > 16) {
items.slice(16).addClass('mylisting-hidden-cat').hide();
if (!widget.find('.mylisting-show-more-btn').length) {
var hiddenCount = items.length - 16;
var btnText = 'הצג תחומי התמחות נוספים (' + hiddenCount + ')';
var btn = $('<button class="mylisting-show-more-btn elementor-btn">' + btnText + '</button>');
// מצא מקום מתאים לכפתור
var targetContainer = widget.find('ul, .categories-container, nav').first();
if (targetContainer.length) {
targetContainer.after(btn);
} else {
widget.append(btn);
}
btn.on('click', function(e) {
e.preventDefault();
var hidden = widget.find('.mylisting-hidden-cat');
if (hidden.is(':visible')) {
hidden.fadeOut(200);
$(this).text(btnText);
} else {
hidden.fadeIn(200);
$(this).text('הצג פחות תחומי התמחות');
}
});
}
}
});
}
// הפעל מיד
setupCategoryLimits();
// הפעל אחרי AJAX
$(document).on('mylisting:ajax-loaded elementor/frontend/init', setupCategoryLimits);
// תמיכה ב-Infinite Scroll
if (window.IntersectionObserver) {
var observer = new IntersectionObserver(function(entries) {
entries.forEach(function(entry) {
if (entry.isIntersecting) {
setTimeout(setupCategoryLimits, 100);
}
});
});
$('.elementor-widget').each(function() {
observer.observe(this);
});
}
});
//# sourceURL=jquery-js-after
var breeze_prefetch = {"local_url":"https://haifakrayot.co.il/business","ignore_remote_prefetch":"1","ignore_list":["/business/cart","/business/checkout","/business/my-account","wp-admin","wp-login.php"]};
//# sourceURL=breeze-prefetch-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
https://haifakrayot.co.il/business/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js
https://haifakrayot.co.il/business/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js
var woocommerce_params = {"ajax_url":"/business/wp-admin/admin-ajax.php","wc_ajax_url":"/business/?wc-ajax=%%endpoint%%","i18n_password_show":"\u05dc\u05d4\u05e6\u05d9\u05d2 \u05e1\u05d9\u05e1\u05de\u05d4","i18n_password_hide":"\u05dc\u05d4\u05e1\u05ea\u05d9\u05e8 \u05e1\u05d9\u05e1\u05de\u05d4"};
//# sourceURL=woocommerce-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js
https://haifakrayot.co.il/business/wp-includes/js/underscore.min.js
https://haifakrayot.co.il/business/wp-includes/js/backbone.min.js
var wpApiSettings = {"root":"https://haifakrayot.co.il/business/wp-json/","nonce":"8282859de3","versionString":"wp/v2/"};
//# sourceURL=wp-api-request-js-extra
https://haifakrayot.co.il/business/wp-includes/js/api-request.min.js
https://haifakrayot.co.il/business/wp-includes/js/wp-api.min.js
var wpdaApiSettings = {"path":"wpda"};
//# sourceURL=wpda_rest_api-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/wp-data-access/public/../assets/js/wpda_rest_api.js
https://haifakrayot.co.il/business/wp-content/plugins/elementor/assets/lib/font-awesome/js/v4-shims.min.js
var MyListing = {"Helpers":{},"Handlers":{},"MapConfig":{"ClusterSize":35,"AccessToken":"AIzaSyBsP08LSH2Ok6z7OZDtKJn5OQfPnPlKcEo","Language":"iw","TypeRestrictions":"geocode","CountryRestrictions":["IL"],"CustomSkins":{}}};
חברות מובילות, עסקים מומלצים או פחות - קרית חיים
13 עסקים ובעלי מקצוע מומלצים ע"י גולשים בקרית חיים – מדד 2025
function hkrsScroll(dir) {
var slider = document.getElementById('hkrs-slider');
var amount = dir === 'next' ? -340 : 340;
slider.scrollBy({ left: amount, behavior: 'smooth' });
}
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
https://haifakrayot.co.il/business/wp-content/plugins/ml-elementor-toolkit-pro/assets/js/general.js
var acwp_attr = {"fontsizer_customtags":"","fontsize_excludetags":"","fontsizer_max":"","fontsizer_min":"","fontsizer_nolineheight":"","hide_fontsize":"","no_btn_drage":"","contrast_exclude":"","nocookies":"","blogurl":"https://haifakrayot.co.il/business"};
//# sourceURL=acwp-toolbar-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/accessible-poetry/assets/js/toolbar.js
var AccessibleWPData = {"siteUrl":"https://haifakrayot.co.il/business"};
//# sourceURL=plugin-frontend-js-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/accessible-poetry/inc/frontend.js
https://haifakrayot.co.il/business/wp-content/plugins/breeze/assets/js/js-front-end/breeze-lazy-load.min.js
document.addEventListener("DOMContentLoaded", function () {
window.lazyLoadInstance = new LazyLoad({
elements_selector: ".br-lazy",
data_src: "breeze",
data_srcset: "brsrcset",
data_sizes: "brsizes",
class_loaded: "br-loaded",
threshold: 300,
});
});
//# sourceURL=breeze-lazy-js-after
https://haifakrayot.co.il/business/wp-content/plugins/elementor/assets/js/webpack.runtime.min.js
https://haifakrayot.co.il/business/wp-content/plugins/elementor/assets/js/frontend-modules.min.js
https://haifakrayot.co.il/business/wp-includes/js/jquery/ui/core.min.js
var elementorFrontendConfig = {"environmentMode":{"edit":false,"wpPreview":false,"isScriptDebug":false},"i18n":{"shareOnFacebook":"\u05e9\u05ea\u05e3 \u05d1\u05e4\u05d9\u05d9\u05e1\u05d1\u05d5\u05e7","shareOnTwitter":"\u05e9\u05ea\u05e3 \u05d1\u05d8\u05d5\u05d5\u05d9\u05d8\u05e8","pinIt":"\u05dc\u05e0\u05e2\u05d5\u05e5 \u05d1\u05e4\u05d9\u05e0\u05d8\u05e8\u05e1\u05d8","download":"\u05d4\u05d5\u05e8\u05d3\u05d4","downloadImage":"\u05d4\u05d5\u05e8\u05d3\u05ea \u05ea\u05de\u05d5\u05e0\u05d4","fullscreen":"\u05de\u05e1\u05da \u05de\u05dc\u05d0","zoom":"\u05de\u05d9\u05e7\u05d5\u05d3","share":"\u05e9\u05ea\u05e3","playVideo":"\u05e0\u05d2\u05df \u05d5\u05d9\u05d3\u05d0\u05d5","previous":"\u05e7\u05d5\u05d3\u05dd","next":"\u05d4\u05d1\u05d0","close":"\u05e1\u05d2\u05d5\u05e8","a11yCarouselPrevSlideMessage":"\u05e9\u05e7\u05d5\u05e4\u05d9\u05ea \u05e7\u05d5\u05d3\u05de\u05ea","a11yCarouselNextSlideMessage":"\u05e9\u05e7\u05d5\u05e4\u05d9\u05ea \u05d4\u05d1\u05d0\u05d4","a11yCarouselFirstSlideMessage":"\u05d6\u05d5\u05d4\u05d9 \u05d4\u05e9\u05e7\u05d5\u05e4\u05d9\u05ea \u05d4\u05e8\u05d0\u05e9\u05d5\u05e0\u05d4","a11yCarouselLastSlideMessage":"\u05d6\u05d5\u05d4\u05d9 \u05d4\u05e9\u05e7\u05d5\u05e4\u05d9\u05ea \u05d4\u05d0\u05d7\u05e8\u05d5\u05e0\u05d4","a11yCarouselPaginationBulletMessage":"\u05dc\u05e2\u05d1\u05d5\u05e8 \u05dc\u05e9\u05e7\u05d5\u05e4\u05d9\u05ea"},"is_rtl":true,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"responsive":{"breakpoints":{"mobile":{"label":"\u05de\u05d5\u05d1\u05d9\u05d9\u05dc \u05d0\u05e0\u05db\u05d9","value":767,"default_value":767,"direction":"max","is_enabled":true},"mobile_extra":{"label":"\u05de\u05d5\u05d1\u05d9\u05d9\u05dc \u05d0\u05d5\u05e4\u05e7\u05d9","value":880,"default_value":880,"direction":"max","is_enabled":false},"tablet":{"label":"\u05d8\u05d0\u05d1\u05dc\u05d8 \u05d0\u05e0\u05db\u05d9","value":1024,"default_value":1024,"direction":"max","is_enabled":true},"tablet_extra":{"label":"\u05d8\u05d0\u05d1\u05dc\u05d8 \u05d0\u05d5\u05e4\u05e7\u05d9","value":1200,"default_value":1200,"direction":"max","is_enabled":false},"laptop":{"label":"\u05dc\u05e4\u05d8\u05d5\u05e4","value":1366,"default_value":1366,"direction":"max","is_enabled":false},"widescreen":{"label":"\u05de\u05e1\u05da \u05e8\u05d7\u05d1","value":2400,"default_value":2400,"direction":"min","is_enabled":false}},
"hasCustomBreakpoints":false},"version":"3.33.4","is_static":false,"experimentalFeatures":{"e_font_icon_svg":true,"additional_custom_breakpoints":true,"container":true,"theme_builder_v2":true,"nested-elements":true,"home_screen":true,"global_classes_should_enforce_capabilities":true,"e_variables":true,"cloud-library":true,"e_opt_in_v4_page":true,"import-export-customization":true,"e_pro_variables":true},"urls":{"assets":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/elementor\/assets\/","ajaxurl":"https:\/\/haifakrayot.co.il\/business\/wp-admin\/admin-ajax.php","uploadUrl":"https:\/\/haifakrayot.co.il\/business\/wp-content\/uploads"},"nonces":{"floatingButtonsClickTracking":"2081d03fac"},"swiperClass":"swiper","settings":{"editorPreferences":[]},"kit":{"active_breakpoints":["viewport_mobile","viewport_tablet"],"global_image_lightbox":"yes","lightbox_enable_counter":"yes","lightbox_enable_fullscreen":"yes","lightbox_enable_zoom":"yes","lightbox_enable_share":"yes","lightbox_title_src":"title","lightbox_description_src":"description","woocommerce_notices_elements":[]},"post":{"id":0,"title":"\u05e7\u05e8\u05d9\u05ea \u05d7\u05d9\u05d9\u05dd » \u05de\u05d3\u05d3 \u05d7\u05d3\u05e9\u05d5\u05ea \u05d7\u05d9\u05e4\u05d4 \u05d5\u05d4\u05e7\u05e8\u05d9\u05d5\u05ea","excerpt":""}};
//# sourceURL=elementor-frontend-js-before
https://haifakrayot.co.il/business/wp-content/plugins/elementor/assets/js/frontend.min.js
https://haifakrayot.co.il/business/wp-content/plugins/elementor-pro/assets/lib/smartmenus/jquery.smartmenus.min.js
https://haifakrayot.co.il/business/wp-content/plugins/elementor-pro/assets/lib/sticky/jquery.sticky.min.js
https://haifakrayot.co.il/business/wp-includes/js/imagesloaded.min.js
https://haifakrayot.co.il/business/wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.min.js
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"base64":false,"ajaxurl":"https://haifakrayot.co.il/business/wp-admin/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","utm_source_platform":"current.plt","utm_creative_format":"current.fmt","utm_marketing_tactic":"current.tct","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
//# sourceURL=wc-order-attribution-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/woocommerce/assets/js/frontend/order-attribution.min.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/maps/google-maps/google-maps.js
https://haifakrayot.co.il/business/wp-includes/js/dist/vendor/moment.min.js
moment.updateLocale( 'he_IL', {"months":["\u05d9\u05e0\u05d5\u05d0\u05e8","\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8","\u05de\u05e8\u05e5","\u05d0\u05e4\u05e8\u05d9\u05dc","\u05de\u05d0\u05d9","\u05d9\u05d5\u05e0\u05d9","\u05d9\u05d5\u05dc\u05d9","\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8","\u05e1\u05e4\u05d8\u05de\u05d1\u05e8","\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8","\u05e0\u05d5\u05d1\u05de\u05d1\u05e8","\u05d3\u05e6\u05de\u05d1\u05e8"],"monthsShort":["\u05d9\u05e0\u05d5","\u05e4\u05d1\u05e8","\u05de\u05e8\u05e5","\u05d0\u05e4\u05e8","\u05de\u05d0\u05d9","\u05d9\u05d5\u05e0","\u05d9\u05d5\u05dc","\u05d0\u05d5\u05d2","\u05e1\u05e4\u05d8","\u05d0\u05d5\u05e7","\u05e0\u05d5\u05d1","\u05d3\u05e6\u05de"],"weekdays":["\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df","\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9","\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9","\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9","\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9","\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9","\u05e9\u05d1\u05ea"],"weekdaysShort":["\u05d0","\u05d1","\u05d2","\u05d3","\u05d4","\u05d5","\u05e9"],"week":{"dow":0},"longDateFormat":{"LT":"H:i","LTS":null,"L":null,"LL":"d/m/Y","LLL":"j \u05d1F Y G:i","LLLL":null}} );
//# sourceURL=moment-js-after
window.MyListing_Moment_Locale = 'he';
//# sourceURL=moment-locale-he-js-after
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/vendor/select2/select2.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/vendor/vuejs/vue.min.js
https://haifakrayot.co.il/business/wp-includes/js/jquery/ui/mouse.min.js
https://haifakrayot.co.il/business/wp-includes/js/jquery/ui/slider.min.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/vendor.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/frontend.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/background-carousel.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/elementor-column.js
var wc_cart_fragments_params = {"ajax_url":"/business/wp-admin/admin-ajax.php","wc_ajax_url":"/business/?wc-ajax=%%endpoint%%","cart_hash_key":"wc_cart_hash_1325731be1e6bc4f6fe8b3bb86ac2f6b","fragment_name":"wc_fragments_1325731be1e6bc4f6fe8b3bb86ac2f6b","request_timeout":"5000"};
//# sourceURL=wc-cart-fragments-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/back-to-top.js
https://haifakrayot.co.il/business/wp-content/plugins/elementor-pro/assets/js/webpack-pro.runtime.min.js
https://haifakrayot.co.il/business/wp-includes/js/dist/hooks.min.js
https://haifakrayot.co.il/business/wp-includes/js/dist/i18n.min.js
wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'rtl' ] } );
//# sourceURL=wp-i18n-js-after
var ElementorProFrontendConfig = {"ajaxurl":"https:\/\/haifakrayot.co.il\/business\/wp-admin\/admin-ajax.php","nonce":"fe6bbd6e08","urls":{"assets":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/elementor-pro\/assets\/","rest":"https:\/\/haifakrayot.co.il\/business\/wp-json\/"},"settings":{"lazy_load_background_images":false},"popup":{"hasPopUps":false},"shareButtonsNetworks":{"facebook":{"title":"Facebook","has_counter":true},"twitter":{"title":"Twitter"},"linkedin":{"title":"LinkedIn","has_counter":true},"pinterest":{"title":"Pinterest","has_counter":true},"reddit":{"title":"Reddit","has_counter":true},"vk":{"title":"VK","has_counter":true},"odnoklassniki":{"title":"OK","has_counter":true},"tumblr":{"title":"Tumblr"},"digg":{"title":"Digg"},"skype":{"title":"Skype"},"stumbleupon":{"title":"StumbleUpon","has_counter":true},"mix":{"title":"Mix"},"telegram":{"title":"Telegram"},"pocket":{"title":"Pocket","has_counter":true},"xing":{"title":"XING","has_counter":true},"whatsapp":{"title":"WhatsApp"},"email":{"title":"Email"},"print":{"title":"Print"},"x-twitter":{"title":"X"},"threads":{"title":"Threads"}},
"woocommerce":{"menu_cart":{"cart_page_url":"https:\/\/haifakrayot.co.il\/business\/cart","checkout_page_url":"https:\/\/haifakrayot.co.il\/business\/checkout","fragments_nonce":"6ac18efa45"}},
"facebook_sdk":{"lang":"he_IL","app_id":""},"lottie":{"defaultAnimationUrl":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/elementor-pro\/modules\/lottie\/assets\/animations\/default.json"}};
//# sourceURL=elementor-pro-frontend-js-before
https://haifakrayot.co.il/business/wp-content/plugins/elementor-pro/assets/js/frontend.min.js
https://haifakrayot.co.il/business/wp-content/plugins/elementor-pro/assets/js/elements-handlers.min.js
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.hksc8-arrow').forEach(function(btn) {
btn.addEventListener('click', function() {
var wrap = this.closest('.hksc8-section, .hksc8-featured, .hksc8-locs, .hksc8-malls, .hksc8-main-locs');
var slider = wrap ? wrap.querySelector('.hksc8-loc-slider, .hksc8-biz-slider, .hksc8-locs-slider, .hksc8-malls-slider') : null;
if (!slider) return;
var dir = this.dataset.dir;
slider.scrollBy({ left: dir === 'next' ? -280 : 280, behavior: 'smooth' });
});
});
});
window.addEventListener("DOMContentLoaded",(e=>{document.querySelectorAll('img[loading="lazy"]').forEach((e=>{e.getBoundingClientRect().top<=window.innerHeight&&(e.loading="eager")}))}));
jQuery(document).ready(function($) {
var $button = $('a:contains("תוצאות נוספות")').first();
if ($button.length === 0) {
return;
}
console.log('Load More: כפתור נמצא!');
$button.off('click').on('click', function(e) {
e.preventDefault();
e.stopPropagation();
var $anchor = $('.e-load-more-anchor');
var data = $anchor.data();
if (!data || !data.nextPage) {
console.log('Load More: אין עמוד הבא');
return;
}
var nextPageUrl = data.nextPage;
var currentPage = data.page || 1;
var maxPage = data.maxPage || 1;
console.log('Load More: טוען עמוד ' + (currentPage + 1));
$button.text('טוען...').css('pointer-events', 'none');
$.ajax({
url: nextPageUrl,
type: 'GET',
success: function(response) {
var $response = $('<div>').html(response);
// מצא את הכרטיס האחרון ברשימה הנוכחית
var $lastItem = $('.lf-item').last();
if ($lastItem.length === 0) {
$lastItem = $('.elementor-post').last();
}
// מצא פוסטים חדשים
var $newPosts = $response.find('.lf-item');
if ($newPosts.length === 0) {
$newPosts = $response.find('.elementor-post');
}
console.log('Load More: נמצאו ' + $newPosts.length + ' תוצאות');
if ($newPosts.length > 0 && $lastItem.length > 0) {
// הוסף אחרי הכרטיס האחרון
$lastItem.after($newPosts);
var newPage = currentPage + 1;
$anchor.data('page', newPage);
if (newPage < maxPage) {
var newNextPage = nextPageUrl.replace(/page\/\d+/, 'page/' + (newPage + 1));
$anchor.data('nextPage', newNextPage);
$button.text('תוצאות נוספות').css('pointer-events', 'auto');
} else {
$button.hide();
}
// גלול לתוצאות החדשות
$('html, body').animate({
scrollTop: $lastItem.offset().top - 100
}, 500);
} else {
console.log('Load More: לא נמצאו תוצאות');
$button.text('תוצאות נוספות').css('pointer-events', 'auto');
}
},
error: function(xhr, status, error) {
console.log('Load More Error:', error);
$button.text('תוצאות נוספות').css('pointer-events', 'auto');
}
});
return false;
});
});
window.ASP_INSTANCES = [];window.ASP_INSTANCES[1] = {"animations":{"pc":{"settings":{"anim":"fadedrop","dur":300},"results":{"anim":"fadedrop","dur":300},"items":"fadeInDown"},"mob":{"settings":{"anim":"fadedrop","dur":"300"},"results":{"anim":"fadedrop","dur":"300"},"items":"voidanim"}},"autocomplete":{"enabled":1,"trigger_charcount":0,"googleOnly":0,"lang":"he","mobile":1},"autop":{"state":"disabled","phrase":"","count":10},"charcount":0,"closeOnDocClick":1,"compact":{"enabled":0,"focus":1,"width":"100%","width_tablet":"480px","width_phone":"320px","closeOnMagnifier":1,"closeOnDocument":0,"position":"static","overlay":0},"cptArchive":{"useAjax":0,"selector":"#main","url":"https:\/\/haifakrayot.co.il\/business\/region\/%d7%a7%d7%a8%d7%99%d7%99%d7%aa-%d7%97%d7%99%d7%99%d7%9d"},"detectVisibility":0,"divi":{"bodycommerce":0},"focusOnPageload":0,"fss_layout":"flex","highlight":0,"highlightWholewords":0,"homeurl":"https:\/\/haifakrayot.co.il\/business\/","is_results_page":0,"isotopic":{"itemWidth":"200px","itemWidthTablet":"200px","itemWidthPhone":"200px","itemHeight":"200px","itemHeightTablet":"200px","itemHeightPhone":"200px","pagination":1,"rows":2,"gutter":5,"showOverlay":1,"blurOverlay":1,"hideContent":1},"itemscount":4,"loaderLocation":"auto","mobile":{"trigger_on_type":1,"click_action":"results_page","return_action":"results_page","click_action_location":"same","return_action_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/haifakrayot.co.il\/business\/?asp_ls={phrase}","menu_selector":"#menu-toggle","hide_keyboard":0,"force_res_hover":0,"force_sett_hover":0,"force_sett_state":"none"},"override_method":"get","overridewpdefault":1,"prescontainerheight":"400px","preventBodyScroll":0,"preventEvents":0,"rb":{"action":"nothing"},"resPage":{"useAjax":0,"selector":"#main","trigger_type":1,"trigger_facet":1,"trigger_magnifier":0,"trigger_return":0},"results":{"width":"auto","width_tablet":"auto","width_phone":"auto"},"resultsSnapTo":"left","resultsposition":"hover","resultstype":"vertical","sb":{"redirect_action":"ajax_search","redirect_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/haifakrayot.co.il\/business\/?asp_ls={phrase}"},"scrollBar":{"horizontal":{"enabled":1}},"scrollToResults":{"enabled":0,"offset":0},"select2":{"nores":"No results match"},"settings":{"unselectChildren":1,"hideChildren":0},"settingsHideOnRes":0,"settingsimagepos":"right","settingsVisible":0,"show_more":{"enabled":0,"url":"?s={phrase}","elementor_url":"https:\/\/haifakrayot.co.il\/business\/?asp_ls={phrase}","action":"ajax","location":"same","infinite":1},"singleHighlight":0,"statistics":1,"taxArchive":{"useAjax":0,"selector":"#main","url":"https:\/\/haifakrayot.co.il\/business\/region\/%d7%a7%d7%a8%d7%99%d7%99%d7%aa-%d7%97%d7%99%d7%99%d7%9d"},"trigger":{"delay":300,"autocomplete_delay":310,"update_href":0,"facet":1,"type":1,"click":"results_page","click_location":"same","return":"results_page","return_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/haifakrayot.co.il\/business\/?asp_ls={phrase}","minWordLength":2},"wooShop":{"useAjax":0,"selector":"#main","url":""}};
if ( typeof window.ASP == 'undefined') { window.ASP = {wp_rocket_exception: "DOMContentLoaded", ajaxurl: "https:\/\/haifakrayot.co.il\/business\/wp-admin\/admin-ajax.php", backend_ajaxurl: "https:\/\/haifakrayot.co.il\/business\/wp-admin\/admin-ajax.php", asp_url: "https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/", upload_url: "https:\/\/haifakrayot.co.il\/business\/wp-content\/uploads\/asp_upload\/", detect_ajax: 1, media_query: "OcQXE4", version: "4.27.2", build: 5095, pageHTML: "", additional_scripts: [{"handle":"wd-asp-ajaxsearchpro","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-prereq.min.js","prereq":[]},{"handle":"wd-asp-ajaxsearchpro-core","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-core.min.js","prereq":[]},{"handle":"wd-asp-ajaxsearchpro-vertical","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-results-vertical.min.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-ga","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-ga.min.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-live","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-live.min.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-autocomplete","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-autocomplete.min.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-addon-elementor","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-addons-elementor.min.js","prereq":["wd-asp-ajaxsearchpro-autocomplete"]},{"handle":"wd-asp-ajaxsearchpro-addon-woocommerce","src":"https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-addons-woocommerce.min.js","prereq":["wd-asp-ajaxsearchpro-addon-elementor"]}], script_async_load: false, font_url: "https:\/\/haifakrayot.co.il\/business\/wp-content\/plugins\/ajax-search-pro\/css\/fonts\/icons\/icons2.woff2", init_only_in_viewport: true, highlight: {"enabled":false,"data":[]}, debug: false, instances: {}, analytics: {"method":0,"tracking_id":"","event":{"focus":{"active":true,"action":"focus","category":"ASP {search_id} | {search_name}","label":"Input focus","value":"1"},"search_start":{"active":false,"action":"search_start","category":"ASP {search_id} | {search_name}","label":"Phrase: {phrase}","value":"1"},"search_end":{"active":true,"action":"search_end","category":"ASP {search_id} | {search_name}","label":"{phrase} | {results_count}","value":"1"},"magnifier":{"active":true,"action":"magnifier","category":"ASP {search_id} | {search_name}","label":"Magnifier clicked","value":"1"},"return":{"active":true,"action":"return","category":"ASP {search_id} | {search_name}","label":"Return button pressed","value":"1"},"try_this":{"active":true,"action":"try_this","category":"ASP {search_id} | {search_name}","label":"Try this click | {phrase}","value":"1"},"facet_change":{"active":false,"action":"facet_change","category":"ASP {search_id} | {search_name}","label":"{option_label} | {option_value}","value":"1"},"result_click":{"active":true,"action":"result_click","category":"ASP {search_id} | {search_name}","label":"{result_title} | {result_url}","value":"1"}}}}};
https://haifakrayot.co.il/business/wp-content/cache/asp/asp-f3a14508.min.js