סיקור לגור בחוף הכרמל ועתלית על יד הים – רינת לוי נדל"ן / מאת: דסק המדד והגולשים
דף מידע בשירות הציבור אודות לגור בחוף הכרמל ועתלית על יד הים – רינת לוי נדל"ן:
לידיעתכם, כאן תוכלו למצוא ביקורות, המלצות וכתבות על משרד תיווך בעתלית במסגרת סיקור עיתונאי בעריכת הגולשים וכתבי חדשות חיפה והקריות – למידע רשמי מטעם מושא הסיקור בעמוד זה יש לפנות לנכסיו הדיגיטליים הרשמיים, שכן עמוד זה הוקם על ידי הציבור ולמען הציבור ולא מנוהל ע"י מושא הסיקור או מי מטעמו.
מאת: כתבי חדשות חיפה והקריות
רינת לוי נדל"ן הינו משרד תיווך מוביל בעתלית וחוף הכרמל, המתמחה במתן שירותי ייעוץ, שיווק ותיווך נדל"ן מקצועי ואמין. עם מעל 17 שנות ניסיון בתחום, המשרד מוביל על ידי רינת לוי, בעלת רישיון תיווך במקרקעין מספר 24313 ממשרד המשפטים, ומתמחה בכל סוגי הנכסים באזור עתלית וחוף הכרמל.
מומחיות ייחודית באזור עתלית המשרד מציע שירותים מקיפים למכירה ורכישה של נכסים מגוונים: בתים פרטיים חדשים ויד שנייה, ווילות, בתים דו-משפחתיים, דירות, מגרשים לבנייה, ונכסים מסחריים. רינת לוי, תושבת עתלית ומומחית בשוק המקומי, מובילה את התהליך עם גישה אישית ומקצועית, תוך הכרה עמוקה של הצרכים הייחודיים של כל לקוח.
צוות מקצועי ומנוסה לצד רינת לוי פועלת ענבל סוקניק, מנהלת תפעול ושיווק, מהנדסת תעשייה וניהול בוגרת ניהול פרויקטים בבנייה מהטכניון, ובעלת רישיון תיווך במקרקעין מספר 3151008. הצוות המשלב ניסיון עשיר בתכנון וביצוע פרויקטים בתעשיות ההייטק והנדל"ן, מבטיח שירות מקצועי ואמין.
שירות אישי ומקיף המשרד מאמין שתהליך רכישה או מכירה של נכס הוא צעד משמעותי ומורכב בחיים, הכולל היבטים משפחתיים, כלכליים ומשפטיים. לכן, הגישה במשרד מתבססת על היכרות אישית עם כל לקוח, הבנת הצרכים, התקציב והרצונות, כדי לספק ליווי מותאם אישית לכל שלב בתהליך.
שירותי הליווי המקצועיים מעבר לתיווך עצמו, המשרד מלווה את הלקוחות בכל מעטפת התהליך, כולל קשר עם הגורמים הרלוונטיים: עורכי דין, אדריכלים, קבלנים, מעצבי פנים, שמאים, יועצי משכנתאות ויועצי מס. הגישה המקצועית כוללת מקצועיות, התמדה, רגישות, שקיפות מלאה ושליטה בתחום הנדל"ן המקצועי והחוקי.
מגוון אפשרויות בנייה ורכישה המשרد מציע אפשרויות מגוונות: נכסים יד שנייה מהשוק הפרטי, בתים חדשים מקבלן בשלבי בנייה שונים – החל משלב התכנון ועד סיום הבנייה. רכישה בשלב התכנון מאפשרת ללקוחות לקחת חלק פעיל בתהליך תכנון הבית והתאמתו לצרכים האישיים שלהם.
שוק המגרשים עבור לקוחות המעוניינים לבנות בעצמם, המשרד מתמחה בשיווק מגרשים לבנייה עצמית במיקומים שונים ובגדלים מתאימים. הצוות מלווה בכל שלב של תהליך רכישת המגרש והכנת הקרקע לבנייה.
המשרד של רינת לוי נדל"ן מציע פתרון מקיף ואמין לכל מי שמחפש לרכוש או למכור נכס בעתלית ובחוף הכרמל, עם הבטחה לשירות מקצועי, אישי ואמין לאורך כל התהליך.
באילו סוגי נכסים מתמחה המשרד של רינת לוי? המשרד מתמחה בכל סוגי הנכסים בעתלית וחוף הכרמל: בתים פרטיים חדשים ויד שנייה, ווילות, בתים דו-משפחתיים, דירות, מגרשים לבנייה, פרויקטי בנייה, יזמויות ונכסים מסחריים.
מה הניסיון של רינת לוי בתחום הנדל"ן? רינת לוי עוסקת בתחום הנדל"ן מעל 17 שנים, החל משנת 2008. היא בעלת רישיון תיווך במקרקעין ממשרד המשפטים מס' 24313, הוציאה לפועל פרויקטי בנייה רבים ויזמויות, והיא מומחית בכל שוק הנדל"ן בעתלית ואזור חוף הכרמל.
(function() {
var header = document.querySelector('.ivg-header-wrapper.is-sticky');
var topbar = document.querySelector('.ivg-topbar');
var spacer = document.getElementById('ivg-header-spacer');
if (!header) return;
var adminBarHeight = document.body.classList.contains('admin-bar') ?
(window.innerWidth > 782 ? 32 : 46) : 0;
function updateHeader() {
var headerHeight = header.offsetHeight;
if (topbar) {
var topbarHeight = topbar.offsetHeight;
var scrollTop = window.pageYOffset || document.documentElement.scrollTop;
if (scrollTop > topbarHeight) {
header.style.position = 'fixed';
header.style.top = adminBarHeight + 'px';
header.style.left = '0';
header.style.right = '0';
header.style.width = '100%';
if (spacer) spacer.style.height = headerHeight + 'px';
if (spacer) spacer.style.display = 'block';
} else {
header.style.position = 'relative';
header.style.top = '0';
header.style.left = '';
header.style.right = '';
header.style.width = '';
if (spacer) spacer.style.display = 'none';
}
} else {
// No topbar - always fixed
header.style.position = 'fixed';
header.style.top = adminBarHeight + 'px';
header.style.left = '0';
header.style.right = '0';
header.style.width = '100%';
if (spacer) spacer.style.height = headerHeight + 'px';
if (spacer) spacer.style.display = 'block';
}
}
updateHeader();
window.addEventListener('scroll', updateHeader, { passive: true });
window.addEventListener('resize', updateHeader);
})();
jQuery(document).ready(function($) {
console.log('🚀 תיקון רספונסיבי ל-Off Canvas + עיצוב מותאם + תיקון לינקים');
// בדוק אם מובייל
function isMobile() {
return window.innerWidth <= 768;
}
// תיקון z-index של MyListing
function fixMyListingZIndex() {
$('.lf-item, .lf-item-alternate, .listing-feed, .finder-container').css({
'z-index': '1',
'position': 'relative'
});
$('.elementor-section, .elementor-widget, .elementor-element').css('z-index', '1');
}
// תיקון שורטקודים שלא התפרשו
function fixShortcodes() {
$('.eptm-offcanvas-body').each(function() {
var $body = $(this);
var html = $body.html();
// בדוק אם יש שורטקודים לא מפורשים
if (html && html.includes('[') && html.includes(']')) {
console.log('🔧 מתקן שורטקודים...');
// חלץ שורטקודים
var shortcodes = html.match(/\[([^\]]+)\]/g);
if (shortcodes) {
shortcodes.forEach(function(shortcode) {
// הסר את הסוגריים
var cleanShortcode = shortcode.replace('[', '').replace(']', '');
console.log('📝 טוען שורטקוד:', cleanShortcode);
// בקש מהשרת את התוכן המפורש
if (typeof eptm_ajax !== 'undefined') {
$.ajax({
url: eptm_ajax.ajax_url,
type: 'POST',
data: {
action: 'eptm_load_content',
shortcode: cleanShortcode,
nonce: eptm_ajax.nonce
},
success: function(response) {
// החלף את השורטקוד בתוכן המפורש
var currentHtml = $body.html();
var newHtml = currentHtml.replace(shortcode, response);
$body.html(newHtml);
console.log('✅ שורטקוד נטען:', cleanShortcode);
// תקן עיצוב אחרי טעינה
setTimeout(fixListStyling, 100);
},
error: function() {
console.error('❌ כשל בטעינת שורטקוד:', cleanShortcode);
}
});
}
});
}
// פתרון חלופי - נסה לפרש ידנית
if (html.includes('[areas_display]') || html.includes('[biz_related]')) {
console.log('🔄 מנסה פתרון חלופי...');
// צור תוכן זמני
var tempContent = '<div class="loading-content">טוען קטגוריות...</div>';
$body.html(tempContent);
// נסה לטעון דרך AJAX ישיר
$.get(window.location.href, function(pageContent) {
// חפש את התוכן המפורש בעמוד
var $tempDiv = $('<div>').html(pageContent);
var areasContent = $tempDiv.find('[data-shortcode="areas_display"]').html();
var bizContent = $tempDiv.find('[data-shortcode="biz_related"]').html();
if (areasContent || bizContent) {
$body.html((areasContent || '') + (bizContent || ''));
console.log('✅ תוכן נטען מהעמוד');
} else {
// אם לא מצאנו, השאר את הטקסט אבל עצב אותו
$body.html(html.replace(/\[([^\]]+)\]/g, '<div class="shortcode-placeholder">$1</div>'));
}
fixListStyling();
});
}
}
});
}
// הכנת Off Canvas רק למובייל
function prepareOffCanvas() {
// הסתר כפתור במחשב, הצג במובייל
if (!isMobile()) {
$('.eptm-offcanvas-trigger').hide();
console.log('💻 מחשב - מסתיר כפתור');
// וודא שהתוכן גלוי במחשב
$('.eptm-offcanvas-body .elementor-shortcode').show();
$('.eptm-offcanvas-body > *').each(function() {
if ($(this).find('[data-listing-type]').length > 0) {
// יש תוכן של related-biz - הצג אותו
$(this).show();
}
});
// אם ה-Off Canvas מכיל תוכן שצריך להציג במחשב
$('.eptm-offcanvas, .eptm-filter-offcanvas').each(function() {
var $body = $(this).find('.eptm-offcanvas-body');
if ($body.length && $body.children().length > 0) {
// יש תוכן - אל תסתיר
console.log('💻 משאיר תוכן גלוי במחשב');
$(this).css({
'position': 'relative',
'display': 'block',
'right': 'auto',
'width': '100%',
'height': 'auto',
'box-shadow': 'none',
'z-index': 'auto',
'background': 'transparent'
});
// הסתר את ה-header והסגירה במחשב
$(this).find('.eptm-offcanvas-header').hide();
}
});
} else {
// מובייל - הכן Off Canvas רגיל
$('.eptm-offcanvas-trigger').show();
console.log('📱 מובייל - מציג כפתור');
$('.eptm-offcanvas, .eptm-filter-offcanvas').each(function() {
var id = $(this).attr('id');
// העבר לסוף body במובייל
if (!$(this).parent().is('body')) {
$(this).detach().appendTo('body');
}
// סטיילים למובייל
$(this).css({
'position': 'fixed',
'top': '0',
'right': '-100%',
'width': '85vw',
'max-width': '350px',
'height': '100vh',
'background': 'white',
'box-shadow': '-10px 0 40px rgba(0,0,0,0.5)',
'z-index': '2147483647',
'display': 'none',
'transition': 'right 0.3s ease',
'overflow-y': 'auto'
});
// הצג header במובייל
$(this).find('.eptm-offcanvas-header').show();
});
// הכן Overlays למובייל
$('.eptm-offcanvas-overlay').each(function() {
if (!$(this).parent().is('body')) {
$(this).detach().appendTo('body');
}
$(this).css({
'position': 'fixed',
'top': '0',
'left': '0',
'width': '100%',
'height': '100%',
'background': 'rgba(0,0,0,0.7)',
'z-index': '2147483646',
'display': 'none'
});
});
}
}
// תיקון עיצוב הרשימות
function fixListStyling() {
// הסר רווחים מיותרים
$('.eptm-offcanvas-body').find('br').remove();
$('.eptm-offcanvas-body').find('p:empty').remove();
// סדר מחדש רשימות עם מספרים
$('.eptm-offcanvas-body ul').each(function() {
$(this).find('li').each(function() {
var $li = $(this);
var $link = $li.find('a');
if ($link.length) {
// יש כבר לינק - רק תקן עיצוב
var text = $link.text();
var match = text.match(/(.+?)(\s*\(\d+\))/);
if (match) {
$link.html('<span class="item-name">' + match[1].trim() + '</span><span class="item-count">' + match[2] + '</span>');
}
} else {
// אין לינק - נסה ליצור
var text = $li.text();
var match = text.match(/(.+?)(\s*\(\d+\))/);
if (match) {
// נסה לנחש את ה-URL מהטקסט
var categoryName = match[1].trim();
var categorySlug = categoryName.toLowerCase()
.replace(/\s+/g, '-')
.replace(/[^\w\-א-ת]+/g, '');
// צור לינק
var link = '<a href="/category/' + categorySlug + '/">' +
'<span class="item-name">' + categoryName + '</span>' +
'<span class="item-count">' + match[2] + '</span>' +
'</a>';
$li.html(link);
}
}
});
});
// הוסף כותרת אם חסרה
$('.eptm-offcanvas-header').each(function() {
if (!$(this).find('h3').length) {
$(this).prepend('<h3>סינון תוצאות</h3>');
}
});
// תקן לינקים שבורים
$('.eptm-offcanvas-body a').each(function() {
var $link = $(this);
if (!$link.attr('href') || $link.attr('href') === '#') {
// לינק שבור - נסה לתקן
var text = $link.text().trim();
var slug = text.toLowerCase()
.replace(/\s+/g, '-')
.replace(/[^\w\-א-ת]+/g, '');
$link.attr('href', '/category/' + slug + '/');
}
});
}
// הפעל הכנות
fixMyListingZIndex();
prepareOffCanvas();
setTimeout(function() {
fixShortcodes();
fixListStyling();
}, 500);
// חזור על ההכנות בשינוי גודל חלון
$(window).resize(function() {
prepareOffCanvas();
});
// לחיצה על כפתור - רק במובייל
$(document).off('click.mobile-offcanvas').on('click.mobile-offcanvas', '.eptm-offcanvas-trigger', function(e) {
if (!isMobile()) return; // אל תעשה כלום במחשב
e.preventDefault();
e.stopPropagation();
console.log('📱 פתיחת Off Canvas במובייל');
var targetId = $(this).attr('data-target') || $(this).data('target');
if (!targetId) {
console.error('❌ אין data-target');
return false;
}
var $canvas = $('#' + targetId);
var $overlay = $('.eptm-offcanvas-overlay[data-target="' + targetId + '"]');
if ($canvas.length === 0) {
console.error('❌ לא נמצא Off Canvas');
return false;
}
// תקן z-index
fixMyListingZIndex();
// הצג Off Canvas
$canvas.css({
'display': 'block',
'z-index': '2147483647'
});
// הצג Overlay
$overlay.css({
'display': 'block',
'z-index': '2147483646'
});
// אנימציה
setTimeout(function() {
$canvas.css('right', '0').addClass('active');
$overlay.addClass('active');
fixShortcodes(); // תקן שורטקודים
fixListStyling(); // תקן עיצוב
}, 10);
// נעל גלילה
$('body').css('overflow', 'hidden');
return false;
});
// סגירה - רק במובייל
$(document).on('click.mobile-offcanvas', '.eptm-offcanvas-close, .eptm-offcanvas-overlay', function(e) {
if (!isMobile()) return;
e.preventDefault();
console.log('📱 סוגר Off Canvas');
$('.eptm-offcanvas, .eptm-filter-offcanvas').css('right', '-100%').removeClass('active');
setTimeout(function() {
$('.eptm-offcanvas, .eptm-filter-offcanvas').css('display', 'none');
}, 300);
$('.eptm-offcanvas-overlay').removeClass('active').css('display', 'none');
$('body').css('overflow', '');
});
// ESC לסגירה - רק במובייל
$(document).keyup(function(e) {
if (!isMobile()) return;
if (e.key === "Escape") {
$('.eptm-offcanvas, .eptm-filter-offcanvas').css('right', '-100%').removeClass('active');
setTimeout(function() {
$('.eptm-offcanvas, .eptm-filter-offcanvas').css('display', 'none');
}, 300);
$('.eptm-offcanvas-overlay').removeClass('active').css('display', 'none');
$('body').css('overflow', '');
}
});
// בדיקת סטטוס
setTimeout(function() {
console.log('📊 סטטוס:');
console.log(' מכשיר:', isMobile() ? 'מובייל' : 'מחשב');
console.log(' כפתור גלוי:', $('.eptm-offcanvas-trigger').is(':visible'));
console.log(' Off Canvas:', $('.eptm-offcanvas').length);
console.log(' תוכן:', $('.eptm-offcanvas-body').length ? 'קיים' : 'לא קיים');
}, 1000);
});
document.addEventListener('DOMContentLoaded', function() {
var starSvg = '<svg class=\"hkr-star-icon\" viewBox=\"0 0 24 24\" fill=\"white\"><path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/></svg>';
document.querySelectorAll('.single-listing .listing-rating:not(.listing-review-rating)').forEach(function(el) {
el.innerHTML = '<div class="hkr-wrap hkr-size-large"><div class="hkr-badge">' + starSvg + '<span class="hkr-score">10</span><span class="hkr-max">/10</span></div><span class="hkr-external"><span class="hkr-black-star">★</span><span class="hkr-count-text">27 המלצות וביקורות</span></span></div>';
el.classList.add('hkr-replaced');
});
});
(function(){
document.querySelectorAll('.hkcs').forEach(function(el){
const input = el.querySelector('.hkcs-input');
const results = el.querySelector('.hkcs-results');
const nonce = el.dataset.nonce;
const tax = el.dataset.tax;
let timeout = null;
let lastQ = '';
input.addEventListener('input', function(){
clearTimeout(timeout);
const q = this.value.trim();
if (q.length < 2) {
results.classList.remove('is-open');
lastQ = '';
return;
}
if (q === lastQ) return;
timeout = setTimeout(function(){
search(q);
}, 200);
});
input.addEventListener('focus', function(){
if (this.value.trim().length >= 2 && results.innerHTML) {
results.classList.add('is-open');
}
});
document.addEventListener('click', function(e){
if (!el.contains(e.target)) {
results.classList.remove('is-open');
}
});
async function search(q) {
lastQ = q;
el.classList.add('is-loading');
try {
const fd = new FormData();
fd.append('action', 'hk_cat_search');
fd.append('nonce', nonce);
fd.append('q', q);
fd.append('tax', tax);
const res = await fetch('https://haifakrayot.co.il/business/wp-admin/admin-ajax.php', {
method: 'POST',
body: fd
});
const json = await res.json();
if (json.success && json.data.length > 0) {
let html = '<ul class="hkcs-list">';
json.data.forEach(function(item){
html += '<li><a class="hkcs-item" href="' + item.url + '">';
html += '<span class="hkcs-name">' + item.name_hl + '</span>';
html += '<span class="hkcs-count">' + item.count + '</span>';
html += '</a></li>';
});
html += '</ul>';
results.innerHTML = html;
} else {
results.innerHTML = '<div class="hkcs-empty">לא נמצאו תוצאות</div>';
}
results.classList.add('is-open');
} catch(e) {
console.error('Search error:', e);
}
el.classList.remove('is-loading');
}
});
})();
(function() {
'use strict';
var offcanvas = document.getElementById('ivg-offcanvas');
var overlay = document.querySelector('.ivg-offcanvas-overlay');
var mainPanel = offcanvas ? offcanvas.querySelector('.main-panel') : null;
var triggers = document.querySelectorAll('[data-toggle="ivg-offcanvas"]');
var closeBtn = offcanvas ? offcanvas.querySelector('.ivg-offcanvas-close') : null;
var lastFocusedElement = null;
if (!offcanvas) return;
// Get all focusable elements in offcanvas
function getFocusableElements() {
return offcanvas.querySelectorAll(
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
);
}
function openOffcanvas(trigger, submenuId) {
lastFocusedElement = trigger || document.activeElement;
offcanvas.classList.add('active');
overlay.classList.add('active');
document.body.classList.add('ivg-offcanvas-open');
// Update aria attributes
offcanvas.setAttribute('aria-hidden', 'false');
triggers.forEach(function(t) {
t.setAttribute('aria-expanded', 'true');
});
// If submenuId provided, open that submenu directly
if (submenuId) {
setTimeout(function() {
showSubPanel(submenuId);
}, 100);
}
// Focus close button after transition
setTimeout(function() {
if (closeBtn) closeBtn.focus();
}, 300);
}
function closeOffcanvas() {
offcanvas.classList.remove('active');
overlay.classList.remove('active');
document.body.classList.remove('ivg-offcanvas-open');
// Update aria attributes
offcanvas.setAttribute('aria-hidden', 'true');
triggers.forEach(function(t) {
t.setAttribute('aria-expanded', 'false');
});
// Reset panels
setTimeout(function() {
if (mainPanel) mainPanel.classList.remove('shifted');
offcanvas.querySelectorAll('.sub-panel').forEach(function(panel) {
panel.classList.remove('active');
});
}, 300);
// Return focus to trigger
if (lastFocusedElement) {
lastFocusedElement.focus();
}
}
function showSubPanel(panelId) {
// Hide all panels first, then show the requested one
offcanvas.querySelectorAll('.sub-panel').forEach(function(panel) {
if (panel.dataset.panel !== panelId) {
panel.classList.remove('active');
}
});
if (mainPanel) mainPanel.classList.add('shifted');
var subPanel = offcanvas.querySelector('[data-panel="' + panelId + '"]');
if (subPanel) {
subPanel.classList.add('active');
// Focus back button in sub panel
var backBtn = subPanel.querySelector('.ivg-offcanvas-back');
if (backBtn) setTimeout(function() { backBtn.focus(); }, 300);
}
}
function showMainPanel() {
if (mainPanel) mainPanel.classList.remove('shifted');
offcanvas.querySelectorAll('.sub-panel').forEach(function(panel) {
panel.classList.remove('active');
});
}
function goBackToPanel(targetPanelId) {
if (targetPanelId === 'main') {
showMainPanel();
} else {
// Go back to a specific sub-panel
offcanvas.querySelectorAll('.sub-panel').forEach(function(panel) {
if (panel.dataset.panel === targetPanelId) {
panel.classList.add('active');
} else {
panel.classList.remove('active');
}
});
}
}
// Focus trap
function handleTabKey(e) {
if (!offcanvas.classList.contains('active')) return;
var focusable = getFocusableElements();
var firstFocusable = focusable[0];
var lastFocusable = focusable[focusable.length - 1];
if (e.shiftKey && document.activeElement === firstFocusable) {
e.preventDefault();
lastFocusable.focus();
} else if (!e.shiftKey && document.activeElement === lastFocusable) {
e.preventDefault();
firstFocusable.focus();
}
}
document.addEventListener('click', function(e) {
// Open trigger
var trigger = e.target.closest('[data-toggle="ivg-offcanvas"]');
if (trigger) {
// On desktop with dropdown, don't open offcanvas - use CSS hover instead
var isDesktop = window.innerWidth > 768;
var hasDropdown = trigger.closest('.ivg-header-icon-wrap');
if (isDesktop && hasDropdown) {
// Don't open offcanvas, let CSS hover handle it
// But still allow click to navigate if they click directly
return;
}
e.preventDefault();
var submenuId = trigger.dataset.openSubmenu || null;
openOffcanvas(trigger, submenuId);
return;
}
// Close button or overlay
if (e.target.closest('.ivg-offcanvas-close') || e.target.closest('[data-close="ivg-offcanvas"]')) {
closeOffcanvas();
return;
}
// Submenu trigger
var submenuTrigger = e.target.closest('[data-submenu]');
if (submenuTrigger) {
e.preventDefault();
showSubPanel(submenuTrigger.dataset.submenu);
return;
}
// Back button
var backBtn = e.target.closest('[data-back]');
if (backBtn) {
e.preventDefault();
var targetPanel = backBtn.dataset.back;
goBackToPanel(targetPanel);
return;
}
});
// Keyboard handling
document.addEventListener('keydown', function(e) {
// Escape key - close menu
if (e.key === 'Escape' && offcanvas.classList.contains('active')) {
closeOffcanvas();
return;
}
// Tab key - trap focus
if (e.key === 'Tab' && offcanvas.classList.contains('active')) {
handleTabKey(e);
}
});
// Sticky header scroll effect - works for all headers
var header = document.querySelector('.ivg-header-wrapper');
if (header) {
window.addEventListener('scroll', function() {
if (window.pageYOffset > 50) {
header.classList.add('is-scrolled');
} else {
header.classList.remove('is-scrolled');
}
}, { passive: true });
}
// ========================================
// SAFE TRIANGLE ALGORITHM (Amazon-style) - With Clone to Body
// ========================================
(function() {
var lastMousePos = { x: 0, y: 0 };
var closeTimeout = null;
var tolerance = 100;
var isDesktop = function() { return window.innerWidth >= 769; };
var activeWrap = null;
var activeDropdown = null;
var activeClone = null;
// Debounced mousemove for performance
var mouseMoveTimer = null;
document.addEventListener('mousemove', function(e) {
if (mouseMoveTimer) return;
mouseMoveTimer = setTimeout(function() {
lastMousePos = { x: e.clientX, y: e.clientY };
mouseMoveTimer = null;
}, 16); // ~60fps
}, { passive: true });
function isPointInTriangle(p, v1, v2, v3) {
var sign = function(p1, p2, p3) {
return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);
};
var d1 = sign(p, v1, v2);
var d2 = sign(p, v2, v3);
var d3 = sign(p, v3, v1);
var hasNeg = (d1 < 0) || (d2 < 0) || (d3 < 0);
var hasPos = (d1 > 0) || (d2 > 0) || (d3 > 0);
return !(hasNeg && hasPos);
}
// Cross-browser hover check - works on both original and clone
function isHovered(el) {
if (!el) return false;
var rect = el.getBoundingClientRect();
return (
lastMousePos.x >= rect.left &&
lastMousePos.x <= rect.right &&
lastMousePos.y >= rect.top &&
lastMousePos.y <= rect.bottom
);
}
function showDropdown(wrap, dropdown) {
hideDropdown();
var header = document.querySelector('.ivg-header-wrapper');
if (!header) return;
var headerRect = header.getBoundingClientRect();
// Clone dropdown and append to body
var clone = dropdown.cloneNode(true);
clone.className = 'ivg-header-dropdown ivg-dropdown-clone active';
clone.style.cssText =
'position:fixed!important;' +
'top:' + headerRect.bottom + 'px!important;' +
'left:0!important;right:0!important;' +
'width:100vw!important;' +
'z-index:99999999!important;' +
'opacity:1!important;visibility:visible!important;' +
'pointer-events:auto!important;display:block!important;' +
'background:' + getComputedStyle(dropdown).background + ';' +
'border-bottom:3px solid var(--ivg-accent);' +
'box-shadow:0 8px 25px rgba(0,0,0,0.15);';
document.body.appendChild(clone);
activeClone = clone;
dropdown.classList.add('active');
activeWrap = wrap;
activeDropdown = dropdown;
clone.addEventListener('mouseenter', function() {
clearTimeout(closeTimeout);
});
clone.addEventListener('mouseleave', function() {
closeTimeout = setTimeout(hideDropdown, 150);
});
}
function hideDropdown() {
if (activeClone) {
activeClone.remove();
activeClone = null;
}
document.querySelectorAll('.ivg-header-dropdown.active').forEach(function(d) {
d.classList.remove('active');
});
activeWrap = null;
activeDropdown = null;
}
function initDropdowns() {
if (!isDesktop()) return;
var iconWraps = document.querySelectorAll('.ivg-header-icon-wrap');
iconWraps.forEach(function(wrap) {
var dropdown = wrap.querySelector('.ivg-header-dropdown');
if (!dropdown) return;
wrap.addEventListener('mouseenter', function() {
if (!isDesktop()) return;
clearTimeout(closeTimeout);
showDropdown(wrap, dropdown);
});
wrap.addEventListener('mouseleave', function(e) {
if (!isDesktop()) return;
var wrapRect = wrap.getBoundingClientRect();
var cloneRect = activeClone ? activeClone.getBoundingClientRect() : { left: 0, top: 0, width: 0 };
// Check if mouse is moving towards dropdown (RTL aware)
var isMovingTowards = isPointInTriangle(
lastMousePos,
{ x: wrapRect.left, y: wrapRect.bottom },
{ x: wrapRect.right, y: wrapRect.bottom },
{ x: cloneRect.left + cloneRect.width / 2, y: cloneRect.top + 50 }
);
var delay = isMovingTowards ? tolerance : 50;
closeTimeout = setTimeout(function() {
if (!isHovered(wrap) && !isHovered(activeClone)) {
hideDropdown();
}
}, delay);
});
});
}
// Init on load
initDropdowns();
// Close dropdowns on resize to mobile
window.addEventListener('resize', function() {
if (!isDesktop() && activeClone) {
hideDropdown();
}
}, { passive: true });
})();
})();
document.addEventListener('DOMContentLoaded', function() {
var maxHeight = 200;
var btnText = 'קרא עוד';
var btnTextLess = 'הצג פחות';
// מצא את כל האלמנטים עם class read-more-content
document.querySelectorAll('.read-more-content').forEach(function(el) {
// בדוק אם כבר עטוף
if (el.classList.contains('read-more-wrap')) return;
// בדוק גובה
if (el.scrollHeight <= maxHeight + 30) return;
// עטוף
el.classList.add('read-more-wrap');
// צור כפתור
var btn = document.createElement('button');
btn.className = 'read-more-btn';
btn.innerHTML = '<span>' + btnText + '</span><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>';
btn.onclick = function() {
var isExpanded = el.classList.toggle('expanded');
btn.classList.toggle('expanded', isExpanded);
btn.querySelector('span').textContent = isExpanded ? btnTextLess : btnText;
};
el.parentNode.insertBefore(btn, el.nextSibling);
});
});
function nadlanoToggleShare(id) {
var wrap = document.getElementById(id);
wrap.classList.toggle('open');
}
document.addEventListener('click', function(e) {
if (!e.target.closest('.nadlano-share-wrap')) {
document.querySelectorAll('.nadlano-share-wrap.open').forEach(function(el) {
el.classList.remove('open');
});
}
});
function nadlanoCopyLink(url) {
navigator.clipboard.writeText(url).then(function() {
var toast = document.getElementById('nadlanoToast');
toast.textContent = 'הלינק הועתק';
toast.classList.add('show');
setTimeout(function() { toast.classList.remove('show'); }, 2500);
});
document.querySelectorAll('.nadlano-share-wrap.open').forEach(function(el) {
el.classList.remove('open');
});
}
(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
var hkTop = {"ajax":"https://haifakrayot.co.il/business/wp-admin/admin-ajax.php","nonce":"ceaab99d67"};
//# sourceURL=hk-top-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/hk-top-businesses/script.js
https://haifakrayot.co.il/business/wp-content/plugins/lawbuzz-lb10/assets/js/lb10.js
var smartCommentsData = {"ajaxUrl":"https://haifakrayot.co.il/business/wp-admin/admin-ajax.php","nonce":"ecdf75e37a","strings":{"reply":"\u05d4\u05d2\u05d1","cancel":"\u05d1\u05d9\u05d8\u05d5\u05dc","submit":"\u05e9\u05dc\u05d7 \u05ea\u05d2\u05d5\u05d1\u05d4","loading":"\u05d8\u05d5\u05e2\u05df...","error":"\u05e9\u05d2\u05d9\u05d0\u05d4 \u05d1\u05e9\u05dc\u05d9\u05d7\u05d4","success":"\u05d4\u05ea\u05d2\u05d5\u05d1\u05d4 \u05e0\u05e9\u05dc\u05d7\u05d4!","pending":"\u05d4\u05ea\u05d2\u05d5\u05d1\u05d4 \u05de\u05de\u05ea\u05d9\u05e0\u05d4 \u05dc\u05d0\u05d9\u05e9\u05d5\u05e8","emptyComment":"\u05e0\u05d0 \u05dc\u05db\u05ea\u05d5\u05d1 \u05ea\u05d2\u05d5\u05d1\u05d4","emptyName":"\u05e0\u05d0 \u05dc\u05d4\u05d6\u05d9\u05df \u05e9\u05dd","confirmDelete":"\u05d4\u05d0\u05dd \u05dc\u05de\u05d7\u05d5\u05e7 \u05ea\u05d2\u05d5\u05d1\u05d4 \u05d6\u05d5?","showReplies":"\u05d4\u05e6\u05d2 \u05ea\u05d2\u05d5\u05d1\u05d5\u05ea","hideReplies":"\u05d4\u05e1\u05ea\u05e8 \u05ea\u05d2\u05d5\u05d1\u05d5\u05ea","loadMore":"\u05d8\u05e2\u05df \u05e2\u05d5\u05d3"},"settings":{"allowReplies":"1","allowVotes":"1","allowMedia":"1","bubbleFlow":"1","themeColor":"#e74c3c","maxDepth":"3"}};
//# sourceURL=smart-comments-frontend-js-extra
https://haifakrayot.co.il/business/wp-content/plugins/smart-comments-plugin/public/js/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.34.2","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,"e_interactions":true,"e_editor_one":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":"0a6295cf7f"},"swiperClass":"swiper","settings":{"page":[],"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":32668,"title":"%D7%9C%D7%92%D7%95%D7%A8%20%D7%91%D7%97%D7%95%D7%A3%20%D7%94%D7%9B%D7%A8%D7%9E%D7%9C%20%D7%95%D7%A2%D7%AA%D7%9C%D7%99%D7%AA%20%D7%A2%D7%9C%20%D7%99%D7%93%20%D7%94%D7%99%D7%9D%20-%20%D7%A8%D7%99%D7%A0%D7%AA%20%D7%9C%D7%95%D7%99%20%D7%A0%D7%93%D7%9C%22%D7%9F%3A%20%D7%91%D7%99%D7%A7%D7%95%D7%A8%D7%95%D7%AA%2C%20%D7%94%D7%9E%D7%9C%D7%A6%D7%95%D7%AA%20%D7%95%D7%AA%D7%9E%D7%95%D7%A0%D7%95%D7%AA%20%C2%BB%20%D7%9E%D7%93%D7%93%20%D7%97%D7%99%D7%A4%D7%94%20%D7%95%D7%94%D7%A7%D7%A8%D7%99%D7%95%D7%AA","excerpt":"","featuredImage":"https:\/\/haifakrayot.co.il\/business\/wp-content\/uploads\/2025\/05\/b77633_44aac65e4dd14e1ea2193c8c53f092ea7Emv2-2-1024x728.png"}};
//# 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-content/plugins/elementor/assets/lib/swiper/v8/swiper.min.js
https://haifakrayot.co.il/business/wp-content/plugins/elementor/assets/lib/e-gallery/js/e-gallery.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-includes/js/comment-reply.min.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/single-listing.js
https://haifakrayot.co.il/business/wp-content/themes/my-listing/assets/dist/cts-carousel.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":"e35ad8365d","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":true},"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":"34b984b750"}},
"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() {
'use strict';
// Slider functionality
document.querySelectorAll('.hkbiz-slider-wrap').forEach(function(wrap) {
var slider = wrap.querySelector('.hkbiz-slider');
var slides = wrap.querySelectorAll('.hkbiz-slide');
var prevBtn = wrap.querySelector('.hkbiz-prev');
var nextBtn = wrap.querySelector('.hkbiz-next');
if (!slider || slides.length === 0) return;
var slidesToShow = parseInt(slider.dataset.slides) || 3;
var autoplay = slider.dataset.autoplay === 'true';
var currentIndex = 0;
var gap = 20;
function updateSlideWidths() {
var wrapWidth = wrap.offsetWidth;
var slideWidth = (wrapWidth - (gap * (slidesToShow - 1))) / slidesToShow;
slides.forEach(function(slide) {
slide.style.width = slideWidth + 'px';
slide.style.minWidth = slideWidth + 'px';
});
}
function goToSlide(index) {
var maxIndex = Math.max(0, slides.length - slidesToShow);
currentIndex = Math.max(0, Math.min(index, maxIndex));
var slideWidth = slides[0].offsetWidth + gap;
slider.style.transform = 'translateX(' + (currentIndex * slideWidth) + 'px)';
// Update ARIA
slides.forEach(function(slide, i) {
slide.setAttribute('aria-hidden', (i < currentIndex || i >= currentIndex + slidesToShow) ? 'true' : 'false');
});
}
updateSlideWidths();
goToSlide(0);
// Debounced resize handler for performance
var resizeTimeout;
window.addEventListener('resize', function() {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(function() {
updateSlideWidths();
goToSlide(currentIndex);
}, 150);
}, {passive: true});
if (prevBtn) prevBtn.addEventListener('click', function() { goToSlide(currentIndex - 1); });
if (nextBtn) nextBtn.addEventListener('click', function() { goToSlide(currentIndex + 1); });
// Keyboard navigation
wrap.addEventListener('keydown', function(e) {
if (e.key === 'ArrowLeft') goToSlide(currentIndex + 1);
if (e.key === 'ArrowRight') goToSlide(currentIndex - 1);
});
if (autoplay && slides.length > slidesToShow) {
var interval;
function startAutoplay() {
interval = setInterval(function() {
if (currentIndex >= slides.length - slidesToShow) {
goToSlide(0);
} else {
goToSlide(currentIndex + 1);
}
}, 4000);
}
function stopAutoplay() { clearInterval(interval); }
startAutoplay();
// Pause on hover/focus, resume on leave
wrap.addEventListener('mouseenter', stopAutoplay);
wrap.addEventListener('mouseleave', startAutoplay);
wrap.addEventListener('focusin', stopAutoplay);
wrap.addEventListener('focusout', startAutoplay);
}
});
// Load More functionality with proper nonce verification
document.querySelectorAll('.hkbiz-load-more').forEach(function(btn) {
btn.addEventListener('click', function() {
var wrap = this.closest('.hkbiz-mixed-grid');
var grid = wrap.querySelector('.hkbiz-layout-rows .hkbiz-grid');
if (!grid) return;
var page = parseInt(this.dataset.page) || 1;
var perPage = parseInt(this.dataset.total) || 20;
var termId = this.dataset.term || 0;
this.classList.add('loading');
this.textContent = 'טוען...';
this.setAttribute('aria-busy', 'true');
fetch(hkbiz_ajax.url, {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: 'action=hkbiz_load_more&term_id=' + termId + '&page=' + (page + 1) + '&per_page=' + perPage + '&nonce=' + hkbiz_ajax.nonce
})
.then(function(r) { return r.json(); })
.then(function(data) {
if (data.success && data.data.html) {
grid.insertAdjacentHTML('beforeend', data.data.html);
btn.dataset.page = page + 1;
btn.classList.remove('loading');
btn.textContent = 'תוצאות נוספות';
btn.setAttribute('aria-busy', 'false');
// Announce to screen readers
var liveRegion = document.getElementById('hkbiz-live-region');
if (!liveRegion) {
liveRegion = document.createElement('div');
liveRegion.id = 'hkbiz-live-region';
liveRegion.setAttribute('aria-live', 'polite');
liveRegion.setAttribute('aria-atomic', 'true');
liveRegion.className = 'screen-reader-text';
document.body.appendChild(liveRegion);
}
liveRegion.textContent = 'נטענו תוצאות נוספות';
if (!data.data.has_more) btn.style.display = 'none';
} else {
btn.style.display = 'none';
}
})
.catch(function() { btn.style.display = 'none'; });
});
});
});
window.addEventListener("DOMContentLoaded",(e=>{document.querySelectorAll('img[loading="lazy"]').forEach((e=>{e.getBoundingClientRect().top<=window.innerHeight&&(e.loading="eager")}))}));
(function(){
const boxes = document.querySelectorAll('.hkcs--mdd');
if(!boxes.length) return;const ajax = "https://haifakrayot.co.il/business/wp-admin/admin-ajax.php";function debounce(fn, ms){
let t; return function(){ clearTimeout(t); const args=arguments; t=setTimeout(()=>fn.apply(this,args), ms); }
}boxes.forEach(function(el){
const input = el.querySelector('.hkcs-input');
const results = el.querySelector('.hkcs-results');
const nonce = el.dataset.nonce || '';
const tax = el.dataset.tax || 'mixed';let lastQ = '';function close(){ results.classList.remove('is-open'); }document.addEventListener('click', function(e){
if(!el.contains(e.target)) close();
});async function runSearch(q){
lastQ = q;
el.classList.add('is-loading');try{
const fd = new FormData();
fd.append('action', 'hk_mdd_search');
fd.append('nonce', nonce);
fd.append('q', q);
fd.append('tax', tax);const r = await fetch(ajax, { method:'POST', credentials:'same-origin', body: fd });
const j = await r.json();if(q !== lastQ) return;if(j && j.success && Array.isArray(j.data) && j.data.length){
let html = '<ul>';
j.data.forEach(function(item){
const typeLabel = (item.type === 'region') ? 'עיר' : 'תחום';
html += '<li><a class="hkcs-item" href="'+ item.url +'">';
html += '<span><span class="hkcs-name">'+ item.name_hl +'</span> <span class="hkcs-type">('+typeLabel+')</span></span>';
html += '<span class="hkcs-count">'+ (item.count || '') +'</span>';
html += '</a></li>';
});
html += '</ul>';
results.innerHTML = html;
} else {
results.innerHTML = '<div class="hkcs-empty">לא נמצאו תוצאות</div>';
}results.classList.add('is-open');
} catch(e){
console.error('HK MDD search error', e);
} finally {
el.classList.remove('is-loading');
}
}const debounced = debounce(function(){
const q = (input.value || '').trim();
if(q.length < 2){ close(); return; }
runSearch(q);
}, 220);input.addEventListener('input', debounced);
input.addEventListener('focus', debounced);
input.addEventListener('keydown', function(e){
if(e.key === 'Escape') close();
});
});
})();
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;
});
});