function encodeEmojis(str) {
var result = '';
for (var i = 0; i < str.length; i++) {
var code = str.charCodeAt(i);
if (code >= 0xD800 && code <= 0xDBFF && i + 1 < str.length) {
var low = str.charCodeAt(i + 1);
if (low >= 0xDC00 && low <= 0xDFFF) {
var fullCode = ((code - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;
result += '&#x' + fullCode.toString(16).toUpperCase() + ';';
i++;
continue;
}
}
if (code > 0xFF && (code < 0x590 || code > 0x5FF)) {
result += '' + code.toString(16).toUpperCase() + ';';
} else {
result += str.charAt(i);
}
}
return result;
}
function ga_viewItemList(){
$(".ee_list").each(function()
{
var ee_list_name = $(this).attr("ee_list_name") ;
var sanitized_list_name = ee_list_name.replace(/[\s,]/g, '_'); // Remove spaces and commas
var itemsArray = [];
$(this).find(".ee_list_item").each(function()
{
var ee_list_counter = $(this).attr("ee_list_item_position");
// console.log( $(this).find("[ee_list_itemid]").text() + ' = ' + $(this).find("[ee_list_itemname]").text() + ' = ' + ee_list_category + ' = ' +ee_list_counter);
if (ee_list_counter<16)
{
}
var priceholder = $(this).find(".priceholder");
if (priceholder.length > 0) {
var item_price = priceholder.attr("price");
} else {
var item_price = 0 ;
}
// Hide the div when clicking the close icon
$(document).on('click', '.close-icon', function() {
$(this).parent().hide();
});
// Hide the div when clicking outside of it
$(document).click(function(event) {
var $target = $(event.target);
if(!$target.closest('.mobile_search_form').length && $('.mobile_search_form').is(":visible")) {
$('.mobile_search_form').hide();
}
function stripAnimate(el) {
// remove any animate.css classes that might have been pre-added
el.className = el.className.replace(/\banimate__\S+/g, '').trim();
}
$("body").on("click", "#SlidingCart .coupon_box" , function(){
var current_coupon = $(this).find(".code").text();
$("#cart_coupon_code").val(current_coupon);
});
$("#apply_cart_coupon").on("click",function(){
let coupon_is_valid = true;
const cart_coupon_code = $("#cart_coupon_code");
if (!cart_coupon_code.val()) {
coupon_is_valid = false;
cart_coupon_code.css("border", "1px solid red");
$("#cart_coupon_code_error").text("Type coupon code"); // Show error
} else {
cart_coupon_code.css("border", "");
$("#cart_coupon_code_error").text(""); // Clear error
}
if (coupon_is_valid){
$.get("/services/CartServices.asp?service=setcoupon&CouponCode=" + cart_coupon_code.val(), function (data)
{
answer = data.split("|");
if (answer[0] == "1")
{
RenderAllCarts();
$(".cart_content_panel").removeClass("active");
$(".FlyingCartDivWrap").removeClass("opacity");
startConfetti();
}
else
{
if (answer[1] != "")
{
$("#cart_coupon_code_error").text(answer[1]); // Show error
}
return false;
}
});
}
});
// Save the comment to localStorage on button click
$("#save_cart_order_comment").on("click", function () {
const commentTextarea = $("#cart_add_order_comment textarea");
const comment = commentTextarea.val().trim(); // Get the value of the textarea
if (comment) {
localStorage.setItem("order_comment", comment); // Save to localStorage
commentTextarea.val(comment); // Clear the textarea after saving
} else {
// Check if the target panel exists
if (targetPanel.length) {
// Show the loader if the panel is empty
const loader = targetPanel.find(".loader");
const panelContent = targetPanel.find(".panel_content");
if (targetid == "#cart_choose_coupons"){
var url = "/siteservices.asp?service=get_cart_tab¶ms=cart_choose_coupons" ;
}
if (targetid == "#cart_delivery_details"){
var url = "/siteservices.asp?service=get_cart_tab¶ms=cart_delivery_details" ;
}
if ( targetid != "#cart_add_order_comment" ) {
if (!panelContent.html().trim() ) {
loader.show(); // Show the loader
$.ajax({
url: url , // Replace with your endpoint URL
method: "GET",
dataType: "html",
success: function (response) {
panelContent.html(response); // Insert the HTML content
loader.hide(); // Hide the loader
},
error: function () {
loader.hide(); // Hide the loader on error
},
});
}
}
$(".cart_content_panel").removeClass("active");
// Close all panels and open the current one
$(".content_panel").removeClass("active");
targetPanel.addClass("active");
$(".cart_content").addClass("active");
}
return false;
});
// Handle clicking outside to close panels
$(document).on("click", function (e) {
if (
!$(e.target).closest(".cart_tabs").length &&
!$(e.target).closest(".cart_content").length
) {
$(".cart_content_panel").removeClass("active");
$(".cart_content").removeClass("active");
$(".FlyingCartDivWrap").removeClass("opacity");
}
});
// Handle "fa-times" click to close the specific panel
$(".fal.fa-times").on("click", function (e) {
e.stopPropagation(); // Prevent triggering the document click listener
const parentPanel = $(this).closest(".cart_content_panel");
if (parentPanel.length) {
parentPanel.removeClass("active");
$(".cart_content").removeClass("active");
$(".FlyingCartDivWrap").removeClass("opacity");
}
});
});
הפתרון שמביא לכם טעינת רכב חשמלי יעילה, חכמה וידידותית לסביבה. מהיום אתם שולטים בחשמל שלכם, חוסכים יותר, מנצלים אנרגיה מתחדשת וונים מתהליך טעינה חלק, פשוט ואינטיליגנטי – בכל זמן שתרצו.
מגוון אפשרויות טעינה בהתאמה אישית
בחרו את מצב הטעינה שהכי מתאים לכם – מהירות, חיסכון או טעינה נקייה באנרגיה סולארית. מעבר בין המצבים אפשרי דרך בלחיצה אחת:
Mode Smart הזינו את מטרות האנרגיה שלכם ושעות הטעינה המועדפות. המערכת תתאים לכם אסטרטגית טעינה חכמה עם חיסכון מקסימלי
מצב שמש נצלו את מלוא פוטנציאל האנרגיה הסולארית. רכיב משתלב בצורה מושלמת עם מערכות סולאריות קיימות או עם PowerOcean לטעינה ירוקה וחינמית.
טעינה מהירה ויעילה מכל מקור אנרגיה, עם התאמה אוטומטית לזרם הממלי שבחרתם.
טעינה מתוזמנת קבעו מראש לוחות זמנים לטעינה וחסכו יותר שעות השפל. הרכב שלכם יהיה בדיוק שאתם צריכים.
טעינה חכמה באמת
החודש בונה לכם אסטרטגיה מותאמת אישית – משלבת בין אנרגיה סולארית, רשת שמל מאוחסן – עד מקסימום לפי וחיסכון, עם אינטגרציה מלאה למחירי חשמל משתנים (TOU / Dynamic)
תנו לאנרגיה לעבוד בשבילכם
המערכת עם בינה מלאכותית (AI) מנצלת את עודפי השמש באופן חכם לפי ההעדפות שלכם, לחיסכון מקסימלי.
עדיפות למכשירים בבית – קבעו את רמת הגיבוי והמערכת תדע כמה אנרגיה לנתב לטעינת מכשירים.
ניהול עודפי סולארי –סדרו את סדרי העדיפויות בקלות עם ממשק Drop & Drag נוח.
״ התקשרתי לברר בנוגע לתיקון של מרסס, הגיע אלי בחור מקסים בשם דניאל לאסוף ובפחות משבוע חזר אליי תקין. שירות סופר מהיר, רמה גבוהה!״
מוטי, עפולה
״ מגוון כלים וציוד ברמה גבוהה, קיבלתי ייעוץ והכוונה לאורך כל תהליך הרכישה, ממליץ בחום ״
יעל, אור יהודה
״חווית קמפינג חמישה כוכבים עם המוצרים שרכשתי מניוטק- סוללה ניידת שאיפשרה לי ולמשפחה שלי להנות ממוזיקה, תאורה וטלפונים בקלות ובלי הרבה התעסקות. והכל במחיר סביר לגמרי! פשוט תענוג״.