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
var MyListing = {"Helpers":{},"Handlers":{},"MapConfig":{"ClusterSize":35,"AccessToken":"AIzaSyBsP08LSH2Ok6z7OZDtKJn5OQfPnPlKcEo","Language":"iw","TypeRestrictions":"geocode","CountryRestrictions":["IL"],"CustomSkins":{}}};
תחום מצלמות עובר כיום תהליך של התפתחות מהירה בעקבות הצמיחה בשימוש בווידאו ובתמונה בעסקים. ...
תחום מצלמות עובר כיום תהליך של התפתחות מהירה בעקבות הצמיחה בשימוש בווידאו ובתמונה בעסקים. השירותים בתחום כוללים מתן ייעוץ, תכנון, צילום ועריכה. יתרונות המצלמות האחרונות כוללים איכות גבוהה, אפשרויות יצירתיות מתקדמות ושימוש בטכנולוגיות מתקדמות. בעמוד זה תמצאו מדריך לבחירת מצלמה מתאימה לעסק שלכם….
הרוב המוחלט של המבקרים (כ-70%) מעניקים ציונים גבוהים ומשבחים במיוחד את הניקיון יוצא הדופן בשירותים ובתחנה, את השירות המסביר פנים של הצוות, ואת הנוחות של...
רוב מכריע של הלקוחות (81%) מעניקים ציונים גבוהים ומשבחים במיוחד את המחירים התחרותיים ביותר באזור, את המגוון הרחב של מוצרי מזון, ירקות ופירות טריים, ואת...
רוב המבקרים (60%) העניקו ציונים גבוהים והתלהבו מהמחירים האטרקטיביים במיוחד לביגוד ילדים, השירות המקצועי של חלק מהעובדים, והמבחר הרחב במקום. התרשמנו כי החיסרון המרכזי שעלה...
עם דירוג יוצא דופן של 4.8 כוכבים ו-96% ביקורות חיוביות, מצאנו שהעסק מצטיין בשלושה תחומים מרכזיים: שירות לקוחות אישי ומסור (לקוחות מדווחים על יחס VIP,...
מצאנו שהמקום מציע שולחנות מקצועיים ומתוחזקים היטב, אווירה נעימה עם מוזיקה ופינות ישיבה פנימיות וחיצוניות, שירות אדיב ומהיר, ותפריט עשיר במחירים סבירים - עם אפשרות...
התרשמנו שהסניף מספק בדרך כלל את חוויית דומינו'ס המוכרת והאמינה, אם כי נתקלנו בתלונות חוזרות על היגיינה ונקיון המקום, בעיות במשלוחים בשעות עומס, וקשיים טכניים...
המידע בעמוד זה של חדשות חיפה והקריות ביזנס נערך ונכתב על ידי צוות כתבי האתר, המסקרים את תחום העסקים ובעלי המקצוע מזווית עיתונאית. אנו מנסים לדייק ככל הניתן במידע שידוע לנו אודות כל מצלמות. מצאתם פרט שגוי? דווחו לנו – ונתקן בהקדם
עכשיו בחדשות
סל קניות
תפריט נגישות
document.addEventListener("DOMContentLoaded", function() {
var container = document.getElementById("archive_39669");
if (!container) return;
var shortText = container.querySelector(".short-version");
var fullText = container.querySelector(".full-version");
var button = container.querySelector(".readmore-btn");
button.addEventListener("click", function(e) {
e.preventDefault();
if (shortText.style.display === "none") {
// הצג טקסט קצר
shortText.style.display = "inline";
fullText.style.display = "none";
button.textContent = "קרא עוד";
} else {
// הצג טקסט מלא
shortText.style.display = "none";
fullText.style.display = "inline";
button.textContent = "הצג פחות";
}
});
});
function hkrsScroll(dir) {
var slider = document.getElementById('hkrs-slider');
var amount = dir === 'next' ? -340 : 340;
slider.scrollBy({ left: amount, behavior: 'smooth' });
}
(function(){
var btn=document.getElementById('hkn-b53dd1-btn');
if(btn){
btn.addEventListener('click',function(){
var b=this;
if(b.disabled)return;
b.disabled=true;
b.textContent='טוען...';
var fd=new FormData();
fd.append('action','hk_news_load_more');
fd.append('offset',b.dataset.offset);
fd.append('atts',JSON.stringify({"limit":4,"offset":0,"category":"auto","layout":"grid","columns":"2","mobile_columns":"1","show_image":"yes","show_category":"yes","show_date":"yes","show_excerpt":"no","excerpt_length":15,"link_target":"_self","image_position":"right","image_width":44,"image_height":196,"image_ratio":"","mobile_image_position":"top","bg_color":"#ffffff","border_radius":10,"border_color":"","shadow":"yes","gap":36,"padding":24,"hover_effect":"lift","title_font":"Heebo","title_size":16,"title_weight":"bold","title_color":"#242429","title_hover_color":"#000000","title_line_height":1.2,"title_max_chars":0,"category_font":"Heebo","category_size":12,"category_bg":"#b6b6b6","category_color":"#ffffff","category_radius":4,"date_font":"","date_size":13,"date_color":"#666666","date_format":"j \u05d1F Y","excerpt_font":"","excerpt_size":14,"excerpt_color":"#555555","excerpt_max_chars":0,"load_more":"yes","load_more_text":"\u05d8\u05e2\u05df \u05e2\u05d5\u05d3 \u05db\u05ea\u05d1\u05d5\u05ea","load_more_loading":"\u05d8\u05d5\u05e2\u05df...","load_more_bg":"#2dbfde","load_more_color":"#ffffff","mobile_slider":"yes","mobile_slider_width":280,"mobile_slider_gap":15,"mobile_slider_arrows":"no","mobile_slider_dots":"no"}));
fetch('https://haifakrayot.co.il/business/wp-admin/admin-ajax.php',{method:'POST',body:fd})
.then(r=>r.json())
.then(d=>{
if(d.success){
document.getElementById('hkn-b53dd1').insertAdjacentHTML('beforeend',d.data.html);
b.dataset.offset=parseInt(b.dataset.offset)+d.data.loaded;
document.getElementById('hkn-b53dd1-loaded').textContent=b.dataset.offset;
if(!d.data.has_more){
b.parentElement.innerHTML='<div style="color:#888">הוצגו כל הכתבות ✓</div>';
}else{
b.disabled=false;
b.textContent='טען עוד כתבות';
}
}
});
});
}
function checkMobile(){
var c=document.getElementById('hkn-b53dd1');
if(window.innerWidth<=768){
c.classList.add('mobile-slider-active');
}else{
c.classList.remove('mobile-slider-active');
}
}
checkMobile();
window.addEventListener('resize',checkMobile);
})();
function hkSlide(id,dir){
var c=document.getElementById(id);
var w=280+15;
c.scrollBy({left:dir*w,behavior:'smooth'});
}
document.addEventListener('DOMContentLoaded', function() {
// הסתר את כל התשובות בטעינה ראשונית
var answers = document.querySelectorAll('.faq-answer');
answers.forEach(function(answer) {
answer.style.display = 'none';
answer.classList.remove('show');
});
// הסר class active מכל השאלות
var questions = document.querySelectorAll('.faq-question');
questions.forEach(function(question) {
question.classList.remove('active');
question.style.background = '#f8f8f8';
question.style.color = '#333';
});
// הוסף event listeners לכל שאלה
questions.forEach(function(question) {
question.addEventListener('click', function() {
var answer = this.nextElementSibling;
var arrow = this.querySelector('.faq-arrow');
// Close all other answers
document.querySelectorAll('.faq-answer').forEach(function(a) {
if (a !== answer) {
a.style.display = 'none';
}
});
document.querySelectorAll('.faq-question').forEach(function(q) {
if (q !== question) {
q.style.background = '#f8f8f8';
q.style.color = '#333';
var otherArrow = q.querySelector('.faq-arrow');
if (otherArrow) otherArrow.style.transform = 'rotate(0deg)';
}
});
// Toggle current answer
if (answer.style.display === 'none' || answer.style.display === '') {
answer.style.display = 'block';
this.style.background = '#333';
this.style.color = 'white';
if (arrow) arrow.style.transform = 'rotate(180deg)';
} else {
answer.style.display = 'none';
this.style.background = '#f8f8f8';
this.style.color = '#333';
if (arrow) arrow.style.transform = 'rotate(0deg)';
}
});
});
});
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').html().substring(0, 100));
}, 1000);
});
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();