1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="he-IL"> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" /> 5<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE; chrome=1" /> 6<meta http-equiv="imagetoolbar" content="no"/> 7<title>öåø ÷ùø</title> 8<meta name="Keywords" content=""/> 9 10<meta name="Description" content=""/> 11<meta name="Monitor" content="medicon.co.il"/> 12
13<script> 14 15 16 var collectAnalytic = "1"; 17 var cookieconsent = false; 18 var cookieconsentapproved = document.cookie 19 .split('; ') 20 .find(function(row) { 21 return row.startsWith('cookieconsentapproved='); 22 }); 23 24 if (cookieconsentapproved) { 25 cookieconsentapproved = cookieconsentapproved.split('=')[1]; 26 } 27 28 if((cookieconsentapproved && cookieconsentapproved !== "declined") || collectAnalytic == "1" ) { 29 cookieconsent = true; 30 } 31 32 33 34// stash the true landing URL + referrer once per tab (consent-independent, sessionStorage only) - 35// used to restore the session's campaign source when gtag starts late (after consent) on a later page 36try { 37 if (!sessionStorage.getItem('eshop_landing')) { 38 sessionStorage.setItem('eshop_landing', JSON.stringify({ 39 u: String(location.href).substring(0, 2000), 40 r: String(document.referrer).substring(0, 500), 41 t: Date.now() 42 })); 43 } 44} catch (e) {} 45 46</script>
46 47 48<link rel="canonical" href="https://www.medicon.co.il/contact.asp?page=184" /> 49<link rel="icon" href="/itemfiles/favicon.ico" type="image/x-icon"/> 50 51 52 <link rel="stylesheet" href="/base.css?v=4.7.13"/> 53 54 55 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1"> 56 57 58 59
59<script language="javascript" src="/scripts/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
59 60
60<script src="/scripts/head.js?v=4.7.13" type="text/javascript"></script>
60 61
61<script defer="defer" src="/scripts/jquery/scripts.js?v=4.7.13" type="text/javascript"></script>
61 62 <link rel="stylesheet" type="text/css" href="/scripts/jquery/fancybox/jquery.fancybox.css?v=2.1.4" media="screen" /> 63
63<script defer="defer" type="text/javascript" src="/scripts/jquery/fancybox/jquery.fancybox.pack.js?v=2.1.4"></script>
63 64 <link rel="stylesheet" type="text/css" href="/scripts/jquery/revolution/fonts/font-awesome/css/font-awesome.min.css?v=5.18"> 65 66 67 68 69 70
71<script type="text/javascript"> 72 var langdir='rtl'; 73 var AjaxAddToCart_Msg = "äîåöø ðåñó ìòâìä áäöìçä"; 74 var RenderAllCartsFlag = ""; 75</script>
75 76 77 78
78<script src="/scripts/ajax.js" type="text/javascript"></script>
78 79 80 81 82 83 84 <link rel="stylesheet" href="/inc/FloatingCart/FloatingCart.min.css?v=4.7.13"/> 85
85<script type="text/javascript" src="/inc/FloatingCart/Scripts/floatingcart.js?v=4.7.13"></script>
85 86 87 88 89
89<script> 90 var currentCurrencySign = "¤"; 91 var currentCurrency = "0"; 92 var currentSiteLang = "HE"; 93 var CartAjaxQuantityName = "ôøéèéí áòâìä"; 94 var CartAjaxTotalName = "ñä"ë"; 95 var CurrencyMinimumOrder = "0"; 96 var CartAjaxContinueTxt = "äîùê ì÷ðåú"; 97 var CartAjaxBuyingTxt = "ì÷åôä"; 98 var CartAjaxAddTxt = "äîåöø ðåñó ìòâìä áäöìçä" ; 99 var stats_si_org = "0"; 100 101 var js_cartid = ''; 102 103 </script>
103 104 105 106 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/jqueryplugins.css?v=4.7.13" /> 107 <link rel="stylesheet" href="https://www.medicon.co.il/scripts/jquery/JqueryUI/css/ui-lightness/jquery-ui-1.8.21.custom.css" /> 108
108<script src="https://www.medicon.co.il/scripts/jquery/JqueryUI/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
108 109 110 111 <link rel="stylesheet" type="text/css" href="/scripts/bootstrap/css/bootstrap.min.css"> 112
112<script type="text/javascript" defer="defer" src="/scripts/bootstrap/js/bootstrap.min.js"></script>
112 113 114 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/esh-templates.css?v=4.7.13" /> 115
115<script type="text/javascript" defer="defer" src="/template_inc/eshopstoresframework/js/esh-templates.js?v=4.7.13"></script>
115 116 117 118 119 <link rel="stylesheet" href="/template_inc/eshopstoresframework/css/Open_Sans_Hebrew/opensans.css" /> 120 121 122 123 124 <!--[if lt IE 8]> 125 <link rel="stylesheet" type="text/css" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/ie.css" /> 126 <![endif]--> 127 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/main.css?v=4.7.13" /> 128 129 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/templates/VD/css/custom.css?v=4.7.13" /> 130 131 <!--[if IE 7]> 132 <link rel="stylesheet" type="text/css" href="https://www.medicon.co.il/template_inc/eshopstoresframework/templates/VD/css/Ie7.css" /> 133 <![endif]--> 134 135
135<script src="https://www.medicon.co.il/scripts/jquery/jquery.carouFredSel-6.2.1-packed.js" type="text/javascript"></script>
135 136 137 <style> 138 139 #sidebar .categories .content a , #secondsideBar .categories .content a 140 { 141 background: none repeat scroll 0 0 inherit !important ; 142 143 } 144 #sidebar .categories .content a:hover , #sidebar .categories li.current > a 145 , #secondsideBar .categories .content a:hover , #secondsideBar .categories li.current > a 146 { 147 background: none repeat scroll 0 0 inherit !important ; 148 149 150 } 151 152 body 153 {background-color: rgb(255,255,255);} 154 155 #pl_web_page 156 { 157 background-image:url("/template_inc/eshopstoresframework/DesignRoller/images/bgs/bg_t_0.png"); 158 background-attachment:fixed; 159 background-position:top left; 160 background-repeat:repeat; 161 } 162 163 #header .header_wrap 164 { 165 166 167 background: none repeat scroll 0% 0% rgb(0); 168 169 background: none repeat scroll 0% 0% rgba(0, 0); 170 } 171 172 173 #footer 174 { 175 background-color: ; 176 } 177 178 #footer .footer_wrap 179 { 180 181 background: none repeat scroll 0% 0% rgb(0); 182 183 background: none repeat scroll 0% 0% rgba(0, 0); 184 } 185 186 a.add-to-cart , .special-box a.add-to-cart,.product-prices a.add-to-cart 187 { 188 background-color: #139c13; 189 color: #000000; 190 } 191 192 div.maindivCenter-wrap 193 { 194 195 196 background:none; 197 -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFCFC,endColorstr=#FFFFFCFC); 198 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFCFC,endColorstr=#FFFFFCFC); 199 zoom: 1; 200 201 202 background: rgba(255,252,252 , 1 ); 203 } 204 205 #sidebar 206 { 207 208 background:none; 209 -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#66829CA3,endColorstr=#66829CA3); 210 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#66829CA3,endColorstr=#66829CA3); 211 zoom: 1; 212 213 background: rgba(130,156,163 , 0.4 ); 214 } 215 216 .products-box-titles ,.block.homepage .title,.block .title 217 { 218 background:none repeat scroll 0 0 rgb(35,125,30); 219 220 221 color: #000000 !important; 222 223 } 224 225 </style> 226 227<!--[if IE 9]> 228<style> 229 #header .menu ,#header .smallcart ,#sidebar .block .content , #secondsideBar .block .content,#header .categories,ul.productBoxes .boxItem 230 ,.homepage.block.spacial-items .jcarousel-container , #defProductboxesTbl .jcarousel-container ,#slider-700-nav a 231 ,#slider-700-nav a.activeSlide ,.maindivCenter ,#sidebar ,#secondsideBar,#header .menu li:h
231over a, #header .menu li.sfHover a, #header .menu li.sfHover li:hover a 232 ,#header .breadcrumb,#header .spaciel-items-wide .content, .spaciel-items-wide .content,#footer .menu ul,.products-page .block.miscfileds 233 ,.articles-thumnails ,.articles-single ,#header .userbar ,div.maindivCenter-wrap 234 { 235 filter: none; 236 } 237</style> 238<![endif]--> 239 240 241 242
242<script type="text/javascript"> 243 244 function encodeEmojis(str) { 245 var result = ''; 246 for (var i = 0; i < str.length; i++) { 247 var code = str.charCodeAt(i); 248 if (code >= 0xD800 && code <= 0xDBFF && i + 1 < str.length) { 249 var low = str.charCodeAt(i + 1); 250 if (low >= 0xDC00 && low <= 0xDFFF) { 251 var fullCode = ((code - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000; 252 result += '&#x' + fullCode.toString(16).toUpperCase() + ';'; 253 i++; 254 continue; 255 } 256 } 257 if (code > 0xFF && (code < 0x590 || code > 0x5FF)) { 258 result += '&#x' + code.toString(16).toUpperCase() + ';'; 259 } else { 260 result += str.charAt(i); 261 } 262 } 263 return result; 264 } 265 266 function ga_viewItemList(){ 267 $(".ee_list").each(function() 268 { 269 var ee_list_name = $(this).attr("ee_list_name") ; 270 var sanitized_list_name = ee_list_name.replace(/[\s,]/g, '_'); // Remove spaces and commas 271 272 var itemsArray = []; 273 274 275 $(this).find(".ee_list_item").each(function() 276 { 277 278 var ee_list_counter = $(this).attr("ee_list_item_position"); 279 // console.log( $(this).find("[ee_list_itemid]").text() + ' = ' + $(this).find("[ee_list_itemname]").text() + ' = ' + ee_list_category + ' = ' +ee_list_counter); 280 if (ee_list_counter<16) 281 { 282 283 284 285 } 286 287 288 var priceholder = $(this).find(".priceholder"); 289 if (priceholder.length > 0) { 290 var item_price = priceholder.attr("price"); 291 } else { 292 var item_price = 0 ; 293 } 294 295 296 var item = { 297 item_id: $(this).find(".item-name a").attr("ee_list_itemid"), 298 item_name: $(this).find(".item-name a").attr("ee_list_itemname"), 299 item_brand: $(this).find(".item-name a").attr("ee_list_itembrand"), 300 item_category: $(this).find(".item-name a").attr("ee_list_category"), 301 price: item_price, 302 quantity:1, 303 index: ee_list_counter, 304 item_list_id: ee_list_name, 305 item_list_name: ee_list_name 306 }; 307 308 itemsArray.push(item); 309 310 }); 311 312 313 314 }); 315} 316function ga4_viewItemList(){ 317 $(".ee_list").each(function() 318 { 319 var ee_list_name = $(this).attr("ee_list_name") ; 320 var sanitized_list_name = ee_list_name.replace(/[\s,]/g, '_'); // Remove spaces and commas 321 322 var itemsArray = []; 323 324 325 $(this).find(".ee_list_item").each(function() 326 { 327 328 var ee_list_counter = $(this).attr("ee_list_item_position"); 329 330 331 332 var priceholder = $(this).find(".priceholder"); 333 if (priceholder.length > 0) { 334 var item_price = priceholder.attr("price"); 335 } else { 336 var item_price = 0 ; 337 } 338 339 340 var item = { 341 item_id: $(this).find(".item-name a").attr("ee_list_itemid"), 342 item_name: $(this).find(".item-name a").attr("ee_list_itemname"), 343 item_brand: $(this).find(".item-name a").attr("ee_list_itembrand"), 344 item_category: $(this).find(".item-name a").attr("ee_list_category"), 345 price: item_price, 346 quantity:1, 347 index: ee_list_counter, 348 item_list_id: ee_list_name, 349 item_list_name: ee_list_name 350 }; 351 352 itemsArray.push(item); 353 354 }); 355 356 357 358 }); 359} 360var google_analytics_loaded = false; 361 function loadGoogleAnalytics() { 362 363 } 364 365 if (cookieconsent == true) { 366 $(document).ready(function() { 367 loadGoogleAnalytics(); 368 }); 369 } 370 </script>
370 371 372
372<script> 373 var google_tag_loaded = false; 374 375 function loadGoogleTag() { 376 377 378 379 } 380 // Consent Mode v2: gtag always loads; consent state (granted/denied) is set 381 // inside loadGoogleTag before the script is appended 382 $(document).ready(function() { 383 loadGoogleTag(); 384 }); 385 </script>
385 386 387 388 389
389<script> 390 var load_tiktok_pixel = false; 391 function loadTiktokPixel() { 392 393 } 394 395 if (cookieconsent == true) { 396 $(document).ready(function() { 397 loadTiktokPixel(); 398 }); 399 } 400 </script>
400 401 402 403
404<script> 405var load_facebook_pixel = false; 406function loadFacebookPixel() { 407 408 409 } 410 if (cookieconsent == true) { 411 $(document).ready(function() { 412 loadFacebookPixel(); 413 }); 414 } 415</script>
415 416 417 418
419<script type="text/javascript"> 420 var cart_opened = false; 421 var cart_add_to_cart = false; 422 var cart_remove_from_cart = false; 423 424 function datecountdown(){ 425 426 $('.datecountdown').each(function() 427 { 428 var tempdate = $(this).attr("date"); 429 var tempitemid = $(this).attr("itemid"); 430 var isRule = $(".rule").length; 431 $(this).countdown( 432 { 433 date: tempdate, 434 render: function (date) 435 { 436 var daysHundred = Math.floor(date.days / 100); 437 var daysTens = Math.floor((date.days % 100) / 10); 438 var daysOnes = date.days % 10; 439 var hourTens = Math.floor(date.hours / 10); 440 var hourOnes = date.hours % 10; 441 var minTens = Math.floor(date.min / 10); 442 var minOnes = date.min % 10; 443 var secTens = Math.floor(date.sec / 10); 444 var secOnes = date.sec % 10; 445 var totalHours = date.days * 24 + date.hours; 446 var totalHourTens = Math.floor(totalHours / 10); 447 var totalHourOnes = totalHours % 10; 448 if (totalHours > 80) 449 { 450 451 this.el.innerHTML = "<span class='days'>"+date.days+"</span><em>:</em><span class='hours'>"+this.leadingZeros(date.hours)+"</span><em>:</em><span class='min'>"+this.leadingZeros(date.min)+"</span><em>:</em><span class='sec'>"+this.leadingZeros(date.sec)+"</span>"; 452 453 454 // Check if any of the days variables is truthy 455 456 if (daysHundred) { 457 this.el.innerHTML = '<div><span class="days"><div>' + daysHundred + '</div><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>'; 458 } else if (daysHundred == 0 && daysTens > 0 && daysOnes > 0) { 459 this.el.innerHTML = '<div><span class="days"><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>'; 460 } else if (daysHundred == 0 && daysTens > 0 && daysOnes == 0) { 461 this.el.innerHTML = '<div><span class="days"><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>'; 462 } else if (daysHundred == 0 && daysTens == 0 && daysOnes > 0) { 463 this.el.innerHTML = '<div><span class="days"><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>'; 464 } else if (daysHundred == 0 && daysTens == 0 && daysOnes == 0) { 465 // Display the days element 466 this.el.innerHTML = '<div style="display:none;"><span class="days" ><div>' + daysHundred + '</div><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span><em>:</em></div><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>'; 467 } 468 469 } 470 else 471 { 472 473 this.el.innerHTML = "<span class='days'>"+date.days+"<b>éîéí</b></span><em>:</em><span class='hours'>"+this.leadingZeros(date.hours)+"</span><em>:</em><span class='min'>"+this.leadingZeros(date.min)+"</span><em>:</em><span class='sec'>"+this.leadingZeros(date.sec)+"</span>"; 474 475 if(totalHours > 0){ 476 this.el.innerHTML = '<div><span class="hours"><div>' + totalHourTens + '</div><div>' + totalHourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>'; 477 } 478 else{ 479 this.el.innerHTML = '<div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>'; 480 } 481 482 } 483 484 }, 485 onEnd: function() 486 { 487 488 setTimeout( 489 function() 490 { 491 $.get("/siteservices.asp?service=deals_end¶ms="+ tempitemid + "&rule_id=" , function(data) 492 { 493 if(data == "1" ) 494 { 495 window.location.reload(); 496 } 497 }); 498 }, 3000); 499 } 500 }); 501 }); 502 } 503 504function preloadAdjacentImages(carousel, count) {
505 let visibleItems = $(carousel).find('.owl-item.active').map(function() { return this; }).get(); 506 visibleItems.forEach(function(item, index) { 507 $(item).nextAll().addBack().slice(0, count).find('img[loading="lazy"]').each(function() { 508 this.setAttribute('src', this.getAttribute('data-src') || this.getAttribute('src')); 509 this.removeAttribute('loading'); // Remove the lazy loading attribute once the image is loaded 510 }); 511 }); 512} 513 514 515 var mobile_breadcrumb_flag = false; 516 function get_factory_url(element_id) { 517 518 var url = "/factory.asp?id=" + element_id ; 519 520 // Function to check if ASP Classic parameter is empty or not 521 function checkParamEmpty(paramValue) { 522 return paramValue !== "" && paramValue !== undefined && paramValue !== null; 523 } 524 525 // Append parameters to the URL only if they are not empty 526 var params = { 527 "cat": "", 528 "cat1": "", 529 "cat2": "", 530 "SV_SCRIPT_NAME": "/contact.asp", 531 "FriendlyReq": "", 532 "itemident": "", 533 "PageHead": "%F6%E5%F8+%F7%F9%F8", 534 "pageid": "184", 535 "Qsearch": "", 536 "MiscFieldsNames": "", 537 "IN_Name": "", 538 "OrderID": "", 539 "qmanufact" : "", 540 }; 541 542 for (var key in params) { 543 if (checkParamEmpty(params[key])) { 544 url += "&" + key + "=" + params[key]; 545 } 546 } 547 548 return url; 549 } 550 function mobile_breadcrumb() { 551 552 553 554 if ($(window).width() < 801) { 555 if ($(".header_breadcrumb_mobile").length == 0 ) { 556 $(".mobile_header").after($(".header_breadcrumb").html()); 557 $(".breadcrumb").wrap("<div class='header_breadcrumb_mobile'> </div>"); 558 } 559 } 560 561 562 563 } 564 565 566 function account_verification_success ( param ){ 567 //if ( $("#lightpopup.user_connect").is(":visible") ){ 568 location.reload(); 569 //} 570 } 571 572 function show_sms_code_validation_form( param ) 573 { 574 $(".user_phone_login_div").hide(); 575 $(".account_verification_div").show(); 576 } 577 578 function dynamicform() { 579 $("form.dynamic").each(function () { 580 581 $(this).validate({ 582 submitHandler: function (form) { 583 584 var data = $(form).serialize(); 585 var action = $(form).attr("action"); 586 var messagediv = $(form).find(".messagediv"); 587 var reload = $(form).attr("reload"); 588 var onsuccess = $(form).attr("onsuccess"); 589 $.post( 590 action, 591 data, 592 function (data) { 593 if (data != '') { 594 array = data.split("|") 595 if (array[0] == "0") { 596 $(messagediv).html("<div class='error'>" + array[1] + "</div>"); 597 } 598 if (array[0] == "1") { 599 if (reload == "1") 600 { 601 location.reload(); 602 } 603 else 604 { 605 if ( typeof onsuccess == 'undefined' ){ 606 $(messagediv).html("<div class='success'>" + array[1] + "</div>"); 607 } 608 else 609 { 610 611 // console.log(" call function " + onsuccess ); 612 613 window[onsuccess](""); 614 } 615 } 616 } 617 } 618 } 619 ); 620 } 621 }); 622 623 }); 624 } 625 626 627 $.fn.isInViewport = function() { 628 var elementTop = $(this).offset().top; 629 var elementBottom = elementTop + $(this).outerHeight(); 630 var viewportTop = $(window).scrollTop() ; 631 var viewportBottom = viewportTop + $(window).height() + 200 ; 632 return elementBottom > viewportTop && elementTop < viewportBottom; 633 }; 634 635 $.fn.isInViewportScroll = function() { 636 var elementTop = $(this).offset().top; 637 var elementBottom = elementTop + $(this).outerHeight(); 638 var viewportTop = $(window).scrollTop() + 200 ; 639 var viewportBottom = viewportTop + $(window).height() ; 640 return elementBottom > viewportTop && elementTop < viewportBottom; 641 }; 642 643 $.fn.imageLoad = function(fn){ 644 this.load(fn); 645 this.each( function() {
646 if ( this.complete && this.naturalWidth !== 0 ) { 647 $(this).trigger('load'); 648 } 649 }); 650 } 651 652 653 $(document).ready(function () 654 { 655 656 $("body").on("click",".login_with_username_password",function(){ 657 $(".user_phone_login_container").hide(); 658 $(".user_login_container").show(); 659 localStorage.setItem('lastLoginForm', 'username'); // Save the choice 660 661 return false; 662 }); 663 664 $("body").on("click",".login_with_phone_number",function(){ 665 $(".user_phone_login_container").show(); 666 $(".user_login_container").hide(); 667 localStorage.setItem('lastLoginForm', 'phone'); // Save the choice 668 return false; 669 }); 670 671 //add order by to category if cookie exist 672 var ProdsOrderBy = $.cookie('ProdsOrderBy'); 673 if ( ProdsOrderBy != "" ){ 674 $(".breadcrumb-item a").each( function(){ 675 var breadcrumb_url = $(this).attr("href"); 676 if ( breadcrumb_url.indexOf("/category/") > 0 && breadcrumb_url.indexOf("?") == -1 ) { 677 $(this).attr("href" , breadcrumb_url + "?orderby=" + ProdsOrderBy ); 678 } 679 }); 680 } 681 682 $("img[data-src]").each(function() 683 { 684 if ( $(this).isInViewport() ) 685 { 686 $(this).attr("src" , $(this).attr("data-src") ); 687 $(this).removeAttr("data-src") ; 688 calculate_icons_position(); 689 } 690 }); 691 692 $("#sticky_header img[data-src]").each(function() { 693 $(this).attr("src" , $(this).attr("data-src") ); 694 $(this).removeAttr("data-src") ; 695 }); 696 697 698 699 }); 700 701 702 703 $(document).ready(function () 704 { 705 var $container = $('.itembox-style-4 .productBoxes'); 706 // initialize 707 $container.masonry({ 708 columnWidth: 0, 709 itemSelector: '.boxItem' 710 }); 711 $container.imagesLoaded(function () { 712 $container.masonry(); 713 }); 714}); 715 716 function isValidPhoneNumber(phoneNumber) { 717 const length = phoneNumber.length; 718 if (phoneNumber[0] !== '0') { 719 return false; 720 } 721 if (length === 9 && /^0((2|3|4|8|9)[0-9]{7}|(2|3|4|8|9)[0-9]{6})$/.test(phoneNumber)) { 722 return true; 723 } 724 if (length === 10 && /^0((5[0-8]|7[1-9])[0-9]{7}|(2|3|4|8|9))$/.test(phoneNumber)) { 725 return true; 726 } 727 return false; 728 } 729 730 function widget_form(){ 731 $(".widget_form").each(function(){ 732 var $form = $(this); 733 $form.validate({ 734 submitHandler: function(form) { 735 var phoneNumber = $(form).find("[name='Phone']").val(); // assuming the input field name for phone number is 'Phone' 736 if( phoneNumber !== ""){ 737 if(!isValidPhoneNumber(phoneNumber)) { 738 alert('äëðñ îñôø èìôåï ú÷éï'); 739 return; 740 } 741 } 742 743 var data = $(form).serialize(); 744 var action = $(form).attr("action"); 745 var messagediv = $(form).next(".messagediv"); 746 747 $.post( 748 action, 749 data, 750 function(data) { 751 752 if (typeof CaptchaReCall === 'function') { 753 CaptchaReCall(); 754 } 755 756 if (data != "") { 757 var array = data.split("|") 758 if (array[0] == "0") { 759 $(messagediv).html("<div class='error'>" + array[1] + "</div>"); 760 761 } 762 if (array[0] == "1") { 763 $(messagediv).html("<div class='success'>" + array[1] + "</div>"); 764 $(form).hide(); 765 766 if (cookieconsent == true) { 767 768 } 769 } 770 } 771 } 772 ); 773 } 774 }); 775 }); 776} 777 778 function miniuserbar_login() 779 { 780 781 782 783 $(document).on({ 784 mouseenter: function(){ 785 786 if ($("#miniuserbar .toggle-hover i").length) 787 { 788 var icon_obj = $("#miniuserbar .toggle-hover i"); 789 var icon_position = $(icon_obj).position(); 790 var icon_width = $(icon_obj).width(); 791 var icon_height = $(icon_obj).height(); 792 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 793 794 if ($("#miniuserbar").hasClass("open-right")) 795 { 796 $("#miniuserbarholder.loginh
796older").css({ 797 "top" : caluclate_top + 8 +"px", 798 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 799 "right": "auto" 800 }); 801 } 802 else{ 803 804 $("#miniuserbarholder.loginholder").css({ 805 "top" : caluclate_top + 8 +"px", 806 "left" : (icon_position.left*1) + (icon_width/2*1) - 325 + "px" , 807 "right": "auto" 808 }); 809 } 810 } 811 else 812 { 813 var icon_obj = $("#miniuserbar.dynamic_view .login_block .userlogin_link"); 814 var icon_position = $(icon_obj).position(); 815 var icon_width = $(icon_obj).width(); 816 var icon_height = $(icon_obj).height(); 817 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 818 819 if ($("#miniuserbar").hasClass("open-right")) 820 { 821 $("#miniuserbarholder.loginholder").css({ 822 "top" : caluclate_top + 8 +"px", 823 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 824 "right": "auto" 825 }); 826 } 827 else 828 { 829 $("#miniuserbarholder.loginholder").css({ 830 "top" : caluclate_top + 8 +"px", 831 /* "right" : 18 + "px" ,*/ 832 "left": "auto" 833 }); 834 } 835 } 836 $("#miniuserbarholder.loginholder").show(); 837 return false; 838 }, 839 mouseleave: function(){ 840 $("#miniuserbarholder.loginholder").hide(); 841 return false; 842 } 843 },"div#miniuserbar.dynamic_view .login_block"); 844 845 846 } 847 848 function mini_userbar_element(){ 849 if ($("#miniuserbar.dynamic_view").length) 850 { 851 852 if ($("#miniuserbar.dynamic_view .login_block.open_window").length) 853 { 854 miniuserbar_login(); 855 } 856 if ($("#miniuserbar.dynamic_view .registration_block.open_window").length) 857 { 858 859 860 861 $("body").on({ 862 mouseenter: function(){ 863 var icon_obj = $("#miniuserbar.dynamic_view .registration_block .register_link"); 864 var icon_position = $(icon_obj).position(); 865 var icon_width = $(icon_obj).width(); 866 var icon_height = $(icon_obj).height(); 867 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 868 869 if ($("#miniuserbar").hasClass("open-right")) 870 { 871 $("#miniuserbarholder.registerholder").css({ 872 "top" : caluclate_top + 8 +"px", 873 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 874 "right": "auto" 875 }); 876 } 877 else 878 { 879 $("#miniuserbarholder.registerholder").css({ 880 "top" : caluclate_top + 8 +"px", 881 // "right" : (icon_position.left*1) + (icon_width/2*1) - 55 + "px" , 882 "right" : 0, 883 "left": "auto" 884 }); 885 } 886 887 $("#miniuserbarholder.registerholder").show(); 888 return false; 889 }, 890 mouseleave: function(){ 891 $("#miniuserbarholder.registerholder").hide(); 892 return false; 893 } 894 }, "div#miniuserbar.dynamic_view .registration_block"); 895 896 897 898 } 899 } 900 901 else{ 902 903 $("body").on({ 904 mouseenter: function(){ 905 if ($("#miniuserbar .toggle-hover i").length) 906 { 907 var icon_obj = $("#miniuserbar .toggle-hover i"); 908 var icon_position = $(icon_obj).position(); 909 var icon_width = $(icon_obj).width(); 910 var icon_height = $(icon_obj).height(); 911 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 912 913 if ($("#miniuserbar").hasClass("open-right")) 914 { 915 $("#miniuserbarholder").css({ 916 "top" : caluclate_top + 7 +"px", 917 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 918 "right": "auto" 919 }); 920 } 921 else{ 922 923 $("#miniuserbarholder").css({ 924 "top" : caluclate_top + 7 +"px", 925 "left" : (icon_position.left*1) + (icon_width/2*1) - 325 + "px" , 926 "right": "auto" 927 }); 928 } 929 } 930 931 $("#miniuserbarholder").show(); 932 return false; 933 }, 934 mouseleave: function(e){
935 if(e.relatedTarget != null){ 936 cartpopuptimer = setTimeout(function (){ 937 $("#miniuserbarholder").hide(); 938 }, 6000 ); 939 return false; 940 } 941 } 942 }, "#miniuserbar"); 943 944 } 945 } 946 947 948 949 cartpopuptimer = setTimeout(function () 950 { 951 952 953 }, 6000 ); 954 955 956 957 958 function resize_menu_items () 959{ 960var menu_maxHeight = 0; 961$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").css("height", ""); 962$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").each(function () { 963 if ($(this).outerHeight(true) > menu_maxHeight ) { menu_maxHeight = $(this).outerHeight(true); } 964}); 965 966 967 968 969$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").css("height", menu_maxHeight + "px"); 970 971} 972 function dynamicStickyCart(){ 973 // disable dyanmic sticky small screen 974 if ( $(window).width() > 800 ) 975 { 976 977 $(".dynamic-sticky").dynamic_sticky(); 978 if ($("#header").find(".fixed-top").length ) 979 { 980 var campainHeight=0; 981 if($(".campain.slidefromtop").length){ 982 campainHeight=$("#header").offset().top; 983 } 984 var header_height = $("#header").find(".fixed-top").height() + 10 + campainHeight ; 985 $('<style>.dynamic-sticky.is_stuck{margin-top:' + header_height + 'px}</style>').appendTo( document.head ); 986 } 987 988 if ($("#sticky_header").length ) 989 { 990 var campainHeight=0; 991 if($(".campain.slidefromtop").length){ 992 campainHeight=$("#sticky_header").offset().top; 993 } 994 var header_height = $("#sticky_header").height() + 10 + campainHeight; 995 $('<style>.dynamic-sticky.is_stuck{margin-top:' + header_height + 'px}</style>').appendTo( document.head ); 996 } 997 998 } 999 } 1000 1001 1002 1003 function OpenSmallCart() 1004 { 1005 1006 1007 clearTimeout(cartmobilepopuptimer); 1008 if ( !$("#mobile_minicart").is(':visible') ) 1009 { 1010 //$("#mobile_header .header_smallcart").trigger("click"); 1011 mobile_minicart_toggle("2"); 1012 } 1013 cartmobilepopuptimer = setTimeout(function() 1014 { 1015 //$("#mobile_header .header_smallcart").trigger("click"); 1016 mobile_minicart_toggle("3"); 1017 }, 6000 ); 1018 1019 1020 } 1021 1022 1023 function OpenSmallWishCart() 1024 { 1025 1026 } 1027 1028 function submitsearchform(obj) 1029 { 1030 if (cookieconsent == true) { 1031 1032 } 1033 if (typeof ( obj ) != 'undefined') 1034 { 1035 $(obj).submit(); 1036 1037 search_form_submited = true; 1038 1039 // Find the submit button within the form 1040 var submitButton = $(obj).find("button[type='submit']"); 1041 1042 // Disable the submit button 1043 submitButton.prop("disabled", true); 1044 1045 } 1046 else 1047 { 1048 $('form[name="SearchFrm"]').submit(); 1049 1050 search_form_submited = true; 1051 1052 // Find the submit button within the form 1053 var submitButton = $('form[name="SearchFrm"]').find("button[type='submit']"); 1054 1055 // Disable the submit button 1056 submitButton.prop("disabled", true); 1057 1058 } 1059 1060 return false; 1061 } 1062 1063 let search_form_submited = false; 1064 1065 // Attach the function to the window's load event 1066 function enableSubmitButton() { 1067 try { 1068 1069 if ( $("#Button1").length ){ 1070 document.getElementById("Button1").disabled = false; 1071 } 1072 1073 if ( $("#right_srch_str").length ){ 1074 document.getElementById("right_srch_str").disabled = false; 1075 } 1076 1077 var searchForms = $("form[name='SearchFrm']"); 1078 searchForms.each(function(index) { 1079 // Find the submit button within each form 1080 var submitButton = $(this).find("button[type='submit']"); 1081 // Disable the submit button 1082 submitButton.prop("disabled", true); 1083 }); 1084 1085 } catch (e) {} 1086 } 1087 window.addEventListener("unload", enableSubmitButton); 1088 1089 function change_product_box_total(id) 1090 { 1091 var Num_After_dot = "2"; 1092 var temp_dropDecimals = 0; 1093 if (Num_After_dot == "1" || Num_After_dot == "2" ) 1094 { 1095 temp_dropDecimals = 2; 1096 } 1097 1098 var quan = $(id).parents("li").find("input[name=quantity]").val(); 1099 var quan_base = $(id).parents("li").attr("quan_base"); 1100 if(!$.isNumeric(quan_base)){quan_base = 1;} 1101 if(!$.isNumeric(quan)){quan = 1;} 1102 1103 var newtotal = $(id).attr("price")*quan/quan_base; 1104 $(id).html(newtotal.toFixed(Num_After_dot)).formatCurrency({ 1105 groupDigits: true , symbol: '', 1106 roundToDecimalPlace: temp_dropDecimals 1107 }); 1108 } 1109 1110 1111 $(window).on("load",function() 1112 { 1113 $(".slider-auto").css( 'height' , $(".slider-auto img:first").height()+'px'); 1114 $(".slider-auto").css( 'width' , $(".slider-auto img:first").width()+'px'); 1115 $(".slider-700").css( 'height' , $(".slider-700 img:first").height()+'px'); 1116 $(".slider-940").css( 'height' , $(".slider-940 img:first").height()+'px'); 1117 1118 1119 1120 resize_menu_items (); 1121 1122} 1123 1124 1125 ); 1126 1127 1128 1129 1130 1131 function user_connect() 1132 { 1133 $.get("/siteservices.asp?service=user_connect", function(data) 1134 { 1135 lightpopup (data,'user_connect') ; 1136 1137 dynamicform(); 1138 1139 }); 1140 } 1141 1142function es_tooltip () 1143 { 1144 $(".es_tooltip").qtip({ 1145 overwrite: false, 1146 position: { 1147 1148 my: "top center", 1149 at: "bottom center", 1150 viewport: $(document.body) 1151 1152 1153 }, 1154 style: { 1155 classes: "qtip-light qtip-rounded" 1156 }, 1157 content: { 1158 1159 text: function (event, api) { return $(this).find("span.content").html(); } 1160 }, 1161 show: { 1162 ready: false 1163 } 1164 1165 1166 }); 1167 } 1168 1169var resizeTimer; 1170 1171 1172 1173 if( $(window).width() <= 800 ) 1174 { 1175 if ( $("#mobile_header").length ) 1176 {} 1177 else 1178 { 1179 clearTimeout(resizeTimer); 1180 resizeTimer = setTimeout(function() { 1181 1182 $.ajax({
1183 url: get_factory_url( "mobile_header" ) , 1184 }).done(function (data) 1185 { 1186 $("#mobile_header_holder").html(data) 1187 dynamicform(); 1188 1189 }); 1190 1191 }, 250); 1192 } 1193 } 1194 1195 $(window).on('resize', function () 1196 { 1197 if ( $("#mobile_header").length ) 1198 {} 1199 else 1200 { 1201 clearTimeout(resizeTimer); 1202 resizeTimer = setTimeout(function() { 1203 1204 $.ajax({ 1205 url:get_factory_url( "mobile_header" ), 1206 }).done(function (data) 1207 { 1208 $("#mobile_header_holder").html(data) 1209 dynamicform(); 1210 }); 1211 1212 }, 250); 1213 } 1214 1215 }) 1216 1217 1218 1219 1220 $(window).on('resize scroll', function () 1221 { 1222 1223 $(document).ready (function() 1224 { 1225 1226 1227 1228 1229 $("img[data-src]").each(function() 1230 { 1231 if ( $(this).isInViewportScroll() ) 1232 { 1233 $(this).attr("src" , $(this).attr("data-src") ); 1234 $(this).removeAttr("data-src") ; 1235 calculate_icons_position(); 1236 } 1237 }); 1238 1239 1240 if ( $("div.lazyscroll").length) 1241 { 1242 $("div.lazyscroll").each(function () 1243 { 1244 var element = $(this); 1245 //console.log ($(this).attr("id")); 1246 if ( $(element).isInViewport() ) 1247 { $(element).removeClass("lazyscroll"); 1248 $.ajax({
1249 url: get_factory_url ( $(this).attr("id") ) , 1250 }).done(function (data) 1251 { 1252 1253 $(element).html(data); 1254 $(element).show(); 1255 dynamicform(); 1256 mobile_breadcrumb(); 1257 }); 1258 } 1259 }); 1260 } 1261 resize_menu_items (); 1262 }); 1263 }); 1264 1265 $(document).ready (function() 1266 { 1267 1268 $("img[data-src]").each(function() 1269 { 1270 if ( $(this).isInViewport() ) 1271 { 1272 $(this).attr("src" , $(this).attr("data-src") ); 1273 $(this).removeAttr("data-src") ; 1274 1275 } 1276 }); 1277 1278 $(".sectionitems .owl-carousel img[data-src]").each(function(){ 1279 $(this).attr("src" , $(this).attr("data-src") ); 1280 $(this).removeAttr("data-src") ; 1281 }); 1282 1283 $(".megamenu img[data-src]").each(function() 1284 { 1285 $(this).attr("src" , $(this).attr("data-src") ); 1286 $(this).removeAttr("data-src") ; 1287 }); 1288 1289 $(".MiscFieldsIcons img[data-src]").each(function() 1290 { 1291 $(this).attr("src" , $(this).attr("data-src") ); 1292 $(this).removeAttr("data-src") ; 1293 }); 1294 1295 1296 $("#item-relativeitems-popup img[data-src]").each(function() 1297 { 1298 $(this).attr("src" , $(this).attr("data-src") ); 1299 $(this).removeAttr("data-src") ; 1300 }); 1301 1302 if ( $("div.lazyload").length) 1303 { 1304 $("div.lazyload").each(function () 1305 { 1306 var element = $(this); 1307 var element_id = $(this).attr("id"); 1308 $.ajax({
1309 url: get_factory_url( element_id ), 1310 }).done(function (data) 1311 { 1312 1313 $(element).html(data); 1314 dynamicform(); 1315 mobile_breadcrumb(); 1316 datecountdown(); 1317 1318 $(element).find("img[data-src]").each(function() 1319 { 1320 $(this).attr( "src" , $(this).attr("data-src") ); 1321 $(this).removeAttr("data-src") ; 1322 }); 1323 1324 }); 1325 }); 1326 } 1327 1328 1329 1330 es_tooltip(); 1331 1332 1333 1334 1335 //currencies 1336 $("body").on( "click" , ".currencies_switch a, .currencies_switch input[type='radio']" , function () { 1337 var current_currancy = $(this); 1338 if (current_currancy.hasClass("active")) { return false; } 1339 var currency_value = current_currancy.attr("data"); 1340 if (current_currancy.is("input[type='radio']")) { 1341 currency_value = current_currancy.val(); 1342 } 1343 if (!currency_value || currency_value == "") { 1344 return false; 1345 } 1346 $.ajax({
1347 url: "/siteservices.asp?service=currencies_switch¶ms="+ currency_value , 1348 async:false, 1349 }).done(function(data) 1350 { 1351 if (data == "1") 1352 { 1353 location.reload(); 1354 } 1355 }); 1356 return false; 1357 }); 1358 1359 $("body").on( "change" , ".currencies_switch select" , function () { 1360 var currency_value = $(this).val(); 1361 if (!currency_value || currency_value == "") { 1362 return false; 1363 } 1364 $.ajax({ 1365 url: "/siteservices.asp?service=currencies_switch¶ms="+ currency_value , 1366 async:false, 1367 }).done(function(data) 1368 { 1369 if (data == "1") 1370 { 1371 location.reload(); 1372 } 1373 }); 1374 }); 1375 1376 1377 //prevent from contact header close when autocomplete is chosen 1378 1379 setTimeout(function(){ 1380 $(".header_contactform .contactform form.widget_form input.form-control[type='text']").on('focus', function() { 1381 $('.header_contactform .block.contactform').addClass('hovered'); 1382 }).on('blur', function() { 1383 setTimeout(function(){ 1384 $('.header_contactform .block.contactform').removeClass('hovered'); 1385 },3000); 1386 }); 1387 1388 $(".header_contactform .contactform form input[type='text']").on('focus', function() { 1389 $('.header_contactform .block.contactform').addClass('hovered'); 1390 }).on('blur', function() { 1391 setTimeout(function(){ 1392 $('.header_contactform .block.contactform').removeClass('hovered'); 1393 },3000); 1394 }); 1395 }, 1000); 1396 1397 1398 1399 1400 $("body").on({ 1401 mouseenter: function(){ 1402 $(this).find(".image_1").hide(); 1403 $(this).find(".image_2").show(); 1404 }, 1405 mouseleave: function(){ 1406 $(this).find(".image_2").hide(); 1407 $(this).find(".image_1").show(); 1408 } 1409 }, '.icon_switch'); 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 //numbering 1421 $(".es_numbering_element").each(function() 1422 { 1423 1424 1425 $(this).find(".ProperyName").addClass("es_number_title"); 1426 $(this).find(".ProperyLinkName").addClass("es_number_title"); 1427 $(this).find(".product-deliverydate > p").addClass("es_number_title"); 1428 1429 1430 }); 1431 1432 $(".es_numbering_container").each(function() 1433 { 1434 var numbering = 1; 1435 var titlecounter = $(".es_number_title").length ; 1436 $(".es_number_title").each(function(){ 1437 1438 if ( titlecounter > 1 ) 1439 { 1440 $(this).prepend("<span class='es_number'>"+ numbering +"</span>"); 1441 } 1442 else 1443 { 1444 $(this).addClass("nonumber"); 1445 } 1446 numbering = numbering + 1 ; 1447 }); 1448 $(".es_numbering_layout_4 .es_number_title").each(function(){ 1449 $(this).append("<span class='border-line'></span>"); 1450 }); 1451 1452 }); 1453 1454 1455 1456 1457 $("body").on({ 1458 mouseenter: function(){ 1459 $(this).parent().find(".ItemBoxPromotionInfo").show(); 1460 }, 1461 mouseleave: function(){ 1462 $(this).parent().find(".ItemBoxPromotionInfo").hide(); 1463 } 1464 }, ".ProductBox_promotion .promotion_image"); 1465 1466 1467 1468 1469 1470 $("body").on("click",".button_open_id", function() 1471 { 1472 var widget_open_id = $( this ).attr("openonwidgetid"); 1473 1474 if ($(widget_open_id).is(":visible" )) 1475 { 1476 $(widget_open_id).hide(); 1477 } 1478 else 1479 { 1480 $(widget_open_id).show(); 1481 1482 } 1483 1484 return false; 1485 1486 }); 1487 1488 //menu images switch 1489 $("body").on({ 1490 mouseenter: function(){ 1491 $(this).find("img").eq(0).attr("src",$(this).find("img").eq(0).attr("image-hover")) 1492 }, 1493 mouseleave: function(){ 1494 $(this).find("img").eq(0).attr("src",$(this).find("img").eq(0).attr("image-source")) 1495 } 1496 }, ".switch_image"); 1497 1498 1499 1500 // quickview start 1501 $("body").on("click",".quickview_lightpopup .image" , function() { 1502 var temp_src = $(this).find("img").attr("src"); 1503 $(".boxItem .image img").each( function() { 1504 if ( $(this).attr("src") == temp_src ) 1505 { 1506 $(this).parents(".boxItem").find(".product_quickview").trigger("click"); 1507 } 1508 }); 1509 return false; 1510 }); 1511 1512 $("body").on("click",".boxItem .product_quickview",function(){ 1513 1514 var next_item = ''; 1515 var previous_item = ''; 1516 1517 if ( $(this).parents(".boxItem").next().is('li') ) 1518 { 1519 tempobj = $(this).parents(".boxItem").next().find(".boxPicture"); 1520 next_item = tempobj.html(); 1521 } 1522 1523 if ( $(this).parents(".boxItem").prev().is('li') ) 1524 { 1525 tempobj = $(this).parents(".boxItem").prev().find(".boxPicture"); 1526 previous_item = tempobj.html(); 1527 } 1528 1529 1530 data = "<div class='product'><a href='"+$(this).parents(".boxItem").find(".image").attr("href")+"' id='quickview_product_link' class='hide'>ìîòáø ìãó îåöø</a><div class='loader'></div><iframe id='quickview_iframe' scrolling='no' frameborder='0' width='100%' src='"+$(this).attr("href")+"'></iframe></div><div class='nav'><div class='navImage'><span class='imgnavSpan'>äáà</span>" + previous_item +" </div><div class='navImage'><span class='imgnavSpan'>
1530ä÷åãí</span> "+ next_item +"</div></div>"; 1531 1532 1533 1534 1535 lightpopup (data,"quickview_lightpopup"); 1536 $("#quickview_iframe").hide(); 1537 $("#quickview_iframe").on("load" ,function(){ 1538 $("#quickview_iframe").show(); 1539 $(".loader").hide(); 1540 }); 1541 1542 $('.navImage').each(function () { 1543 var navspan = ""; 1544 navspan = $(this).find(".imgnavSpan"); 1545 $(this).find(".image").append(navspan); 1546 }); 1547 return false; 1548 }); 1549 // quickview end 1550 1551 /*whatsapp start*/ 1552 1553 $("body").on("click",".wame_whatsapp",function(){ 1554 if (cookieconsent == true) { 1555 1556 } 1557 }); 1558 1559 $("body").on("click",".whatsapp_share,.header_whatsapp,a.fa-whatsapp,#stickey_whatsapp,.whatsapp.btn",function(){ 1560 1561 var whatsapp = $(this); 1562 var whatsapp_product_image = $('meta[property="og:image"]').attr('content'); 1563 var whatsapp_product_url = window.location.href; 1564 var whatsapp_product_title = $(document).find("title").text(); 1565 1566 if ( $(this).hasClass("linktopage") ) 1567 { 1568 var whatsapp_product_image = $(this).attr('data-image'); 1569 var whatsapp_product_url = $(this).attr('data-href'); 1570 var whatsapp_product_title = $(this).attr('data-title'); 1571 } 1572 1573 if (cookieconsent == true) { 1574 1575 } 1576 1577 $.ajax({
1578 url: "/siteservices.asp?service=whatsapp_save&title="+whatsapp_product_title+"&image="+ whatsapp_product_image +"&url="+ whatsapp_product_url , 1579 async:false, 1580 }).done(function(data) 1581 { 1582 var redirect_url = $(whatsapp).attr("href") + "https://www.medicon.co.il/whatsapp.asp?id=" + data ; 1583 //window.location.href = redirect_url; 1584 window.open(redirect_url); 1585 }); 1586 1587 return false; 1588 }); 1589 /*whatsapp end*/ 1590 1591 1592 1593 1594 $("li.parent:last-child").addClass("last"); 1595 1596 $("body").on("click",".filter_link",function(){ 1597 // $(this).parent().parent().find(".misc_chk").prop("checked", true); 1598 1599 if ( $(this).parent().parent().find(".misc_chk").is(":checked") == true ){ 1600 $(this).parent().parent().find(".misc_chk").prop("checked", false); 1601 } 1602 1603 $(this).parent().parent().find(".misc_chk").trigger("click"); 1604 return false; 1605 }); 1606 1607 $("body").on("click",".miscfileds .misc_chk",function(){ 1608 1609 var checkedCount = $(".miscfileds .misc_chk:checked").length; 1610 var sameFieldCheckedCount = $(this).closest(".misc_section").find(".misc_chk:checked").not(this).length; 1611 1612 if (sameFieldCheckedCount >= 2) { 1613 alert("You can only select up to 2 options per field"); 1614 $(this).prop("checked", false); 1615 } else if (checkedCount > 4 && sameFieldCheckedCount == 0) { 1616 alert("ðéúï ìáçåø òã 4 îàôééðéí"); 1617 $(this).prop("checked", false); 1618 } else { 1619 location.href = $(this).val(); 1620 } 1621 1622 1623 }); 1624 1625 dependonwidget(); 1626 1627 1628 dynamicStickyCart(); 1629 $("body").on( "submit" , ".NewsLatterFrm", function() 1630 { 1631 var form = $(this) ; 1632 if ( $(this).find("input[name='FirstName']").length ) 1633 { 1634 if ( $(this).find("input[name='FirstName']").val() == "" ) 1635 { 1636 alert("äëðñ ùí îìà"); 1637 $(this).find("input[name='FirstName']").focus(); 1638 return false; 1639 } 1640 } 1641 1642 var emailInput = $(this).find("input[name='Email']"); 1643 var email = $.trim(emailInput.val()); 1644 var emailPlaceholder = emailInput.attr("placeholder") || ""; 1645 if (email === emailPlaceholder) email = ""; 1646 if (email != "") 1647 { 1648 var i=email.indexOf("@"); 1649 var i2=email.indexOf("@",i+1); 1650 var j=email.indexOf(".",i); 1651 var k=email.indexOf(","); 1652 var kk=email.indexOf(" "); 1653 var jj=email.lastIndexOf(".") + 1; 1654 var leng = email.length; 1655 if ((i>0)&&(j>(i+1))&&(k==-1)&&(kk==-1)&&(leng-jj >= 2)&&(leng-jj <= 3)&&(i2==-1)) 1656 { 1657 1658 } 1659 else 1660 { 1661 alert("ëúåáú äîééì ùâåéä"); 1662 emailInput.focus(); 1663 return false; 1664 } 1665 } 1666 else 1667 { 1668 alert("ëúåáú äîééì ùâåéä"); 1669 emailInput.focus(); 1670 return false; 1671 } 1672 1673 if ( $(this).find("input[name='agreetoterms']").length ) 1674 { 1675 if ( $(this).find("input[name='agreetoterms']").is(":checked") == false ) 1676 { 1677 $(this).find("input[name='agreetoterms']").focus(); 1678 alert("àðà äñëí ìú÷ðåï äàúø"); 1679 return false; 1680 } 1681 } 1682 1683 1684 if ( $(this).find("input[name='privacy']").is(":checked") == false ) 1685 { 1686 $(this).find("input[name='privacy']").focus(); 1687 alert("éù ìñîï àú äúéáä ëãé ìàùø àú äúðàéí åäîãéðéåú."); 1688 return false; 1689 } 1690 1691 1692 $.post('/siteservices.asp?service=addtonewsletter', $(form).serialize(), function(data) 1693 { 1694 1695 data = data + '|||'; 1696 data = data.split("|"); 1697 if (data[0]=="1") 1698 { 1699 $(form).parent().html('<div class=\'success alert alert-success\'>'+data[1]+'</div>'); 1700 $(form).html(""); 1701 } 1702 else 1703 { 1704 $(form).find(".status").addClass("error alert alert-danger"); 1705 $(form).find(".status").html(data[1]); 1706 } 1707 return false; 1708 } ); 1709 1710 return false 1711 }); 1712 1713 1714 1715 $.extend($.validator.messages, 1716 { 1717 required: "ùãä æä äéðå çåáä", 1718 remote: "àðà ú÷ï ùãä æä.", 1719 email: "àðà äëðñ ëúåáú îééì ú÷éðä.", 1720 url: "àðà äëðñ ëúåáú URL ú÷éðä.", 1721 date: "àðà äëðñ úàøéê ðëåï.", 1722 dateISO: "äëðñ îéãò ðëåï.", 1723 number: "àðà äëðñ îñôø ú÷éï.", 1724 digits: "àðà äëðñ ø÷ ñôøåú.", 1725 creditcard: "äëðñ îñôø ëøèéñ àùøàé ú÷éï.", 1726 equalTo: "äëðñ ùåá àú àåúå äòøê.", 1727 maxlength: $.validator.format("ìà ðéúï ìäëðéñ éåúø î {0} úååéí."), 1728 minlength: $.validator.format("àðà äëðñ ìôçåú {0} úååéí."), 1729 rangelength: $.validator.format("àðà äëðñ òøê áéï {0} ì {1} úååéí."), 1730 range: $.validator.format("àðà äëðñ òøê áéï {0} ì {1} úååéí."), 1731 max: $.validator.format("{àðà äëðñ òøê ôçåú àå ùååä ì {0"), 1732 min: $.validator.format("{àðà äëðñ òøê âãåì àå ùååä ì {0") 1733 }); 1734 1735 dynamicform(); 1736 1737 1738 1739 1740 widget_form(); 1741 1742 $("body").on("click",".lightpopup.html",function() 1743 { 1744 var lightpopup_id = $(this).attr("lightpopup_id") ; 1745 var lightpopup_class = $(this).attr("lightpopup_class") ; 1746 var lightpopup_html = $('#'+lightpopup_id).html(); 1747 lightpopup(lightpopup_html , lightpopup_class); 1748 return false; 1749 }); 1750 1751 $("body").on("click","#image_mobile_enlarge",function() 1752 { 1753 1754 if ( $("#enlargeIcon a").length ) 1755 { 1756 $("#enlargeIcon a").trigger("click"); 1757 } 1758 else 1759 { 1760 var lightpopup_id = $(this).attr("lightpopup_id") ; 1761 var lightpopup_class = $(this).attr("lightpopup_class") ; 1762 var lightpopup_html = $('#'+lightpopup_id).html(); 1763 lightpopup(lightpopup_html , lightpopup_class); 1764 var image_src = $('.'+lightpopup_class).find("img").attr("src"); 1765 var image_src = image_src.replace("_large", ""); 1766 $('.'+lightpopup_class).find("img").attr("src",image_src); 1767 } 1768 1769 return false; 1770 1771 }); 1772 1773 $("body").on("click",".lightpopup.iframe",function(){ 1774 lightpopup("<iframe scrolling='no' frameborder='0' width='100%' src="+$(this).attr("href")+">" , $(this).attr("lightpopup_class") ); 1775 return false; 1776 }); 1777 1778 $("body").on("click",".user_connect .switchregister",function(){ 1779 $(".user_connect #user_login_div").hide(); 1780 $(".user_connect #user_account_recovery").hide(); 1781 $(".user_connect .user_account_recovery").hide(); 1782 $(".user_connect #user_account_register").show(); 1783 }); 1784 1785 1786 $("body").on("click",".account_verification_new_number",function(){ 1787 var $section = $(this).parents(".user_phone_login_container"); 1788 $section.find(".user_phone_login_div").show(); 1789 $section.find(".account_verification_div").hide(); 1790 }); 1791 1792 $("body").on("click",".user_connect .switchpassword",function(){ 1793 $(".user_connect #user_login_div").hide(); 1794 $(".user_connect #user_account_recovery").show(); 1795 $(".user_connect .user_account_recovery").show(); 1796 }); 1797 1798 $("body").on("click",".account_verification_resend_number",function(){ 1799 var $section = $(this).parents(".user_phone_login_container"); 1800 $section.find(".messagediv").html(""); 1801 $section.find(".user_phone_login_form").submit(); 1802 }); 1803 1804 $("body").on("click",".switchlogin",function(){ 1805 $(".user_connect #user_login_div").show(); 1806 $(".user_connect #user_account_recovery").hide(); 1807 $(".user_connect .user_account_recovery").hide(); 1808 1809 $(".user_account_recovery").hide(); 1810 $(".user_phone_login_container").show(); 1811 }); 1812 1813 $("body").on("click",".user_phone_login_switchpassword",function(){ 1814 1815 var $section = $(this).parents(".user_phone_login_container").parent(); 1816 $section.find(".user_phone_login_container").hide(); 1817 $section.find(".user_account_recovery").show(); 1818 }); 1819 1820 $('form[name="SearchFrm"]').submit(function( event ) 1821 { 1822 if (cookieconsent == true) { 1823 1824 } 1825 }); 1826 1827 $('#sidebar .accordion ul').dcAccordion({eventType: 'click',hoverDelay: 0,menuClose: true,autoClose: true,saveState: false,autoExpand: true,classExpand: 'current',classDisable: '',showCount: false,disableLink: true,cookie: 'categories-accordion',speed: 'slow'}); 1828$jScroller.add('.jcroller ','.jcroller .spaciels-wrap','up',1,true);$jScroller.start(); 1829$('#footer .manufactores ul').jcarousel({ }); 1830 1831 1832 if( $(window).width() < 1100 ) 1833 { 1834 $("#scroll-all").hide(); 1835 $("#floating-icons .icons-box").hide(); 1836 $("#floating-icons .icons-box.accessibility").show(); 1837 } 1838 else 1839 { 1840 $("#scroll-all").show(); 1841 $("#floating-icons .icons-box").show(); 1842 } 1843 1844 1845 1846 $(window).resize(function() 1847 { 1848 1849 if( $(window).width() < 1100 ) 1850 { 1851 $("#scroll-all").hide(); 1852 $("#floating-icons .icons-box").hide(); 1853 $("#floating-icons .icons-box.accessibility").show(); 1854 } 1855 else 1856 { 1857 $("#scroll-all").show(); 1858 $("#floating-icons .icons-box").show(); 1859 } 1860 }); 1861 1862 scrollerrows() 1863 $("#scroll-full").click(function(){ 1864 $("html,body").animate({ scrollTop:0}); 1865 }); 1866 $("#scroll-bottom").click(function(){ 1867 $("html,body").animate({ scrollTop:20000}); 1868 }); 1869 1870 1871 1872 1873 $("body").on("change",".productbox_sons_select select",function() 1874 { 1875 $(this).parents("li").find(".product-box-prices .priceholder").html($('option:selected', this).attr('price')); 1876 1877 if ( $('option:selected', this).attr('regprice') != "0" ) 1878 { 1879 $(this).parents("li").find(".product-box-prices .reg-price .value span").html($('option:selected', this).attr('regprice')); 1880 } 1881 }); 1882 1883 $("body").on("change",".productbox_product_son .prs_radio select",function() 1884 { 1885 1886 1887 if ( $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html() != $(this).parent("p").text() ) 1888 { 1889 $(this).parents(".productbox_product_son").find("input[name=quantity]").val("0"); 1890 } 1891 1892 1893 $(this).parents(".productbox_product_son").find(".prs_prices .price .value").html( $('option:selected', this).attr('price') ) ; 1894 1895 if ($('option:selected', this).attr('regprice') != "0") 1896 { 1897 $(this).parents(".productbox_product_son").find(".prs_prices .regprice .value").html($('option:selected', this).attr('regprice')); 1898 } 1899 1900 $(this).parents(".productbox_product_son").find(".price_unit_line .quantity_base").html( $('option:selected', this).attr("quan_base") ); 1901 $(this).parents(".productbox_product_son").find(".price_unit_line .dimension").html( $('option:selected', this).attr("dimensionname") ); 1902 $(this).parents(".productbox_product_son").find(".price_unit_line .unit_price .value").html( $('option:selected', this).attr("price") ); 1903 $(this).parents(".productbox_product_son").find(".size").html( $('option:selected', this).attr("dimensionname") ); 1904 1905 1906 1907 1908 if ( $('option:selected', this).attr('regprice') != '0' ) 1909 { 1910 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").show(); 1911 } 1912 else 1913 { 1914 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").hide(); 1915 } 1916 $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html( $(this).parent("p").text()) 1917 1918 }); 1919 1920 $("body").on("click",".productbox_product_son .prs_radio .product_son",function() 1921 { 1922 1923 1924 $(this).parents(".boxItem ").find(".sale-price .priceholder").html( $(this).attr("price
1924") ); 1925 1926 if ( $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html() != $(this).parent("p").text() ) 1927 { 1928 $(this).parents(".productbox_product_son").find("input[name=quantity]").val("0"); 1929 } 1930 1931 $(this).parents(".productbox_product_son").find(".prs_prices .price .value").html( $(this).attr("price")); 1932 $(this).parents(".productbox_product_son").find(".prs_prices .regprice .value").html( $(this).attr("regprice")); 1933 $(this).parents(".productbox_product_son").find(".price_unit_line .quantity_base").html( $(this).attr("quan_base") ); 1934 $(this).parents(".productbox_product_son").find(".price_unit_line .dimension").html( $(this).attr("dimensionname") ); 1935 $(this).parents(".productbox_product_son").find(".price_unit_line .unit_price .value").html( $(this).attr("price") ); 1936 $(this).parents(".productbox_product_son").find(".size").html( $(this).attr("dimensionname") ); 1937 1938 if ( $(this).attr("regprice") != '0' && $(this).attr("regprice") != $(this).attr("price") ) 1939 { 1940 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").show(); 1941 } 1942 else 1943 { 1944 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").hide(); 1945 } 1946 1947 1948 $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html( $(this).parent("p").text() ) 1949 1950 }); 1951 1952 1953 1954 1955 let debounceTimer; 1956 1957 $("body").on("keyup", ".productbox_product_son .prs_buttons input", function (e) { 1958 // Allow only numeric input by removing any non-numeric characters 1959 const inputVal = $(this).val(); 1960 if (!/^\d*$/.test(inputVal)) { 1961 $(this).val(inputVal.replace(/\D/g, "")); // Replace non-numeric characters 1962 return; 1963 } 1964 1965 // Debounce to reduce the frequency of AJAX requests on typing 1966 clearTimeout(debounceTimer); 1967 debounceTimer = setTimeout(() => { 1968 const $parent = $(this).parents(".productbox_product_son"); 1969 const itemident = $parent.attr("itemident"); 1970 1971 let objid; 1972 if ($parent.find("select").length) { 1973 objid = $parent.find("select").val(); 1974 } else { 1975 objid = $parent.find("input:checked").val(); 1976 if (typeof objid === "undefined") { 1977 $parent.find("input").prop("checked", true); 1978 objid = $parent.find("input:checked").val(); 1979 } 1980 } 1981 1982 // Make AJAX request 1983 $.get('/siteservices.asp?service=productbox_addproductson¶ms=' + objid + '|' + $(this).val() + '|' + itemident, function (data) { 1984 const [status, message] = data.split("|"); 1985 1986 if (status === "1") { 1987 Ajax_updateCartInfo(); 1988 } else if (message) { 1989 alert(message); 1990 } 1991 }); 1992 }, 300); // Wait 300ms after the last keyup 1993 }); 1994 1995 1996 1997 1998 /* 1999 $("body").on("keyup",".productbox_product_son .prs_buttons input",function(e){
2000 if(e.keyCode == 13) 2001 { 2002 var itemident = $(this).parents(".productbox_product_son").attr("itemident") ; 2003 2004 if ( $(this).parents(".productbox_product_son").find("select").length ) 2005 { 2006 var objid = $(this).parents(".productbox_product_son").find("select").val(); 2007 } 2008 else 2009 { 2010 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2011 if ( typeof objid == "undefined" ) 2012 { 2013 $(this).parents(".productbox_product_son").find("input").prop("checked", true); 2014 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2015 } 2016 } 2017 2018 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+$(this).val()+'|'+itemident, function(data) 2019 { 2020 var answer_array = data.split("|"); 2021 var status = answer_array[0]; 2022 var message = answer_array[1]; 2023 2024 if (status == "1") 2025 { 2026 Ajax_updateCartInfo(); 2027 } 2028 else 2029 { 2030 if ( message != "" ) 2031 { 2032 alert ( message ) ; 2033 } 2034 } 2035 }) 2036 2037 } 2038 }); 2039 */ 2040 2041 $("body").on("click",".productbox_product_son_links .product_son_link",function(){ 2042 if ( $(this).hasClass("switch_image") ) 2043 { 2044 var bigimage = $(this).attr("bigimage"); 2045 2046 $(this).parents(".boxItem").find(".image img").attr("src", bigimage ) ; 2047 } 2048 2049 $(this).parent().find(".product_son_link").each(function(){ 2050 $(this).removeClass("current"); 2051 }); 2052 $(this).addClass("current"); 2053 2054 if (cookieconsent == true) { 2055 2056 2057 } 2058 2059 2060 2061 var Num_After_dot = "2"; 2062 var temp_dropDecimals = 0; 2063 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2064 { 2065 temp_dropDecimals = 2; 2066 } 2067 2068 var pricespanid = $(this).parents("li").find(".priceholder"); 2069 var newtotal = $(this).attr("price")*1; 2070 $("#"+pricespanid).attr("price",newtotal.toFixed(Num_After_dot)).formatCurrency( 2071 { 2072 groupDigits: true , symbol: '', 2073 roundToDecimalPlace: temp_dropDecimals 2074 }); 2075 change_product_box_total(pricespanid); 2076 return false; 2077 }); 2078 // product son dynamic start 2079 $(".productbox_product_son_dynamic .dinamicitemsons .its_add_btn").click(function() 2080 { 2081 2082 var obj = $(this).parents(".its_information"); 2083 if ( obj.find(".its_itemid span").length > 0 ) 2084 { 2085 2086 return addme_cart( obj.find(".its_itemid span").html(), 0, obj.find(".its_quantity").val() ); 2087 return false; 2088 2089 } 2090 else 2091 { 2092 /* 2093 $(".productbox_product_son_dynamic .dinamicitemsons .box").each(function() 2094 { 2095 if ( $(this).find(".misc.image.current").length == 0 ) 2096 { 2097 var dinamicitemsons_label = $(this).find("h3").text(); 2098 alert(dinamicitemsons_label ); 2099 return false; 2100 } 2101 if ( $(this).find("select").val() == "" ) 2102 { 2103 var dinamicitemsons_label = $(this).find("h3").text(); 2104 alert(dinamicitemsons_label ); 2105 return false; 2106 } 2107 }); 2108 */ 2109 2110 alert("áçø îàôééï"); 2111 return false; 2112 } 2113 }); 2114 2115 2116 $("body").on("click",".productbox_product_son_dynamic .dinamicitemsons a.misc",function() 2117 { 2118 2119 $(this).parent('.box').find('.currentselect').html($(this).attr("miscOptionValue")); 2120 $(this).parent('.box').find('.misc').removeClass('current'); 2121 $(this).addClass('current'); 2122 var miscOptionId = ''; 2123 2124 $(this).parents(".dinamicitemsons").find('a.misc.current').each(function() 2125 { 2126 miscOptionId = miscOptionId + $(this).attr("miscOptionId") + '~'; 2127 }); 2128 2129 $(this).parents(".dinamicitemsons").find('select.misc.current').each(function() 2130 { 2131 var tempoptionid = $('option:selected', this).attr('miscOptionId'); 2132 miscOptionId = miscOptionId + tempoptionid + '~'; 2133 }); 2134 var obj = $(this).parents(".dinamicitemsons").find(".its_information"); 2135 dynamicproductscall (obj,miscOptionId); 2136 return false; 2137 }); 2138 2139 $("body").on("change",".productbox_product_son_dynamic .dinamicitemsons select.misc",function() 2140 { 2141 2142 $(this).parent('.box').find('.currentselect').html( $(this).val() ); 2143 $(this).parent('.box').find('.misc').removeClass('current'); 2144 2145 if ( $(this).val() != "" ) 2146 { 2147 $(this).addClass('current'); 2148 2149 } 2150 var miscOptionId = ''; 2151 $(this).parents(".dinamicitemsons").find('a.misc.current').each(function() 2152 { miscOptionId = miscOptionId + $(this).attr("miscOptionId") + '~'; 2153 }); 2154 2155 2156 $(this).parents(".dinamicitemsons").find('select.misc.current').each(function() 2157 { 2158 var tempoptionid = $('option:selected', this).attr('miscOptionId'); 2159 miscOptionId = miscOptionId + tempoptionid + '~'; 2160 }); 2161 2162 var obj = $(this).parents(".dinamicitemsons").find(".its_information"); 2163 dynamicproductscall (obj,miscOptionId); 2164 return false; 2165 }); 2166 // product son dynamic end 2167 2168 2169 2170 2171 2172 2173 2174 2175 $("body").on("click",".productbox_product_son_links .add-to-cart",function() 2176 { 2177 if ($(this).parent().find(".product_son_link.current").length > 0 ) 2178 { 2179 var pid = $(this).parent().find(".product_son_link.current").attr("itemid"); 2180 var allow = $(this).parent().find(".product_son_link.current").attr("allow"); 2181 if (allow == "0") 2182 { 2183 2184 if (cookieconsent == true) { 2185 2186 2187 2188 } 2189 2190 alert("äîåöø àéðå áîìàé") 2191 return false; 2192 } 2193 var quan = $(this).parents("li").find("input[name=quantity]").val(); 2194 if(!$.isNumeric(quan)){quan = 1;} 2195 addme_cart(pid, quan , '', '', '', '', '',$(this)); 2196 2197 } 2198 else 2199 { 2200 alert("áçø îéãä åäåñó ìñì"); 2201 return false; 2202 } 2203 return false; 2204 2205 }); 2206 2207 $("body").on("click",".product_box_quantity a",function() 2208 { 2209 var obj = this; 2210 2211 $(this).parent("div").find("input").each(function() 2212 { 2213 2214 var quan_multiply = 1; 2215 if ( $(this).parents(".boxItem").attr("quan_multiply") != "" ) 2216 { 2217 quan_multiply = $(this).parents(".boxItem").attr("quan_multiply"); 2218 } 2219 var quan_base = 1; 2220 if ( $(this).parents(".boxItem").attr("quan_base") != "" ) 2221 { 2222 quan_base = $(this).parents(".boxItem").attr("quan_base"); 2223 } 2224 2225 2226 if ( $(obj).hasClass("minus") ) 2227 { 2228 if ($(this).val() > 1) 2229 { 2230 2231 var newquantity = ( $(this).val() - quan_multiply * 1)*1 ; 2232 if( newquantity % 1 != 0 ) 2233 { 2234 2235 $(this).val( newquantity ); 2236 2237 2238 } 2239 else 2240 { 2241 if ( newquantity < 0 ) { newquantity = 0; } 2242 $(this).val( newquantity ); 2243 } 2244 2245 } 2246 else 2247 { 2248 $(this).val(quan_base); 2249 } 2250 } 2251 else 2252 { 2253 var newquantity = ($(this).val()*1) + (quan_multiply*1) ; 2254 2255 if ( $(this).val() == 1 && quan_multiply > 1 ) { 2256 newquantity = $(this).val() * 1 + (quan_multiply * 1) - 1; 2257 } 2258 2259 if( newquantity % 1 != 0 ) 2260 { 2261 2262 $(this).val( newquantity ); 2263 2264 } 2265 else 2266 { 2267 $(this).val( newquantity ); 2268 } 2269 2270 } 2271 }); 2272 2273 var pricespanid = $(this).parents("li").find(".priceholder"); 2274 change_product_box_total(pricespanid); 2275 return false; 2276 }); 2277 2278 2279 2280 var clickTimeout; 2281 $("body").on("click",".productbox_product_son .prs_buttons a",function() 2282 { 2283 clearTimeout(clickTimeout); 2284 2285 var obj = this ; 2286 var quan_multiply = 1; 2287 var quan_base = 1; 2288 var quan_min = 1; 2289 2290 // Find the current boxItem and productbox_product_son to scope all operations 2291 var currentBoxItem = $(this).closest(".boxItem"); 2292 var currentProductBox = $(this).closest(".productbox_product_son"); 2293 2294 var obj_itemident = currentBoxItem.attr("itemident"); 2295 var property = ""; 2296 2297 if ( currentBoxItem.find(".required-properties").length ) 2298 { 2299 var properties_selected = "1"; 2300 currentBoxItem.find(".required-properties").each(function(){ 2301 if ( $(this).val() == "" ) 2302 { 2303 $(this).focus(); 2304 alert ( $(this).find("option:first-child").text() ); 2305 properties_selected = "0"; 2306 } 2307 else 2308 { 2309 // var ProperyId = currentBoxItem.find() 2310 property = property + currentBoxItem.find("#prop_id_hid_"+obj_itemident).val() + "@" ; 2311 2312 } 2313 }); 2314 2315 if ( properties_selected == "0" ) 2316 { 2317 return false; 2318 } 2319 // property = currentBoxItem.find("#prop_id_hid_"+obj_itemident).val(); 2320 // property = property + currentBoxItem.find("#prop_id_hid_"+obj_itemident).val() + "@" ; 2321 2322 } 2323 2324 if ( currentProductBox.find("select").length ) 2325 { 2326 var objid = currentProductBox.find("select").val(); 2327 quan_multiply = $('option:selected', currentProductBox.find("select") ).attr('quan_multiply'); 2328 quan_base = $('option:selected', currentProductBox.find("select") ).attr('quan_base'); 2329 quan
2329_min = $('option:selected', currentProductBox.find("select") ).attr('quan_min'); 2330 } 2331 else 2332 { 2333 var objid = currentProductBox.find("input:checked").val(); 2334 2335 if ( typeof objid == "undefined" ) 2336 { 2337 currentProductBox.find("input").eq(1).prop("checked", true); 2338 var objid = currentProductBox.find("input:checked").val(); 2339 } 2340 if ( typeof objid == "undefined" ) 2341 { 2342 currentProductBox.find("input").eq(0).prop("checked", true); 2343 var objid = currentProductBox.find("input:checked").val(); 2344 } 2345 2346 quan_multiply = currentProductBox.find("input:checked").attr('quan_multiply'); 2347 quan_base = currentProductBox.find("input:checked").attr('quan_base'); 2348 quan_min = currentProductBox.find("input:checked").attr('quan_min'); 2349 } 2350 2351 var itemident = currentProductBox.attr("itemident") ; 2352 var objaction = "" 2353 2354 $(this).parent("div").find("input").each(function() 2355 { 2356 if ( $(obj).hasClass("minus") ) 2357 { 2358 if ($(this).val() > 0) 2359 { 2360 var quantity_calc = ($(this).val() - quan_multiply * 1) * 1; 2361 // console.log( quantity_calc ); 2362 //if ( quantity_calc < quan_min ) { quantity_calc = quan_min*1 ; } 2363 if ( quantity_calc < quan_min ) { quantity_calc = 0 ; } 2364 2365 $(this).val(quantity_calc); 2366 2367 } 2368 else 2369 { 2370 $(this).val("0"); 2371 } 2372 } 2373 else 2374 { 2375 var quantity_calc = ($(this).val() * 1) + (quan_multiply * 1); 2376 if ( quantity_calc < quan_min ) { quantity_calc = quan_min*1 ; } 2377 2378 $(this).val(quantity_calc); 2379 2380 } 2381 }); 2382 2383 var quantity = $(obj).parent("div").find("input").val(); 2384 2385 2386 2387 2388 // update price 2389 var Num_After_dot = "2"; 2390 var temp_dropDecimals = 0; 2391 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2392 { 2393 temp_dropDecimals = 2; 2394 } 2395 2396 if(!$.isNumeric(quan_base)){quan_base = 1;} 2397 if(!$.isNumeric(quantity)){quantity = 1;} 2398 2399 2400 2401 var priceAttr = currentProductBox.find("input:checked").attr("price"); 2402 2403 if (priceAttr !== undefined && priceAttr !== "") { 2404 if (!isNaN(quantity) && quantity !== 0 && quan_base !== 0) { 2405 priceAttr = priceAttr.replace(/,/g, ''); 2406 newtotal = priceAttr * quantity / quan_base; 2407 2408 } 2409 } 2410 2411 2412 // var newtotal = currentProductBox.find("input:checked").attr("price")*quantity/quan_base; 2413 2414 if ( currentProductBox.find("select").length ) 2415 { 2416 2417 var currentselect = currentProductBox.find("select"); 2418 newtotal = $('option:selected',currentselect).attr('price') * quantity / quan_base; 2419 2420 } 2421 2422 if (newtotal <= 0 ) 2423 { 2424 2425 newtotal = currentProductBox.find(".son_saleprice").attr("price")*1; 2426 } 2427 2428 2429 2430 2431 2432 if (newtotal !== undefined && newtotal.length > 0) { 2433 newtotal = newtotal.replace(/,/g, ''); 2434 2435 } 2436 2437 2438 2439 2440 2441 currentProductBox.find(".son_saleprice").html(newtotal.toFixed(Num_After_dot)).formatCurrency({ 2442 groupDigits: true , symbol: '', 2443 roundToDecimalPlace: temp_dropDecimals 2444 }); 2445 2446 2447 if ( currentProductBox.find(".son_regprice").attr("price") != "" ) 2448 { 2449 2450 var newregtotal = 0; 2451 2452 2453 var regPriceAttr = currentProductBox.find("input:checked").attr("regprice"); 2454 if (regPriceAttr !== undefined && regPriceAttr.length > 0) { 2455 2456 regPriceAttr = regPriceAttr.replace(/,/g, ''); 2457 newregtotal = regPriceAttr*quantity/quan_base; 2458 2459 } 2460 2461 2462 if (newregtotal <= 0 ) 2463 { 2464 newregtotal = currentProductBox.find(".son_regprice").attr("price")*1; 2465 2466 } 2467 2468 2469 2470 2471 currentProductBox.find(".son_regprice").html(newregtotal.toFixed(Num_After_dot)).formatCurrency({ 2472 groupDigits: true , symbol: '', 2473 roundToDecimalPlace: temp_dropDecimals 2474 }); 2475 2476 2477 2478 2479 } 2480 2481 2482 if ( currentProductBox.find("input:checked").is("[dimension_unitweight]") ) 2483 { 2484 //property = "@-9997{=}{addtext} " + quantity + " éçé'"; 2485 2486 //quantity = quantity * currentProductBox.find("input:checked").attr("dimension_unitweight"); 2487 2488 } 2489
2490 if ( currentBoxItem.find(".item-comment textarea") ) 2491 { 2492 if ( currentBoxItem.find(".item-comment textarea").length ) 2493 { 2494 property = property + "@-9997{=}{addtext}" + encodeEmojis(currentBoxItem.find(".item-comment textarea").val()) ; 2495 } 2496 } 2497 2498 var dimension_type = "0"; 2499 if ( currentProductBox.find("input:checked").length ) 2500 { 2501 dimension_type = currentProductBox.find("input:checked").attr("dimension"); 2502 } 2503 2504 if ( currentProductBox.find("select").length ) 2505 { 2506 var currentselect = currentProductBox.find("select"); 2507 dimension_type = $('option:selected',currentselect).attr("dimension"); 2508 } 2509 2510 if ( $(this).hasClass("withoutcart") ) 2511 { 2512 2513 } 2514 else 2515 { 2516 2517 2518 clickTimeout = setTimeout(function(){ 2519 2520 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+quantity+'|'+itemident + '|' + property + '|' + dimension_type , function(data) 2521 { 2522 var answer_array = data.split("|"); 2523 var status = answer_array[0]; 2524 var message = answer_array[1]; 2525 2526 if (status == "1") 2527 { 2528 2529 2530 Ajax_updateCartInfo(); 2531 } 2532 else 2533 { 2534 if ( message != "" ) 2535 { 2536 alert ( message ) ; 2537 } 2538 } 2539 }) 2540 2541 }, 1000); 2542 2543 2544 } 2545 2546 return false; 2547 2548 2549 2550 2551 }); 2552 2553 2554 2555 2556 2557 2558 2559 $("body").on("click",".productbox_product_son .addtocart",function() 2560 { 2561 var obj = this ; 2562 var quan_multiply = 1; 2563 var quan_base = 1; 2564 2565 if ( $(this).parents(".productbox_product_son").find("select").length ) 2566 { 2567 var objid = $(this).parents(".productbox_product_son").find("select").val(); 2568 quan_multiply = $('option:selected', $(this).parents(".productbox_product_son").find("select") ).attr('quan_multiply'); 2569 quan_base = $('option:selected', $(this).parents(".productbox_product_son").find("select") ).attr('quan_base'); 2570 } 2571 else 2572 { 2573 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2574 2575 if ( typeof objid == "undefined" ) 2576 { 2577 $(this).parents(".productbox_product_son").find("input").eq(1).prop("checked", true); 2578 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2579 } 2580 if ( typeof objid == "undefined" ) 2581 { 2582 $(this).parents(".productbox_product_son").find("input").eq(0).prop("checked", true); 2583 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2584 } 2585 2586 quan_multiply = $(this).parents(".productbox_product_son").find("input:checked").attr('quan_multiply'); 2587 quan_base = $(this).parents(".productbox_product_son").find("input:checked").attr('quan_base'); 2588 } 2589 2590 var itemident = $(this).parents(".productbox_product_son").attr("itemident") ; 2591 var objaction = "" 2592 2593 2594 var quantity = $(this).parents(".productbox_product_son").find("input[name='quantity']").val(); 2595 2596 // update price 2597 var Num_After_dot = "2"; 2598 var temp_dropDecimals = 0; 2599 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2600 { 2601 temp_dropDecimals = 2; 2602 } 2603 2604 if(!$.isNumeric(quan_base)){quan_base = 1;} 2605 if(!$.isNumeric(quantity)){quantity = 1;} 2606 2607 var newtotal = $(this).parents(".productbox_product_son").find("input:checked").attr("price")*quantity/quan_base; 2608 if ( $(this).parents(".productbox_product_son").find("select").length ) 2609 { 2610 var currentselect = $(this).parents(".productbox_product_son").find("select"); 2611 newtotal = $('option:selected',currentselect).attr('price') * quantity / quan_base; 2612 } 2613 2614 if (newtotal <= 0 ) 2615 { 2616 newtotal = $(this).parents(".productbox_product_son").find(".son_saleprice").attr("price")*1; 2617 } 2618 2619 2620 2621 if ( $(this).parents(".productbox_product_son").find(".son_regprice").attr("price") != "" ) 2622 { 2623 var newregtotal = ""; 2624 newregtotal = $(this).parents(".productbox_product_son").find("input:checked").attr("regprice")*quantity/quan_base; 2625 if (newregtotal <= 0 ) 2626 { 2627 newregtotal = $(this).parents(".productbox_product_son").find(".son_regprice").attr("price")*1; 2628 } 2629 2630 2631 } 2632 2633 var property = ""; 2634 var dimension_type = "0"; 2635 if ( $(this).parents(".productbox_product_son").find("input:checked").length ) 2636 { 2637 dimension_type = $(this).parents(".productbox_product_son").find("input:checked").attr("dimension"); 2638 } 2639 2640 if ( $(this).parents(".productbox_product_son").find("select").length ) 2641 { 2642 var currentselect = $(this).parents(".productbox_product_son").find("select"); 2643 dimension_type = $('option:selected',currentselect).attr('dimension'); 2644 } 2645 2646 if ( $(this).parents(".productbox_product_son").find("input:checked").is("[dimension_unitweight]") ) 2647 { 2648 //property = "-9997{=}{addtext} " + quantity + " éçé'"; 2649 // quantity = quantity * $(this).parents(".productbox_product_son").find("input:checked").attr("dimension_unitweight"); 2650 } 2651 2652 2653 2654 2655 2656 if ( $(this).parents(".boxItem").find(".item-comment textarea") ) 2657 { 2658 if ( $(this).parents(".boxItem").find(".item-comment textarea").length ) 2659 { 2660 property = property + "@-9997{=}{addtext}" + encodeEmojis($(this).parents(".boxItem").find(".item-comment textarea").val()) ; 2661 } 2662 } 2663 2664 2665 2666 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+quantity+'|'+itemident + '|' + property + '|' + dimension_type , function(data) 2667 { 2668 2669 var answer_array = data.split("|"); 2670 var status = answer_array[0]; 2671 var message = answer_array[1]; 2672 2673 if (status == "1") 2674 { 2675 Ajax_updateCartInfo(); 2676 } 2677 else 2678 { 2679 if ( message != "" ) 2680 { 2681 alert ( message ) ; 2682 } 2683 } 2684 2685 2686 }) 2687 2688 2689 return false; 2690 2691 }); 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 $("body").on("click",".productbox_product_son_items .buttons a",function() 2709 { 2710 var obj = this ; 2711 var objid = $(this).parents("li").find(".product_son_item").attr("itemid"); 2712 var itemident = $(this).parents("li").find(".product_son_item").attr("itemident"); 2713 var objaction = "" 2714 2715 $(this).parent("div").find("input").each(function() 2716 { 2717 2718 if ( $(obj).hasClass("minus") ) 2719 { 2720 if ($(this).val() > 0) 2721 { 2722 var quantity_calc = ($(this).val() - 1) * 1; 2723 2724 $(this).val(quantity_calc); 2725 2726 2727 } 2728 2729 } 2730 else 2731 { 2732 var quantity_calc = ($(this).val() * 1) + (1);
2733 2734 2735 $(this).val(quantity_calc); 2736 2737 2738 } 2739 }) 2740 2741 var quantity = $(obj).parent("div").find("input").val(); 2742 2743 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+quantity+'|'+itemident, function(data) 2744 { 2745 var answer_array = data.split("|"); 2746 var status = answer_array[0]; 2747 var message = answer_array[1]; 2748 2749 if (status == "1") 2750 { 2751 Ajax_updateCartInfo(); 2752 } 2753 else 2754 { 2755 if ( message != "" ) 2756 { 2757 alert ( message ) ; 2758 } 2759 } 2760 }) 2761 return false; 2762 }); 2763 2764 2765 2766 $("body").on("click","#mobile_minicart .delete a",function() 2767 { 2768 obj = $(this).attr("cartitemid") ; 2769 $.get('/services/cartservices.asp?service=deletefromcart¶ms='+obj, function(data) 2770 { 2771 2772 RenderAllCarts(1); 2773 }) 2774 return false; 2775 }); 2776 2777 $("body").on("click","#mobile_header .header_smallcart",function() 2778 { 2779 2780 if ($("#mobile_header #minicarttotalquantity").length ) 2781 {} 2782 else 2783 { 2784 2785 //Ajax_updateCartInfo(); 2786 RenderAllCarts(); 2787 } 2788 2789 2790 2791 if( $(".mobile_search_form").is(":visible")) 2792 { 2793 $(".mobile_search_form").slideUp('fast'); 2794 } 2795 2796 if( $(".mobile_menu").is(':visible')) 2797 { 2798 $(".mobile_menu").slideUp('fast'); 2799 } 2800 2801 if ($("#SlidingCart").length && $("#SlidingCart").is(":visible")) { 2802 2803 $("#SlidingCart").attr("style", "left:0px !important;"); 2804 2805 // Detect clicks anywhere on the page 2806 $(document).on("click", function (event) { 2807 2808 // Check if the clicked element is NOT #SlidingCart or its desce
2808ndants 2809 2810 if (!$(event.target).closest("#SlidingCart").length) { 2811 // If clicked outside, update the style of #SlidingCart 2812 $("#SlidingCart").css("left", "-400px"); 2813 } 2814 2815 }); 2816 2817 } else { 2818 2819 mobile_minicart_toggle("4"); 2820 } 2821 return false; 2822 }); 2823 2824 var miniCarttimer = ""; 2825 var cartClass = ""; 2826 if ( $(".cart_icon_button").length ){ 2827 cartClass = "click"; 2828 } 2829 else{ 2830 cartClass = "mouseenter"; 2831 } 2832 2833 2834 if ( $("#miniCart .toggle-hover").length ) 2835 { 2836 2837 2838 $("body").on( cartClass, "#miniCart", function() 2839 { 2840 clearTimeout(miniCarttimer); 2841 if ($("#miniCart #minicarttotalquantity").length ) 2842 {} 2843 else 2844 { 2845 RenderAllCarts(); 2846 } 2847 2848 if ($("#miniCart .toggle-hover i").length) 2849 { 2850 var icon_obj = $("#miniCart .toggle-hover i"); 2851 var icon_position = $(icon_obj).position(); 2852 var icon_width = $(icon_obj).width(); 2853 var icon_height = $(icon_obj).height(); 2854 2855 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 2856 2857 if ($("#miniCart").hasClass("open-left")) 2858 { 2859 $("#minicartdiv").css({ 2860 "top" : caluclate_top + 20 +"px", 2861 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 28 + "px" , 2862 "right": "auto" 2863 }); 2864 } 2865 else{ 2866 2867 $("#minicartdiv").css({ 2868 "top" : caluclate_top + 20 +"px", 2869 2870 "left" : (icon_position.left*1) + (icon_width/2*1) - 520 + "px" , 2871 2872 "right": "auto" 2873 }); 2874 } 2875 2876 } 2877 $("#minicartdiv").show(); 2878 2879 if ( cartClass == "click" ){ 2880 2881 2882 2883 2884 2885 2886 2887 } 2888 2889 if ( cartClass != "click" ) 2890 { 2891 return false; 2892 } 2893 }); 2894 } 2895 2896 2897 $("body").on("mouseleave","#miniCart", function() 2898 { 2899 clearTimeout(miniCarttimer); 2900 miniCarttimer = setTimeout(function() { 2901 $("#minicartdiv").hide(); 2902 }, 1000); 2903 return false; 2904 }); 2905 2906 2907 2908 2909 $("body").on("click","#minicart_continue",function() 2910 { 2911 $("#minicartdiv").hide(); 2912 mobile_minicart_toggle("5"); 2913 2914 return false; 2915 2916 }); 2917 $(".cart_icon_button #minicartdiv a.button-silver.btn.btn-primary").click(function() { 2918 window.location = "/cart.asp"; 2919 }); 2920
2921 mini_userbar_element(); 2922 2923 2924 2925 2926 2927 $("ul.dropdown-menu").supersubs({ 2928 minWidth: 12, 2929 maxWidth: 27, 2930 delay: 0, 2931 speed: 'fast', 2932 speedOut: 'fast', 2933 extraWidth: 1 2934 }).superfish(); 2935 2936 } 2937 ); 2938 2939 function dynamicproductscall (obj,miscOptionId) 2940 { 2941 2942 var itemident = obj.parents(".productbox_product_son_dynamic").attr("itemident") ; 2943 //var colors_images = obj.parents(".productbox_product_son_dynamic.colors_images").attr("itemident") ; 2944 var calculate_tax =1; 2945 $.ajax 2946 ( 2947 { 2948 url: "/Service_product_son_misc.asp?itemident="+itemident+"&miscfields=" + miscOptionId, 2949 success: function(data) 2950 { 2951 2952 if (data == 0) 2953 { 2954 obj.find(".its_itemid").html("ìà ðîöà îåöø äîúàéí ìáçéøúê"); 2955 obj.find(".its_price").html(""); 2956 obj.find(".its_btn").hide(); 2957 obj.find(".its_quan").hide(); 2958 return false; 2959 } 2960 else 2961 { 2962 var Num_After_dot = "2"; 2963 var temp_dropDecimals = 0; 2964 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2965 { 2966 temp_dropDecimals = 2; 2967 } 2968 2969 dataarray = data.split("|") 2970 var its_itemident = dataarray[0]; 2971 var its_itemid = dataarray[1]; 2972 var its_itemprice = dataarray[2]; 2973 var its_quan = dataarray[3]; 2974 var its_image = dataarray[4]; 2975 2976 var its_allowbuyingbyquan = "1"; 2977 2978 if (its_quan > 0 || (its_quan <= 0 && its_allowbuyingbyquan==1) ) 2979 { 2980 2981 if ( its_image != "" ) 2982 { 2983 obj.parents(".boxItem").find(".image img").attr("src",its_image); 2984 } 2985 2986 var its_itemprice = its_itemprice / calculate_tax; 2987 its_itemprice = its_itemprice.toFixed(Num_After_dot) ; 2988 obj.find(".its_btn").show(); 2989 obj.find(".its_quan").show(); 2990 obj.find(".its_itemid").html('î÷è: <span>' + its_itemid + '</span>, '); 2991 obj.find(".its_price").html( its_itemprice ).formatCurrency({ 2992 groupDigits: true , symbol: 'îçéø: ¤', 2993 roundToDecimalPlace: temp_dropDecimals 2994 }); 2995 2996 if ( obj.parents("li").find(".bundlecheckbox").length ) 2997 { 2998 obj.parents("li").find(".bundlecheckbox").val(its_itemid); 2999 obj.parents("li").find(".bundlecheckbox").attr("price",its_itemprice); 3000 change_total(); 3001 } 3002 3003 } 3004 else 3005 { 3006 3007 obj.find(".its_itemid").html("äîåöø äîáå÷ù àéðå áîìàé"); 3008 obj.find(".its_itemid").append("<a class='fancybox iframe quantityalertlink' href='/product_alert.asp?AlertType=2&itemident="+its_itemident+"'>äåãéòå ìé ùçæø ìîìàé</a>"); 3009 obj.find(".its_price").html(""); 3010 obj.find(".its_btn").hide(); 3011 obj.find(".its_quan").hide(); 3012 3013 if ( obj.parents("li").find(".bundlecheckbox").length ) 3014 { 3015 obj.parents("li").find(".dinamicitemsons .misc").each(function(){ 3016 $(this).val(""); 3017 }) 3018 obj.parents("li").find(".bundlecheckbox").val(""); 3019 obj.parents("li").find(".bundlecheckbox").attr("price",0); 3020 change_total(); 3021 alert ("äîåöø äîáå÷ù àéðå áîìàé"); 3022 } 3023 3024 return false; 3025 } 3026 } 3027 return false; 3028 3029 } 3030 } 3031 ); 3032 } 3033 3034 function scrollerrows() 3035 { 3036 $(window).scroll(function() 3037 { 3038 3039 var top=$(window).scrollTop(); 3040 if(top>1) 3041 { 3042 $("#scroll-all").fadeIn("slow"); 3043 } 3044 else 3045 { 3046 $("#scroll-all").fadeOut("slow"); 3047 } 3048 }); 3049 3050 } 3051
3052 function mycarousel_initCallback(carousel) 3053 { 3054 // Disable autoscrolling if the user clicks the prev or next button. 3055 carousel.buttonNext.bind('click', function() { 3056 carousel.startAuto(0); 3057 }); 3058 3059 carousel.buttonPrev.bind('click', function() { 3060 carousel.startAuto(0); 3061 }); 3062 3063 // Pause autoscrolling if the user moves with the cursor over the clip. 3064 carousel.clip.hover(function() { 3065 carousel.stopAuto(); 3066 }, function() { 3067 carousel.startAuto(); 3068 }); 3069 }; 3070 3071 var glastDivId = ""; 3072 var gLastsmallLink = ""; 3073 3074 function gswitchdiv(divid, smalldivid, DivNum) { 3075 try { 3076 $('#gLnk_gsmall_' + DivNum + '_0').removeClass("current"); 3077 $('#gLnk_gsmall_' + DivNum + '_1').removeClass("current"); 3078 $('#gLnk_gsmall_' + DivNum + '_2').removeClass("current"); 3079 $('#gLnk_gsmall_' + DivNum + '_3').removeClass("current"); 3080 } 3081 catch (err) 3082 { } 3083 3084 $('#' + divid).html($('#' + smalldivid).html()); 3085 $('#gLnk_' + smalldivid).addClass("current"); 3086 3087 if (glastDivId == divid && gLastsmallLink != smalldivid & glastDivId != "" && gLastsmallLink != "") 3088 { 3089 $('#gLnk_' + LastsmallLink).removeClass("current"); 3090 } 3091 glastDivId = divid; 3092 gLastsmallLink = smalldivid; 3093 } 3094 3095 var plastDivId = ""; 3096 var pLastsmallLink = ""; 3097 function pswitchdiv(divid, smalldivid, DivNum) 3098 { 3099 try { 3100 $('#pLnk_psmall_' + DivNum + '_0').removeClass("current"); 3101 $('#pLnk_psmall_' + DivNum + '_1').removeClass("current"); 3102 $('#pLnk_psmall_' + DivNum + '_2').removeClass("current"); 3103 $('#pLnk_psmall_' + DivNum + '_3').removeClass("current"); 3104 } catch (err) { } 3105 3106 $('#' + divid).html($('#' + smalldivid).html()); 3107 $('#pLnk_' + smalldivid).addClass("current"); 3108 3109 if (plastDivId == divid && pLastsmallLink != smalldivid & plastDivId != "" && pLastsmallLink != "") 3110 { 3111 $('#pLnk_' + LastsmallLink).removeClass("current"); 3112 } 3113 plastDivId = divid; 3114 pLastsmallLink = smalldivid; 3115 } 3116 3117 function onAfter(curr, next, opts, fwd) 3118 { 3119 var $ht = $(this).height(); 3120 $(this).parent().css("height", $ht); 3121 } 3122 3123 var lastDivId = ""; 3124 var LastsmallLink = ""; 3125 function switchdiv(divid, smalldivid, DivNum) 3126 { 3127 try 3128 { 3129 $('#Lnk_small_' + DivNum + '_0').removeClass("current"); 3130 $('#Lnk_small_' + DivNum + '_1').removeClass("current"); 3131 $('#Lnk_small_' + DivNum + '_2').removeClass("current"); 3132 $('#Lnk_small_' + DivNum + '_3').removeClass("current"); 3133 } catch (err) 3134 { 3135 } 3136 $('#' + divid).html($('#' + smalldivid).html()); 3137 $('#Lnk_' + smalldivid).addClass("current"); 3138 if (lastDivId == divid && LastsmallLink != smalldivid & lastDivId != "" && LastsmallLink != "") { 3139 $('#Lnk_' + LastsmallLink).removeClass("current"); 3140 } 3141 lastDivId = divid; 3142 LastsmallLink = smalldivid; 3143 } 3144 3145 $("body").on("click",".propertiesbox .properties-image",function(){ 3146 $(this).parent(".propertiesbox").find(".properties-image").each(function(){ 3147 $(this).removeClass("current"); 3148 3149 }); 3150 $(this).addClass("current"); 3151 $(this).parent(".propertiesbox").find("select").val($(this).attr("value")).change() ; 3152 return false 3153 }); 3154 3155 3156 3157 function ProductBoxUpdatePrices(ItemId,itemIdent,startP,arrIP,PropVal,regPrice ,currentElement) 3158 { 3159 3160 var total = startP; 3161 var propPrice = 0; 3162 var pro_id = ''; 3163 var pro_name = ''; 3164 3165 // Find the closest li element to scope the search properly 3166 var currentLi = $(currentElement).closest("li"); 3167 3168 // Only search within the current li element to avoid duplicates 3169 currentLi.find(".required-properties").each(function() 3170 { 3171 3172 /* 3173 console.log("Number of elements found:", currentLi.find(".required-properties").length); 3174 console.log("Options:", $(this).find("option").length); 3175 console.log("arrIP:", arrIP); 3176 console.log("Selected option:", $(this).val()); 3177 console.log("Selected option:", $(this).find("option:selected").attr("value")); 3178 */ 3179 3180 if ( $(this).val() != '' ) 3181 { 3182 3183 PropVal = $(this).val(); 3184 3185 arrProperty = PropVal.split('|'); 3186 if ( PropVal != "") 3187 { 3188 propPrice = propPrice + Number(arrProperty[1]); 3189 3190 3191 pro_id = pro_id + '@'+arrProperty[2]; 3192 pro_name = pro_name + '/'+arrProperty[0] 3193 3194 if (Number(arrProperty[1]) > 0 ) 3195 { 3196 //total = Number ( (total*1) + (propPrice*1)) ; 3197 //total=total.toFixed(2); 3198 } 3199 } 3200 } 3201 }); 3202 3203 if (propPrice > 0 ) 3204 { 3205 total = Number ((total*1) + (propPrice*1)); 3206 total = total.toFixed(2); 3207 } 3208 3209 3210 // Scope all element selections to the current li to avoid duplicates 3211 currentLi.find("#prop_id_hid_"+itemIdent).val(pro_id); 3212 3213 currentLi.find("#prop_name_hid_"+itemIdent).val(pro_name); 3214 currentLi.find("#prop_price_hid_"+itemIdent).val(propPrice); 3215 currentLi.find("#total_hid_"+itemIdent).val(total); 3216 currentLi.find("#total"+itemIdent).html(total); 3217 if (regPrice != 0) 3218 { 3219 RegTotal = regPrice + propPrice; 3220 RegTotal=RegTotal.toFixed(2); 3221 currentLi.find("#totalreg"+itemIdent).html(RegTotal); 3222 } 3223 } 3224 3225 function PB_AddToCartWithProperties(pid,itemIdent,obj) 3226 { 3227 document.addme.pid.value = pid; 3228 var pip_str = "" 3229 var pip_prices = 0 3230 var pip_ids = "" 3231 var temparr = "" 3232 var isRequierd = "" 3233 3234 pip_ids = $("#prop_id_hid_" + itemIdent).val(); 3235 pip_str = $("#prop_name_hid_" + itemIdent).val(); 3236 pip_prices = $("#prop_price_hid_" + itemIdent).val(); 3237 3238 selectedproperties = "0" ; 3239 $(obj).parents("li").find(".required-properties").each(function() 3240 { 3241 if ( $(this).val() == '' ) 3242 {selectedproperties = "1";} 3243 }); 3244 3245 3246 if (pip_ids != "" && selectedproperties == "0" ) 3247 { 3248 pip_str = pip_str.substr(1, pip_str.length - 1) 3249 pip_ids = pip_ids.substr(1, pip_ids.length - 1) 3250 3251 document.addme.pip_str.value = pip_str; 3252 document.addme.pip_prices.value = pip_prices; 3253 document.addme.pip_ids.value = pip_ids; 3254 3255 3256 document.addme.submit(); 3257 3258 } 3259 else 3260 { 3261 alert("çåáä ìáçåø îàôééï ìîåöø"); 3262 } 3263 3264 return false; 3265 } 3266 3267 3268 3269 3270 function s_addme_cart(pid, quan, pip_str, pip_prices, pip_ids, numOfItems, ItemPromotionIdentStr) 3271 { 3272 if (quan == undefined || quan==0 ){ quan = 1; } 3273 3274 document.s_addme.pid.value = pid 3275 document.s_addme.quan.value = quan; 3276 document.s_addme.submit(); 3277 3278 } 3279 3280 3281 3282 3283 3284 $(document).ready 3285 ( 3286 function () {
3287 ViewFloatingCart(); 3288 FloatingCartObj_StartEffects(); 3289 if ($.browser.msie) { 3290 if (parseInt($.browser.version, 10) < 9) { 3291 $("#SlidingCart").css({ 'position': 'fixed' }); 3292 } 3293 } 3294 }); 3295 3296 3297 3298 3299 3300 3301 function openTakanon(){ 3302 window.open("Page_pop.asp?page=216",null,"width=700,height=500,scrollbars=yes,resizable=yes") 3303 } 3304 function openprivacy(){ 3305 window.open("Page_pop.asp?page=",null,"width=700,height=500,scrollbars=yes,resizable=yes") 3306 } 3307 3308 function username_validation() 3309 { 3310 $(".username_validation").focus(function(){ 3311 $(this).parent().find("div.error").replaceWith(""); 3312 }); 3313 3314 $(".username_validation").focusout(function(){ 3315 var username_input = $(this); 3316 if ( $(username_input).val() != "") 3317 { 3318 $.get("/siteservices.asp?service=user_username_check&username=" + $(this).val() , function(data) 3319 { 3320 if (data == "1") 3321 { 3322 $(username_input).val(""); 3323 if ( $(username_input).parent().find("div.error").length ) 3324 { 3325 $(username_input).parent().find("div.error").html("ëúåáú ãåàø äàì÷èøåðé ÷ééîú áîòøëú, ðñä ìäúçáø"); 3326 } 3327 else 3328 { $(username_input).parent().append("<div class='error checkout_error'>ëúåáú ãåàø äàì÷èøåðé ÷ééîú áîòøëú, ðñä ìäúçáø</div>"); } 3329 $("#loginlink").trigger("click"); 3330 } 3331 }); 3332 } 3333 }); 3334 } 3335 3336 3337 function calculate_icons_position() 3338 { 3339 3340 3341 if ( $(".productBoxes .MiscFieldsIcons").length ) 3342 { 3343 $(".productBoxes .MiscFieldsIcons").each(function () 3344 { 3345 if ($(this).parent().find(".ProductBox_promotion").length) { 3346 var icons_height = $(this).parent().find(".ProductBox_promotion").height(); 3347 if (icons_height > 0) { 3348 $(this).css("top", icons_height + "px"); 3349 } 3350 } 3351 else 3352 { 3353 $(this).css("top", "0px"); 3354 } 3355 }); 3356 } 3357 3358 $(".boxItem-wrap .MiscFieldsIcons").show(); 3359 3360 } 3361 3362 $(document).ready 3363 ( 3364 3365 function() 3366 { 3367 $("body").on("click",".email_share",function(){ 3368 var title = $('meta[property="og:title"]').attr('content'); 3369 var desc = $('meta[property="og:description"]').attr('content'); 3370 var url = $('meta[property="og:url"]').attr('content'); 3371 var image = $('meta[property="og:image"]').attr('content'); 3372 window.location.href = "mailto:[email protected]?subject=÷øàúé îàîø ùéòðééï àåúê&body="+ title + "<br>" + desc + "<br>" + url; 3373 return false; 3374 }); 3375 3376 $("body").on("click",".linkedin_share",function(){ 3377 var url = ""; 3378 var redirect_url = $(this).attr("href") + url; 3379 //window.location.href = redirect_url 3380 window.open(redirect_url); 3381 return false; 3382 }); 3383 3384 3385 3386 3387 3388 3389 3390 3391 $("body").on("change", ".cart_items_ul .value",function() 3392 { 3393 3394 var quantity = $(this).val(); 3395 var quantity_action = "odd"; 3396 var tmp_ee_list_item_obj = $(this).parents(".ee_list_item"); 3397 var current_quantity = $(this).attr("quantity"); 3398 var new_quantity = quantity; 3399 var quantity_request = 1; 3400 3401 // console.log( parseFloat(new_quantity) + '!=' + parseFloat(current_quantity)); 3402 3403 if ( new_quantity != current_quantity ) { 3404 3405 if ( parseFloat(new_quantity) > parseFloat(current_quantity) ) { 3406 quantity_action = "odd"; 3407 quantity_request = new_quantity - current_quantity; 3408 // console.log( quantity_action + " " + parseFloat(new_quantity) + '>' + parseFloat(current_quantity)); 3409 } 3410 3411 if ( parseFloat(new_quantity) < parseFloat(current_quantity) ) { 3412 quantity_action = "minus"; 3413 quantity_request = current_quantity - new_quantity; 3414 3415 } 3416 3417 } 3418 3419 3420 3421 $.get('/services/cartservices.asp?service=setcartitemquantity¶ms=update&CartItemID='+$(this).next().attr("cartitemid")+'&quan_multiply=1&quan='+quantity , function(data) 3422 { 3423 var answer_array = data.split("|"); 3424 var status = answer_array[0]; 3425 var message = answer_array[1]; 3426 3427 if (status == "1") 3428 { 3429 3430 if (quantity_action == "minus" ) 3431 { 3432 3433 // cart_remove_from_cart = true; 3434 3435 3436 3437 } 3438 3439 if (quantity_action == "odd" ) 3440 { 3441 3442 // cart_add_to_cart = true; 3443 3444 3445 } 3446 3447 3448 RenderAllCarts(1); 3449 3450 3451 if (cookieconsent == true) { 3452 3453 3454 3455 3456 3457 3458 3459 if (quantity_action == "minus" ) 3460 { 3461 3462 3463 3464 } 3465 3466 if (quantity_action == "odd" ) 3467 { 3468 3469 3470 } 3471 3472 } 3473 3474 } 3475 else 3476 { 3477 alert(message); 3478 } 3479 3480 }) 3481 return false; 3482 }); 3483 3484 $("body").on("change",".cart_dimension_type",function() { 3485 var cartitemident = $(this).parents(".ee_list_item").attr("itemident"); 3486 var cartitemid = $(this).parent().find(".odd").attr("cartitemid"); 3487 var dimension_type = $(this).val(); 3488 $.get('/services/cartservices.asp?service=setcartitemdimension&itemident='+cartitemident+'¶ms='+dimension_type+"&CartItemID="+cartitemid , function(data) 3489 { 3490 RenderAllCarts(1) ; 3491 }); 3492 }); 3493 3494 $("body").on("click",".minicartsetquan",function() 3495 { 3496 3497 var quantity_action = $(this).attr("action"); 3498 var quan_multiply = $(this).parent().find(".value").attr("quan_multiply"); 3499 3500 var tmp_ee_list_item_obj = $(this).parents(".ee_list_item"); 3501 var quan_param = ""; 3502 var quantity_multiply = 1; 3503 var quantity_request = 1; 3504 var current_quantity = $(this).parent().find(".value").val() || $(this).parent().find(".value").text(); 3505 3506 if ( $(this).parent().find("input").length ) 3507 { 3508 quan_param = "&quan=" + $(this).parent().find("input").val(); 3509 } 3510 3511 if ( $(tmp_ee_list_item_obj).find(".quantity .value").attr("quan_multiply") != "" ) 3512 { 3513 quantity_multiply = $(tmp_ee_list_item_obj).find(".quantity .value").attr("quan_multiply"); 3514 } 3515 3516 if ( $(this).parent().parent().find("input:checked").length ) { 3517 if ( $(this).parent().parent().find("input:checked").val() == "0" ) { 3518 quantity_multiply = 1; 3519 } 3520 } 3521 3522 $.get('/services/cartservices.asp?service=setcartitemquantity¶ms='+quantity_action+"&CartItemID="+$(this).attr("cartitemid")+"&quan_multiply="+quantity_multiply + quan_param , function(data) 3523 { 3524 3525 var answer_array = data.split("|"); 3526 var status = answer_array[0]; 3527 var message = answer_array[1]; 3528 3529 if (status == "1") 3530 { 3531 3532 if (quantity_action == "minus" ) 3533 { 3534 3535 // cart_remove_from_cart = true; 3536 3537 3538 3539 } 3540 3541 if (quantity_action == "odd" ) 3542 { 3543 3544 // cart_add_to_cart = true; 3545 3546 3547 3548 } 3549 3550 RenderAllCarts(1) ; 3551 3552 3553 if (cookieconsent == true) { 3554 3555 3556 3557 3558 3559 if ( quantity_action == "minus" ) 3560 { 3561 3562 } 3563 3564 if ( quantity_action == "odd" ) 3565 { 3566 3567 3568 3569 } 3570 3571 } 3572 } 3573 else 3574 { 3575 alert(message); 3576 } 3577 3578 }) 3579 return false; 3580 }); 3581 3582 3583 $("body").on("click",".cart_items_ul .delete a",function() 3584 { 3585 obj = $(this).attr("cartitemid") ; 3586 var tmp_ee_list_item_obj = $(this).parents(".ee_list_item"); 3587 var current_quantity = $(this).parents(".ee_list_item").find(".value").val() || $(this).parents(".ee_list_item").find(".value").text(); 3588 3589 $.get('/services/cartservices.asp?service=deletefromcart¶ms='+obj, function(data) 3590 { 3591 var dataarray = data.split("|"); 3592 if ( dataarray[0] == "0" ) 3593 { 3594 alert (dataarray[1]); 3595 } 3596 else 3597 { 3598 //cart_remove_from_cart = true 3599 if (cookieconsent == true) { 3600 3601 3602 3603 3604 3605 } 3606 RenderAllCarts(1); 3607 } 3608 3609 }) 3610 return false; 3611 }); 3612 3613 datecountdown(); 3614 3615 $("body").on("click",".close",function(){ 3616 if ( $(this).parent().hasClass("campain_wrap") ) 3617 { 3618 $(this).parent().parent().hide(); 3619 } 3620 else 3621 { 3622 $(this).parent().hide(); 3623 } 3624 return false; 3625 }); 3626 3627 3628 3629 } 3630 ); 3631 3632 jQuery.fn.center = function () 3633 { 3634 this.css("position","fixed"); 3635 var horizontalCenter =
3635 Math.floor(window.innerWidth/2 - ( $(this).outerWidth()/2)); 3636 var verticalCener = Math.floor(window.innerHeight/2 - ($(this).outerHeight()/2)); 3637 this.css("top", verticalCener + "px" ); 3638 this.css("left",horizontalCenter + "px"); 3639 return this; 3640 } 3641 3642 3643 3644 3645 function checkSectionfrm() { 3646 if (IsEmptyStr("document.memberFrm.UserName")) { 3647 document.memberFrm.UserName.focus(); 3648 alert("ìà äåæï ùí îùúîù".charRefToUnicode()); 3649 return false; 3650 } 3651 if (IsEmptyStr("document.memberFrm.IDNum")) { 3652 document.memberFrm.IDNum.focus(); 3653 alert("ñéñîà çééáú ìäëéì 4-20 úååéí, éù ìäæéï àåúéåú å/àå ñôøåú".charRefToUnicode()); 3654 return false; 3655 } 3656 return true; 3657 } 3658 3659 3660function google_event_couponapply( coupon_code ){ 3661 3662 3663} 3664 3665 3666var last_payment_info = ''; 3667function google_event_addpaymentinfo( payment_info ){ 3668 3669 3670} 3671 3672var last_shipping_method = ''; 3673function google_event_begincheckout_add_shipping_info( shipping_value, shipping_method ){ 3674 3675 3676 3677 3678} 3679 3680 function google_event_begincheckout(){ 3681 3682 3683 } 3684 3685 3686 function google_event_removefromcart() 3687 { 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 } 3698 3699 3700 3701 function google_event_viewcart(){ 3702 3703 3704 3705 } 3706 3707function flytocart(obj) 3708 { 3709 3710 var cart = $('#miniCart'); 3711 var imgtodrag = $(obj).parents("li").find(".image img"); 3712 3713 if (imgtodrag) { 3714 var imgclone = imgtodrag.clone() 3715 .offset({ 3716 top: imgtodrag.offset().top, 3717 left: imgtodrag.offset().left 3718 }) 3719 .css({ 3720 'opacity': '0.5', 3721 'position': 'absolute', 3722 'height': '150px', 3723 'width': '150px', 3724 'z-index': '100' 3725 }) 3726 .appendTo($('body')) 3727 .animate({ 3728 'top': cart.offset().top + 10, 3729 'left': cart.offset().left + 10, 3730 'width': 75, 3731 'height': 75 3732 }, 1000, 'easeInOutExpo'); 3733 3734 setTimeout(function () { 3735 cart.effect("shake", { 3736 times: 2 3737 }, 200); 3738 }, 1500); 3739 3740 imgclone.animate({ 3741 'width': 0, 3742 'height': 0 3743 }, function () { 3744 $(this).detach() 3745 }); 3746 } 3747 3748 $('html, body').animate({ 3749 'scrollTop' : $(cart).position().top 3750 }, 1000, 'easeInOutExpo'); 3751 3752 } 3753 3754String.prototype.charRefToUnicode = function() 3755{ 3756 return this.replace( 3757 /&#(([0-9]{1,7})|(x[0-9a-f]{1,6}));?/gi, 3758 function(match, p1, p2, p3, offset, s) 3759 { 3760 return String.fromCharCode(p2 || ("0" + p3)); 3761 }); 3762} 3763 3764function loanCal(A,C,I) { 3765 3766 3767 let monthlyInterestRate; // Define monthlyInterestRate outside the if block 3768 if ( I > 0 ) { 3769 I = I / 100; // Annual percentage rate 3770 monthlyInterestRate = I / 12; 3771 } else { 3772 monthlyInterestRate = I ; 3773 } 3774 // Calculate monthly interest rate 3775 3776 3777 // Calculate fixed monthly payment 3778 const fixedMonthlyPayment = calculateFixedMonthlyPayment(A, monthlyInterestRate, C); 3779 3780 3781 3782 let remainingAmount = A; 3783 let results = []; 3784 3785 for (let month = 1; month <= C; month++) { 3786 const interestPayment = remainingAmount * monthlyInterestRate; 3787 const principalPayment = fixedMonthlyPayment - interestPayment; 3788
3789 remainingAmount -= principalPayment; 3790 3791 results.push({ 3792 month: month, 3793 remainingAmount: parseFloat((remainingAmount).toFixed(2)) , 3794 principal: parseFloat((principalPayment).toFixed(2)) , 3795 interest: parseFloat((interestPayment).toFixed(2)) , 3796 monthlyRepayment: parseFloat((fixedMonthlyPayment).toFixed(2)) 3797 }); 3798 } 3799 3800 const totalLoanAmount = parseFloat((fixedMonthlyPayment * C).toFixed(2)); 3801 const totalInterest = parseFloat((totalLoanAmount - A).toFixed(2)); 3802 3803 3804 3805 return { 3806 monthlyDetails: results, 3807 totalLoanAmount, 3808 totalInterest, 3809 monthlyPayment: parseFloat(fixedMonthlyPayment.toFixed(2)) 3810 }; 3811} 3812 3813function calculateFixedMonthlyPayment(loanAmount, monthlyInterestRate, totalMonths) { 3814 if ( totalMonths == 1 ) { 3815 3816 return loanAmount*1 ; 3817 } else { 3818 3819 if ( monthlyInterestRate > 0 ) { 3820 return loanAmount * monthlyInterestRate / (1 - (Math.pow(1 / (1 + monthlyInterestRate), totalMonths))); 3821 } else { 3822 return loanAmount / totalMonths ; 3823 } 3824 } 3825 3826} 3827 3828 3829$( document ).ready(function() 3830{ 3831 3832 if ( $(".monthly_payments_select").length ) { 3833 $("body").on("change",".monthly_payments_select", function(){ 3834 var monthly_payments_total = $(this).attr("total"); 3835 var monthly_payments_ribit = $(this).find("option:selected").attr("ribit"); // Get the ribit attribute from the selected option 3836 var monthly_payments_num = $(this).val(); 3837 var payment_details = loanCal(monthly_payments_total,monthly_payments_num,monthly_payments_ribit); 3838 if ( monthly_payments_num == 1 ) { 3839 3840 $(this).parent().find(".price .value").html(monthly_payments_total); 3841 } 3842 else { 3843 //console.log(payment_details.monthlyPayment); 3844 $(this).parent().find(".price .value").html(payment_details.monthlyPayment.toFixed(2)); 3845 } 3846 3847 }); 3848 $(".monthly_payments_select").trigger("change"); 3849 } 3850 3851 $(".navbar-toggler").click(function(){ 3852 if ( $(this).parent().hasClass("active") ) 3853 { 3854 $(this).parent().removeClass("active"); 3855 $(this).attr('aria-expanded', 'false'); 3856 } 3857 else 3858 { 3859 $(this).parent().addClass("active"); 3860 $(this).attr('aria-expanded', 'true'); 3861 } 3862 3863 }); 3864 3865 3866 $("body").on('mouseleave', '#floating-icons .icons-box',function (e) { 3867 if (!$(e.target).is('input')) { 3868 // $('.content', this).removeClass("active"); 3869 $(this).removeClass("active"); 3870 } 3871 }); 3872 $("body").on('mouseenter', '#floating-icons .icons-box .icon', function () { 3873 // $('.content', this).addClass("active"); 3874 $('#floating-icons .icons-box').removeClass("active"); 3875 $(this).parent().addClass("active"); 3876 3877 3878 if ( $(this).next().find("iframe").length ) 3879 { 3880 var iframedata = $(this).next().find("iframe").attr("data"); 3881 if ( iframedata != '' ) 3882 { 3883 $(this).next().find("iframe").attr("src" , iframedata); 3884 $(this).next().find("iframe").attr("data" , ""); 3885 } 3886 } 3887 }) 3888 3889 3890 3891username_validation() 3892 3893 $("body").on("click","#usepointsbtn",function(){ 3894 $.get("/services/CartServices.asp?service=points_cart_add", function(data) 3895 { 3896 if (data == "1") 3897 { 3898 RenderAllCarts(); 3899 startConfetti(); 3900 } 3901 }); 3902 if ( $(this).attr("href") == 'cart.asp' ) 3903 { 3904 location.href=$(this).attr("href"); 3905 } 3906 return false; 3907 });
3908 3909$("body").on("click",".points_delete_btn",function(){ 3910 $.get("/services/CartServices.asp?service=points_cart_del", function(data) 3911 { 3912 if (data == "1") 3913 { 3914 RenderAllCarts(); 3915 } 3916 }); 3917 return false; 3918 }); 3919 3920 $("body").on("click",".delete_coupon",function(){ 3921 $.get("/services/CartServices.asp?service=deletecoupon", function(data) 3922 { 3923 if (data == "1") 3924 { 3925 RenderAllCarts(); 3926 } 3927 }); 3928 return false; 3929 }); 3930 3931 $(".populartag").click(function() 3932 { 3933 var randomnumber = Math.floor(Math.random()*1000) 3934 var tag_id = $(this).attr("tag_id"); 3935 var tag_url = $(this).attr("href"); 3936 3937 $.ajax({ 3938 url:'/Tags.asp?IsRecordTag=1&TagId='+tag_id+'&rnd='+randomnumber , 3939 type:'GET', 3940 success: 3941 function(data) 3942 { 3943 location.href = tag_url; 3944 } 3945 }); 3946 return false; 3947 }); 3948 3949 $("body").on("click",".toggle:not(.misc_title)",function() 3950 { 3951 $(this).next().toggle(); 3952 if ( $(this).next().is(":visible") ) 3953 { 3954 $(this).addClass("active"); 3955 $(this).attr('aria-expanded', 'true'); 3956 } 3957 else 3958 { 3959 $(this).removeClass("active"); 3960 $(this).attr('aria-expanded', 'false'); 3961 3962 } 3963 return false; 3964 }); 3965 3966 try { 3967 3968 if ($('#SlidingCart').length) 3969 { 3970 RenderAllCarts(); 3971 //get_cart_quantity(); 3972 } 3973 3974 $('form.validate').each( function() 3975 { 3976 $(this).validate({}); 3977 }); 3978 3979 } 3980 catch (err) 3981 { } 3982 3983}); 3984 3985 3986 3987 3988 3989var glbl_int_cat1_menu_num = -1; 3990var glbl_bln_oncat2 = 0; 3991var checkout_validation = ""; 3992function ViewFloatingCart() 3993 { 3994 /* if ($('#SlidingCart').length) 3995 { 3996 // rnd = new Date().getTime(); 3997 // SetInnerHTMLFromAjaxResponse("../inc/FloatingCart/FloatingCart.asp?rnd="+rnd,"SlidingCart"); 3998 }*/ 3999 } 4000 4001function setproductsonquantity() 4002 { } 4003 4004function setcustomscroller() 4005 { } 4006 4007 function get_checkout_payments() 4008 { 4009 var deliveryprice = 0 ; 4010 var ribit = 0 ; 4011 var checkout_payments = default_payment; 4012 4013 $("#OrderPayments option:selected").each(function () 4014 { 4015 ribit = $(this).attr("ribit"); 4016 checkout_payments = $(this).attr("value"); 4017 }); 4018 4019 $("#delivery option:selected").each(function () 4020 { deliveryprice = $(this).attr("price"); }); 4021 4022 var checkout_payments_type = $('input[name=payment_type]:checked', '#checkout-form').val(); 4023 var checkout_payments_id = $('input[name=payment_type]:checked', '#checkout-form').attr("id"); 4024 var agree_credit_token = $('input[name=agree_credit_token]:checked', '#checkout-form').val(); 4025 4026 var bitxt_p = $("#bit_phone").val(); 4027 var bitxt_e = $("#bit_phone_ext").val(); 4028 $.get('/siteservices.asp?service=get_checkout_payments&payment_id='+checkout_payments_id+'&payment_type='+checkout_payments_type+'&payments='+checkout_payments+"&lang="+currentSiteLang+"&CurrencyID="+currentCurrency+"&delivery_price=" + deliveryprice+"&agree_credit_token=" + agree_credit_token + "&bitxt_e=" + bitxt_e + "&bitxt_p=" + bitxt_p, function (data) 4029 { 4030 $("#checkout_payments").html(data); 4031 4032 if ( $("input[name=payment_type]:checked").length == 0 ) 4033 { 4034 $("input[name=payment_type]").eq(0).attr('checked', true); 4035 } 4036 4037 if ( $("input[name=payment_type]:checked").val() == "bit" ) { 4038 $("#bit_phone_div").show(); 4039 } 4040 4041 if ( $("input[name=payment_type]:checked").attr("payments") == "0" ) 4042 { 4043 $("#OrderPayments").val("1"); 4044 $("#OrderPayments").trigger("change"); 4045 $("#OrderPayments").next().find(".sbSelector").html("1"); 4046 $("#OrderPayments").next().hide(); 4047 $(".payments_wrap").hide(); 4048 } 4049 4050 try { 4051 if ( checkout_validation != "1" && global_settings_bootstrap != "1" ) 4052 { 4053 $("select#OrderPayments").selectbox(); 4054 } 4055 } 4056 catch (err) 4057 {} 4058 4059 if ( $("#bit_phone_ext").length && $("#Phone_ext").length ){ 4060 if ( $("#bit_phone").val() == '' && $("#bit_phone_ext").val() == '' ){ 4061 $("#bit_phone").val( $("#Phone").val() ) 4062 $("#bit_phone_ext").val( $("#Phone_ext").val() ) 4063 } 4064 } 4065 4066 4067 4068 4069 4070 4071 4072 4073 }); 4074 } 4075 function get_checkout_relative_items() 4076 { 4077 $.get("/siteservices.asp?service=get_checkout_relative_items&lang="+currentSiteLang+"&CurrencyID="+currentCurrency, function (data) 4078 { 4079 $("#checkout_relative_items").html(data); 4080 dependonwidget(); 4081 }); 4082 } 4083 4084 function ShowAllCarts() 4085 { 4086 4087 if ($('#SlidingCart').length) 4088 { 4089 $('#SlidingCart').show(); 4090 } 4091 4092 if ($("#sidebarcart").length || $("#checkout_fullcart").length || '' == '1' || '' == '' ) 4093 { 4094 RenderAllCarts(); 4095 } 4096 else 4097 { 4098 4099 4100 $("#mobile_smallcart_items_counter").html('0'); 4101 $("#miniCart #cartQuantity").html('0'); 4102 4103 if ( $(".smallcart").length >0 ) 4104 { 4105 //console.log('0'); 4106 if( 0 >0 ) 4107 { 4108 4109 $(".smallcart #cartEmptyTR").hide(); 4110 $(".smallcart #cartPriceTR").show(); 4111 $(".smallcart #cartPrice").html(''); 4112 $(".smallcart #cartQuantity").html('0'); 4113 4114 } 4115 else 4116 { 4117 $(".smallcart #cartEmptyTR").show(); 4118 $(".smallcart #cartPriceTR").hide(); 4119 } 4120 } 4121 setcustomscroller(); 4122 4123 if ($('#SlidingCart').length) 4124 { 4125 if( 0 > 0 ) 4126 { 4127 $("#SlidingCart #CartIcon").removeClass('empty'); 4128 $("#floatingcart-total").html('0'); 4129 } 4130 else 4131 { 4132 $("#SlidingCart #CartIcon").addClass('empty'); 4133 $("#floatingcart-total").html(''); 4134 } 4135 } 4136 } 4137 } 4138 4139 4140 function dependonwidget() { 4141 $(".dependonwidget").each(function () { 4142 4143 // Get the target designbox ID from the attribute" 4144 var dependonwidgetid = $(this).attr("dependonwidgetid");
4145 var $target = $("#designbox_" + dependonwidgetid); 4146 4147 // Safety check: if no such element exists, skip 4148 if (!$target.length) { 4149 return; 4150 } 4151 4152 // Check only the actual content, without script tags 4153 var $content = $target.find('.content'); 4154 4155 // Check if there are products 4156 var hasProducts = $content.find('ul.productBoxes li').length > 0; 4157 4158 // Check if there are images 4159 var hasImages = $content.find('img').length > 0; 4160 4161 // Check if there is real text 4162 var hasText = $.trim($content.text()) !== ""; 4163 4164 if (hasProducts || hasImages || hasText) { 4165 $(this).removeClass("hide-v"); 4166 } else { 4167 $(this).addClass("hide-v"); 4168 } 4169 }); 4170} 4171 4172 4173function get_cart_quantity(){ 4174 $.get("/services/CartServices.asp?service=get_cart_quantity", function(data) 4175 { 4176 4177 }); 4178} 4179 4180 function RenderAllCarts(render_sonquan) 4181{ 4182 4183 if (render_sonquan == undefined ) 4184 { 4185 render_sonquan=0; 4186 } 4187 if ( $("#sidebarcartdiv").length ) 4188 { 4189 render_sonquan=1; 4190 } 4191 4192 try { 4193 var add_js_cartid = '' 4194 if (js_cartid != '') 4195 { 4196 add_js_cartid = "&cartid="+js_cartid+"&lang="+currentSiteLang+"&CurrencyID="+currentCurrency 4197 //add_js_cartid = "&cartid="+js_cartid 4198 4199 4200 } 4201 4202 if ($(".page-checkout").length >0) 4203 { 4204 add_js_cartid = add_js_cartid + "&checkout=1" 4205 $.get("/services/CartServices.asp?service=cartdeliverydelete" + add_js_cartid , function(data) 4206 {}); 4207 4208 } 4209 4210 $.get('/services/cartservices.asp?service=getcart'+add_js_cartid+"&n=1", function (data) 4211 { 4212 4213 $("#minicartdiv #minicartdiv_container").html(data); 4214 $("#minicartdiv #minicartdiv_total").empty(); 4215 $("#minicartdiv .minicartbottom").appendTo('#minicartdiv_total'); 4216 4217 $("#mobile_minicart #mobile_minicart_container").html( data ); 4218 $("#mobile_minicart #mobile_minicart_total").empty(); 4219 $("#mobile_minicart .minicartbottom").appendTo('#mobile_minicart_total'); 4220 4221 if ( ! $("#mobile_minicart .close-icon").length ) 4222 { 4223 $("#mobile_minicart").append('<i class="fa fa-times close-icon" aria-hidden="true"></i>'); 4224 } 4225 4226 4227 4228 $("#sidebarcart").html(data); 4229 4230 $("#shoppingcart").html(data); 4231 4232 4233 if ($('#SlidingCart').length) 4234 { 4235 $(".FlyingCartDivWrap").html(data); 4236 if( $("#minicartproductcount").val() >0 ) 4237 { 4238 $("#SlidingCart #CartIcon").removeClass('empty'); 4239 $("#floatingcart-total").html($("#minicartproductcount").val()); 4240 } 4241 else 4242 { 4243 $("#SlidingCart #CartIcon").addClass('empty'); 4244 $("#floatingcart-total").html('0'); 4245 } 4246 4247 if ( $("#SlidingCart .promotion_notice.success").length ){ 4248 startConfetti(); 4249 } 4250 4251 if ( $("#SlidingCart .promotions-carousel").length ){ 4252 4253 if ( $("#SlidingCart .promotion-item").length > 1 ) { 4254 4255 4256 4257 4258 } 4259 4260 }; 4261 4262 if ( $("#SlidingCart #promotionsoffers").length ){ 4263 if ( $("#SlidingCart #promotionsoffers .promotionsofferitemsul li ").length > 1 ) { 4264 4265 } 4266 } ; 4267 4268 4269 if ( $("#SlidingCart .cart-relatives-carousel").length ){ 4270 if ( $("#SlidingCart .cart-relatives-carousel .relatives-carousel .relative-item").length > 1 ) { 4271 4272 } 4273 } 4274 4275 const $cartDiv = $('#SlidingCart'); // The parent container 4276 const $cartItems = $('#SlidingCart .cart_items_ul'); // The list element 4277 const $bottomDiv = $('#SlidingCart .minicartbottom'); // The bottom section 4278 const $cartHeader = $('#SlidingCart .cart_header'); // The progress bar 4279 4280 // Calculate the height of other elements 4281 const otherElementsHeight =
4282 $bottomDiv.outerHeight(true) + 4283 $cartHeader.outerHeight(true) + 4284 15; // Adjust for additional padding or margins if needed 4285 4286 // Calculate the available height for the cart items 4287 const availableHeight = $cartDiv.outerHeight() - otherElementsHeight; 4288 4289 // Set the max-height of the cart items 4290 $cartItems.css({ 4291 'max-height': `${availableHeight}px`, 4292 'overflow-y': 'auto' 4293 }); 4294 4295 } 4296 4297 4298 $("#mobile_smallcart_items_counter").html($("#minicartproductcount").val()); 4299 $("#miniCart #cartQuantity").html($("#minicartproductcount").val()); 4300 4301 4302 if ($(".checkout_fullcart").length >0) 4303 { 4304 $(".checkout_fullcart .cart").html(data); 4305 if ($(".checkout_fullcart .cart #minicarttotalquantity").val()==0) 4306 { 4307 location.reload(); 4308 } 4309 else 4310 { 4311 4312 try { 4313 4314 get_checkout_relative_items(); 4315 get_checkout_payments(); 4316 get_checkout_shipping(); 4317 setTimeout(function() {calculateordertotal()}, 500); 4318 4319 } 4320 catch (err) 4321 { } 4322 4323 //console.log('calculateordertotal'); 4324 } 4325 } 4326 4327 4328 if ( $(".smallcart").length >0 ) 4329 { 4330 //$(".smallcart #cartQuantity").html("<div id='smallcartdata' style='display:none'>"+data+"</div>"); 4331 if( $("#minicartproductcount").val() >0 ) 4332 { 4333 4334 $(".smallcart #cartEmptyTR").hide(); 4335 $(".smallcart #cartPriceTR").show(); 4336 $(".smallcart #cartPrice").html($("#minicarttotal").val()); 4337 $(".smallcart #cartQuantity").html($("#minicartproductcount").val()); 4338 4339 } 4340 else 4341 { 4342 $(".smallcart #cartEmptyTR").show(); 4343 $(".smallcart #cartPriceTR").hide(); 4344 } 4345 } 4346 4347 if (render_sonquan=="1") 4348 { 4349 setproductsonquantity(); 4350 } 4351 setcustomscroller(); 4352 4353 ViewFloatingCart(); 4354 4355 4356 if ( $("#minicartproductcount").val() == "0" ) 4357 { 4358 $(".cart-link").each( function() 4359 { 4360 $(this).attr("href","#"); 4361 }); 4362 } 4363 else 4364 { 4365 $(".cart-link").each( function() { 4366 $(this).attr("href","/cart.asp"); 4367 }); 4368 } 4369 4370 4371 4372 4373 $("#minicartdiv .cart_dimension_type").each( function ( index ){ 4374 var temp_attr_name = $(this).attr("name"); 4375 $(this).attr("name", temp_attr_name + "mc" ); 4376 var attr = $(this).attr('checked'); 4377 if (typeof attr !== typeof undefined && attr !== false) { 4378 $(this).prop("checked", true); 4379 } 4380 }); 4381 4382 $("#sidebarcartdiv .cart_dimension_type").each( function ( index ){ 4383 var temp_attr_name = $(this).attr("name"); 4384 $(this).attr("name", temp_attr_name + "sb" ); 4385 var attr = $(this).attr('checked'); 4386 if (typeof attr !== typeof undefined && attr !== false) { 4387 $(this).prop("checked", true); 4388 } 4389 }); 4390 4391 4392 if ( $("#cart-points").length > 0 ) 4393 { 4394 $.get('/siteservices.asp?service=points_cart_get', function(data) 4395 { 4396 $("#cart-points span").html(data); 4397 4398 }); 4399 } 4400 4401 4402 4403 }) ; 4404} 4405catch (err) 4406 { } 4407 4408} 4409 4410 var cartmobilepopuptimer = ""; 4411 4412function mobile_minicart_toggle(num) 4413{ 4414 // console.log("mobile_minicart_toggle = " + num); 4415 $("#mobile_minicart").toggle(); 4416} 4417 4418function Ajax_updateCartInfo() 4419{ 4420 4421 RenderAllCarts(); 4422 4423 try { 4424 4425 clearTimeout(cartmobilepopuptimer); 4426 4427 if ( !$("#mobile_minicart").is(':visible') ) 4428 { 4429 //$("#mobile_header .header_smallcart").trigger("click"); 4430 mobile_minicart_toggle("6"); 4431 } 4432 4433 cartmobilepopuptimer = setTimeout(function() { 4434 //$("#mobile_header .header_smallcart").trigger("click"); 4435 mobile_minicart_toggle("7"); 4436 }, 6000 ); 4437 4438 4439 } 4440 catch (err) 4441 { } 4442 4443 if ($('#SlidingCart').length) 4444 {
4445 OpenFloatingCart(); 4446 } 4447 else 4448 { 4449 OpenSmallCart(); 4450 } 4451 4452 cart_opened = true; 4453 4454} 4455 4456 4457 4458 4459 4460function AddToCartAjaxDivNote(xml, p, t) 4461{ 4462 4463 4464 try { removeAjaxDivNote(); } 4465 catch (e) { } 4466 4467 var e 4468 if(window.ActiveXObject){ 4469 // *** IE 4470 var xmlDom = getDOMObject(); 4471 xmlDom.loadXML(xml); 4472 p = xmlDom.getElementsByTagName("PRICE")[0].text; 4473 t = xmlDom.getElementsByTagName("QUANTITY")[0].text; 4474 } 4475 else if (document.implementation && document.implementation.createDocument) 4476 { 4477 // *** Mozilla 4478 var oParser = new DOMParser(); 4479 var xmlDom = oParser.parseFromString(xml,'text/xml'); 4480 p = xmlDom.getElementsByTagName("PRICE")[0].textContent; 4481 t = xmlDom.getElementsByTagName("QUANTITY")[0].textContent; 4482 } 4483 4484 if (p != "" && t != "" && p != "undefined" && t != "undefined") { 4485 try { 4486 var ni = document.getElementById('MainWrapDiv'); 4487 var newdiv = document.createElement('div'); 4488 var divIdName = 'AddToCartAjaxDivNote'; 4489 newdiv.setAttribute('id', divIdName); 4490 newdiv.innerHTML = "<a class=\'DelAddToCartAjaxDivNote\' href=\'#\' onclick=\'removeAjaxDivNote()\'><span>X</span></a> <h3>"+CartAjaxAddTxt+"</h3><p class='info'> " + t+ " " +CartAjaxQuantityName + " | " +CartAjaxTotalName+ " " + currentCurrencySign+p + "</p><p class='buttons'><a class='cartlink' href='/cart.asp' >"+CartAjaxBuyingTxt+"</a> <a class='checkoutlink' href='#' onclick=\'removeAjaxDivNote()\' >"+CartAjaxContinueTxt+"</a></p>"; 4491 ni.appendChild(newdiv); 4492 showdeadcenterdiv("AddToCartAjaxDivNote"); 4493 } 4494 catch (e) { } 4495 } 4496 } 4497 4498 4499var ObjName; 4500var tempval; 4501var templateSubCatOffset=0; 4502 4503function IsEmptyStr(objName){ 4504 if (eval(objName+".value")==""){ 4505 return true; 4506 } 4507 else{ 4508 tempval = new String(eval(objName+".value")) 4509 for (y=0;y<tempval.length;y++){ 4510 if (tempval.substring(y,y+1) != " "){ 4511 tempval=tempval.slice(y,tempval.length); 4512 y = tempval.length; 4513 eval(objName+".value = tempval") 4514 } 4515 else { 4516 if (y == tempval.length-1){ 4517 eval(objName+".value = ''") 4518 return true; 4519 } 4520 } 4521 } 4522 } 4523 tempval = new String(eval(objName+".value")) 4524 for (y=tempval.length;y>0;y--){ 4525 if (tempval.substring(y-1,y) != " "){ 4526 tempval = tempval.slice(0,y); 4527 y=0; 4528 eval(objName+".value = tempval") 4529 } 4530 } 4531 return false; 4532} 4533 4534 4535function Cat_mouseover(cate1,num){ 4536if (cate1 != glbl_int_cat1_menu_num){ 4537glbl_int_cat1_menu_num = cate1; 4538 4539var start_div = ""; 4540var mid_div = ""; 4541var end_div = ""; 4542var found_cat2 = 0; 4543eval("cat2array = cat1_"+cate1+"_cat2array") 4544// document.body.scrollLeft = 150; 4545 4546 winW2 = (document.layers)? window.innerWidth-16 : document.body.offsetWidth-20 4547 winW1 = 960 4548 winW = (winW2-winW1)/2 + winW1 4549 4550 my = (document.layers)? e.layerY:event.y; 4551 mx = (document.layers)? e.layerX:event.x; 4552 my_off = event.offsetY 4553 mx_off = event.offsetX 4554 my_dsTOP = document.body.scrollTop 4555 my_dsLFT = document.body.scrollLeft 4556 4557 4558 document.getElementById("Cat2lay").style.top = my-20+my_dsTOP; 4559 if (langdir == "rtl" ){ 4560 document.getElementById("Cat2lay").style.left = winW-235+my_dsLFT+templateSubCatOffset;} 4561 else { 4562 4563 document.getElementById("Cat2lay").style.left = 229; 4564 4565 } 4566 4567 if (num > 0){ 4568 tbl_mover = "onmouseover=document.all.df"+num+".style.backgroundColor='#FFFFFF'" 4569 tbl_mout = "onmouseout=document.all.df"+num+".style.backgroundColor=''" 4570 } 4571 else{ 4572 tbl_mover = "" 4573 tbl_mout = "" 4574 } 4575 4576 start_div = "<table cellpadding=4 cellspacing=1 border=0 bgcolor='black' width=120 "+tbl_mover+" "+tbl_mout+" style='cursor:hand'>"; 4577 for (i=0;i < cat2array.length;i++){ 4578 if (cat2array[i][0]==cate1){ 4579 //products_href = "products.asp?Cat2Cat1ID="+cat2array[i][0]+"&Cat2ID="+cat2array[i][1]; 4580 var products_href = "items~"+cat2array[i][0]+"~"+cat2array[i][1]+".htm"; 4581 mid_div=mid_div+"<tr><td bgcolor='#898989' align=center id=cat2mo"+i+" class='sub_cats_txt_col' onmouseover='Cat2_mouseover("+i+")' onmouseout='Cat2_mouseout("+i+")' onclick=document.location='"+products_href+"' dir='"+langdir+"'>"+cat2array[i][2]+"<\/td><\/tr>"; 4582 } 4583 } 4584 4585 end_div = "<\/table>"; 4586 document.getElementById("Cat2lay").innerHTML = start_div+mid_div+end_div; 4587 document.getElementById("Cat2lay").style.display = 'block' 4588 4589} 4590} 4591 4592 4593function Cat_mouseout(){ 4594 if (document.getElementById("Cat2lay").style.display == 'block') 4595 var timer = setTimeout('close_menus()',2500); 4596} 4597 4598function close_menus(){ 4599 if (glbl_bln_oncat2 == 0){ 4600 document.getElementById("Cat2lay").style.display = 'none'
4601 glbl_int_cat1_menu_num = -1; 4602 } 4603} 4604 4605 4606function Cat2_mouseover(i){ 4607 glbl_bln_oncat2 = 1; 4608 eval("document.all.cat2mo"+i+".style.backgroundColor='#898989'") 4609 eval("document.all.cat2mo"+i+".style.color='white'") 4610} 4611 4612function Cat2_mouseout(i){ 4613 glbl_bln_oncat2 = 0; 4614 eval("document.all.cat2mo"+i+".style.backgroundColor='#898989'") 4615 eval("document.all.cat2mo"+i+".style.color='#000000'") 4616} 4617 4618function opendiv(cat1id){ 4619 if (eval("document.all.tbl_"+cat1id+".style.display") == 'none'){ 4620 eval("document.all.pic_"+cat1id+".src = 'images/minus.gif'") 4621 eval("document.all.tbl_"+cat1id+".style.display = 'block'") 4622 } 4623 else{ 4624 eval("document.all.pic_"+cat1id+".src = 'images/plus.gif'") 4625 eval("document.all.tbl_"+cat1id+".style.display = 'none'") 4626 } 4627 4628} 4629 4630function directcat1(cid){ 4631 eval("cat2array = cat1_"+cid+"_cat2array") 4632 found_cat2 = 0; 4633 for (i=0;i < cat2array.length;i++){ 4634 if (cat2array[i][0] == cid){ 4635 found_cat2 = cat2array[i][1] 4636 break 4637 } 4638 } 4639 if (found_cat2 == 0){ 4640 //document.location='products.asp?Cat2Cat1ID='+cid; 4641 document.location='items~'+cid+'.htm'; 4642 } 4643 else{ 4644 //document.location='products.asp?Cat2Cat1ID='+cid+'&Cat2ID='+found_cat2; 4645 document.location='items~'+cid+'~'+found_cat2+'.htm'; 4646 } 4647} 4648 4649function subserach(){ 4650 if ((IsEmptyStr('document.all.srch_str.value')) || (document.all.srch_str.value.length > 1) || document.all.srch_manufact.value != ""){ 4651 document.quicksearch.qsearch.value = document.all.srch_str.value 4652 document.quicksearch.qmanufact.value = document.all.srch_manufact.value 4653 document.quicksearch.submit() 4654 } 4655} 4656 4657function chkchr(){ 4658 if (window.event.keyCode == 13) 4659 subserach() 4660} 4661 4662 4663function setCartInfo(xml,p,t){ 4664 4665 var e 4666 4667 var cartarray = xml.split("{|}"); 4668 var p = cartarray[1]; 4669 var t = cartarray[2]; 4670 4671 //var p = $(xml).find('PRICE').text(); 4672 //var t = $(xml).find('QUANTITY').text(); 4673 4674 if (p != "" && t != "" && p != "undefined" && t != "undefined"){ 4675 try 4676 { 4677 $("#cartQuantity").html(t); 4678 $("#cartPrice").html(p); 4679 //var cartp = document.getElementById("cartPrice"); 4680 //var cartq = document.getElementById("cartQuantity"); 4681 var cartpTR = document.getElementById("cartPriceTR"); 4682 var cartqTR = document.getElementById("cartQuantityTR"); 4683 var carteTR = document.getElementById("cartEmptyTR"); 4684 carteTR.style.display = 'none'; 4685 //cartp.innerHTML = p; 4686 //cartq.innerHTML = t; 4687 cartpTR.style.display = ''; 4688 cartqTR.style.display = ''; 4689 } 4690 catch(e){}; 4691 } 4692 else{ 4693 try 4694 { 4695 var carteTR = document.getElementById("cartEmptyTR"); 4696 carteTR.style.display = ''; 4697 } 4698 catch(e){} 4699 } 4700} 4701 4702// Floating banners // 4703var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1 4704 4705function positionit(pos,div,w,h,ho,vo){ 4706 //ho = HorizontalOffset //vo = VerticalOffset; 4707 var bannerObj=ie? eval("document.all."+div) : document.getElementById? document.getElementById(div) : eval("document."+div) 4708 var dsocleft=ie? document.body.scrollLeft : pageXOffset 4709 var dsoctop=ie? document.body.scrollTop : pageYOffset 4710 var window_width=ie? document.body.clientWidth : window.innerWidth-20 4711 4712 if (ie||document.getElementById){ 4713 if(pos == "L") 4714 bannerObj.style.left=parseInt(dsocleft)+5+ho 4715 else 4716 bannerObj.style.left=parseInt(dsocleft)+parseInt(window_width)-w-ho 4717 bannerObj.style.top=parseInt(dsoctop)+5+vo 4718 } 4719 else if (document.layers){ 4720 if(pos == "L"){ 4721 bannerObj.left=dsocleft+5+ho 4722 bannerObj.top=dsoctop+5+vo 4723 } 4724 else{ 4725 bannerObj.left=dsocleft+window_width-ho-w 4726 bannerObj.top=dsoctop+window_height+5+vo 4727 } 4728 } 4729} 4730 4731function beingFloatingBanners(){ 4732 var window_width=ie? document.body.clientWidth : window.innerWidth-20 4733 4734 if(window_width > 1100){ 4735 if (document.getElementById("FloatBNRight").innerHTML.length > 20 ){ 4736 document.getElementById("FloatBNRight").style.display='block'; 4737 setInterval("positionit('R','FloatBNRight',80,200,25,0)",50); 4738 } 4739 if (document.getElementById("FloatBNLeft").innerHTML.length > 20 ){ 4740 document.getElementById("FloatBNLeft").style.display='block'; 4741 setInterval("positionit('L','FloatBNLeft',80,200,2,0)",50); 4742 } 4743 } 4744 4745} 4746</script>
4746 4747 4748 4749 4750 4751 4752 4753 4754
4754<script> 4755 4756 4757 4758 4759 4760$( document ).ready(function() { 4761 4762 4763 4764 $( ".first_layer" ).delegate( "*", "focus blur", function() { 4765 var elem = $( this ); 4766 if(elem.is(":focus") == true ){ 4767 elem.parent().addClass( "active" ); 4768 } 4769 else { 4770 elem.parent().removeClass( "active" ); 4771 } 4772 }); 4773 4774 4775 4776 $("body").on( "click", ".product_add_to_cart_button", function(){ 4777 4778 var product_ids =''; 4779 $(".item_checkbox_input:checked").each( function(){ 4780 if ( $(this).parents(".boxItem").find(".product_son").length ) { 4781 product_ids = product_ids + $(this).parents(".boxItem").find(".product_son:checked").val()+ ", "; 4782 } 4783 else 4784 { 4785 if ( $(this).val() != '' ){ 4786 product_ids = product_ids + $(this).val() + ", "; 4787 } 4788 } 4789 }); 4790 4791 if ( product_ids != '' ){ 4792 product_ids = product_ids.substring(0, product_ids.length - 2); 4793 4794 $.post( "/cartLogic.asp?ajax=1", { pid:product_ids } ).done(function( data ) { 4795 RenderAllCarts(); 4796 OpenSmallCart(); 4797 }); 4798 } 4799 return false; 4800 }); 4801 4802 4803 4804 4805 $("body").on( "click", "#product_multi_checkbox", function(){ 4806 4807 if ( $(this).is(":checked") ) 4808 { 4809 $(".item_checkbox_input").each (function(){ 4810 $(this).prop("checked",true); 4811 }); 4812 } 4813 else 4814 { 4815 $(".item_checkbox_input").each (function(){ 4816 $(this).prop("checked",false); 4817 }); 4818 } 4819 4820 }); 4821 4822 }); 4823 4824 $(document).ready(function() { 4825 4826 4827 // Hide the div when clicking the close icon 4828 $(document).on('click', '.close-icon', function() { 4829 $(this).parent().hide(); 4830 }); 4831 4832 // Hide the div when clicking outside of it 4833 $(document).click(function(event) { 4834 var $target = $(event.target); 4835 if(!$target.closest('.mobile_search_form').length && $('.mobile_search_form').is(":visible")) { 4836 $('.mobile_search_form').hide(); 4837 } 4838 4839 if(!$target.closest('#mobile_minicart').length && $('#mobile_minicart').is(":visible")) { 4840 $('#mobile_minicart').hide(); 4841 } 4842 }); 4843 4844 4845}); 4846 4847 4848(() => { 4849 const prefix = 'animate__'; 4850 4851 function play(el, anim) { 4852 const trimmedAnim = anim.trim(); 4853 const cls = `${prefix}${trimmedAnim}`; 4854 el.classList.add(`${prefix}animated`, cls); 4855 el.addEventListener('animationend', () => { 4856 el.classList.remove(cls); 4857 }, { once: true }); 4858 } 4859 4860 function stripAnimate(el) { 4861 // remove any animate.css classes that might have been pre-added 4862 el.className = el.className.replace(/\banimate__\S+/g, '').trim(); 4863 } 4864 4865 let io = null; 4866 4867 function getObserver() { 4868 if (io) return io; 4869 const prefersReduced = matchMedia('(prefers-reduced-motion: reduce)').matches; 4870 4871 // If your items scroll inside a container, set root to that container 4872 // const rootEl = document.querySelector('.your-scrollable-wrapper'); 4873 4874 io = new IntersectionObserver((entries, obs) => { 4875 entries.forEach(entry => { 4876 if (!entry.isIntersecting || entry.intersectionRatio < 0.01) return; 4877 4878 const el = entry.target; 4879 const anim = el.getAttribute('data-animation'); 4880 4881 if (prefersReduced) { 4882 el.classList.add(`${prefix}animated`); // reveal without motion 4883 } else { 4884 play(el, anim); 4885 } 4886 4887 obs.unobserve(el); // animate once 4888 }); 4889 }, { 4890 root: null, // change to rootEl if not window scrolling 4891 threshold: 0.01, 4892 rootMargin: '0px 0px -5% 0px' 4893 }); 4894 return io; 4895 } 4896 4897 // Observe every element that declares data-animation inside `root` (root itself included). 4898 // Runs once on DOM ready and again for every node injected later (infinite scroll, 4899 // lazyscroll blocks, ajax popups) - otherwise those stay at opacity:0 forever because 4900 // nothing ever adds animate__animated to them. 4901 function observeAnimations(root) { 4902 const scope = root || document; 4903 const items = Array.prototype.slice.call(scope.querySelectorAll('[data-animation]')); 4904 if (scope.nodeType === 1 && scope.hasAttribute('data-animation')) items.unshift(scope); 4905 if (!items.length) return; 4906 4907 const obs = getObserver();
4908 items.forEach(el => { 4909 if (el.dataset.esAnimObserved === '1') return; // already handled (or already played) 4910 el.dataset.esAnimObserved = '1'; 4911 stripAnimate(el); 4912 obs.observe(el); 4913 }); 4914 } 4915 4916 function bootAnimations() { 4917 observeAnimations(document); 4918 if (!window.MutationObserver || !document.body) return; 4919 if (window.__esAnimObserver) return; 4920 window.__esAnimObserver = new MutationObserver(mutations => { 4921 mutations.forEach(mutation => { 4922 mutation.addedNodes.forEach(node => { 4923 if (node.nodeType === 1) observeAnimations(node); 4924 }); 4925 }); 4926 }); 4927 window.__esAnimObserver.observe(document.body, { childList: true, subtree: true }); 4928 } 4929 4930 window.es_observe_animations = observeAnimations; 4931 4932 if (document.readyState === 'loading') { 4933 document.addEventListener('DOMContentLoaded', bootAnimations); 4934 } else { 4935 bootAnimations(); 4936 } 4937})(); 4938 4939(function() { 4940 function clearHaClasses(el) { 4941 el.classList.remove('es-ha-in', 'es-ha-out'); 4942 } 4943 4944 function bindHoverAnim(el) { 4945 if (el.dataset.esHaBound === '1') return; 4946 el.dataset.esHaBound = '1'; 4947 4948 el.addEventListener('mouseenter', function() { 4949 clearHaClasses(el); 4950 void el.offsetWidth; 4951 el.classList.add('es-ha-in'); 4952 }); 4953 4954 el.addEventListener('mouseleave', function() { 4955 clearHaClasses(el); 4956 void el.offsetWidth; 4957 el.classList.add('es-ha-out'); 4958 var onEnd = function(e) { 4959 if (e.target !== el || e.animationName === 'none') return; 4960 el.classList.remove('es-ha-out'); 4961 el.removeEventListener('animationend', onEnd); 4962 }; 4963 el.addEventListener('animationend', onEnd); 4964 }); 4965 } 4966 4967 function initEsHoverAnims(root) { 4968 var scope = root || document; 4969 var boxes = scope.querySelectorAll('[id^="designbox_"]'); 4970 boxes.forEach(function(box) { 4971 var candidates = [box].concat(Array.prototype.slice.call(box.querySelectorAll('*'))); 4972 candidates.forEach(function(el) { 4973 try { 4974 if (getComputedStyle(el).getPropertyValue('--es-ha').trim()) { 4975 bindHoverAnim(el); 4976 } 4977 } catch (e) {} 4978 }); 4979 }); 4980 } 4981 4982 function bootEsHoverAnims() { 4983 initEsHoverAnims(document); 4984 if (!window.MutationObserver || !document.body) return; 4985 if (window.__esHoverAnimObserver) return; 4986 window.__esHoverAnimObserver = new MutationObserver(function(mutations) { 4987 mutations.forEach(function(mutation) { 4988 mutation.addedNodes.forEach(function(node) { 4989 if (node.nodeType === 1) initEsHoverAnims(node); 4990 }); 4991 }); 4992 }); 4993 window.__esHoverAnimObserver.observe(document.body, { childList: true, subtree: true }); 4994 } 4995 4996 if (document.readyState === 'loading') { 4997 document.addEventListener('DOMContentLoaded', bootEsHoverAnims); 4998 } else { 4999 bootEsHoverAnims(); 5000 } 5001})(); 5002 5003 5004</script>
5004 5005 5006 5007 5008 5009</head> 5010 5011<body class="page-contact he is_desktop " > 5012 5013 5014<div id="fb-root"></div> 5015<div id="pl_web_page"> 5016 <div id="pl_web_page_wrap"> 5017 5018 <div id="scroll-all" style="position: fixed; right: 10px; bottom: 10%; z-index: 100; display: block;z-index: 99999;"> 5019 <div id="scroll-full"></div> 5020 <div id="scroll-bottom"></div> 5021 </div> 5022 5023 5024 <div id="FloatBNLeft" style="display:none;float:left" > 5025 5026 </div> 5027 5028 <div id="FloatBNRight" style="display:none;float:right" > 5029 5030 </div> 5031 5032 <div id="SlidingCart" style="display:none"> 5033 <div id="FlyingCartDiv"> 5034 <div class="confetti-wrapper"></div> 5035 <div id="InnerCartDiv"> 5036 <div class="FlyingCartDivWrap"><div class="emptycart text">èåòï òâìä àðà äîúï...</div></div></div> 5037 5038 <div class="cart_content"> 5039 5040 5041 <div id="cart_add_order_comment" class="cart_content_panel"> 5042 <i class="fal fa-times close"></i> 5043 <h3 class="mb-4">äåñôú äòøä ìäæîðä</h3> 5044 <div class="form-group"> 5045 <textarea class="form-control" aria-label="äåñéôå äòøåú îéåçãåú ìäæîðä (ëîå äðçéåú ìùìéç)" placeholder="äåñéôå äòøåú îéåçãåú ìäæîðä (ëîå äðçéåú ìùìéç)"></textarea> 5046 </div> 5047 <button class="btn btn-block btn-primary" id="save_cart_order_comment">ùîéøú äòøä</button> 5048 </div> 5049 5050 <!-- Content for "Coupon Code" --> 5051 <div id="cart_choose_coupons" class="cart_content_panel"> 5052 <i class="fal fa-times"></i> 5053 <div class="loader" style="display: none;"> 5054 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" style="width:120px; height:120px;"> 5055 <defs> 5056 <linearGradient id="a1" x1="0%" y1="0%" x2="100%"> 5057 <stop offset="0%" stop-color="#000000" stop-opacity="1"></stop> 5058 <stop offset="100%" stop-color="#333333" stop-opacity="1"></stop> 5059 </linearGradient> 5060 </defs> 5061 <circle transform-origin="center" fill="none" stroke="url(#a1)" stroke-width="7" stroke-linecap="round" stroke-dasharray="200 1000" stroke-dashoffset="0" cx="100" cy="100" r="70"> 5062 <animateTransform type="rotate" attributeName="transform" calcMode="spline" dur="0.7s" values="360;0" keyTimes="0;1" keySplines="0 0 1 1" repeatCount="indefinite"></animateTransform> 5063 </circle> 5064 <circle transform-origin="center" fill="none" opacity=".2" stroke="black" stroke-width="1.62" stroke-linecap="round" cx="100" cy="100" r="70"></circle> 5065 </svg> 5066 </div> 5067 <div class="panel_content"></div> 5068 5069 <h3 class="mt-4">éù ìê ÷åã ÷åôåï?</h3> 5070 <div class="form-group"> 5071 <input type="text" value="" placeholder="÷åã ÷åôåï" aria-label="÷åã ÷åôåï" class="form-control" name="cart_coupon_code" id="cart_coupon_code"> 5072 <span id="cart_coupon_code_error" class="error"></span> 5073 </div> 5074 <button class="btn btn-block btn-primary" id="apply_cart_coupon">äçì ÷åôåï</button> 5075 </div> 5076 5077 <!-- Content for "Delivery Details" --> 5078 <div id="cart_delivery_details" class="cart_content_panel"> 5079 5080 <i class="fal fa-times"></i> 5081 <h3>ôøèé äîùìåç</h3> 5082 <div class="loader" style="display: none;"> 5083 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" style="width:120px; height:120px;"> 5084 <defs> 5085 <linearGradient id="a1" x1="0%" y1="0%" x2="100%"> 5086 <stop offset="0%" stop-color="#000000" stop-opacity="1"></stop> 5087 <stop offset="100%" stop-color="#333333" stop-opacity="1"></stop> 5088 </linearGradient> 5089 </defs> 5090 <circle transform-origin="center" fill="none" stroke="url
5090(#a1)" stroke-width="7" stroke-linecap="round" stroke-dasharray="200 1000" stroke-dashoffset="0" cx="100" cy="100" r="70"> 5091 <animateTransform type="rotate" attributeName="transform" calcMode="spline" dur="0.7s" values="360;0" keyTimes="0;1" keySplines="0 0 1 1" repeatCount="indefinite"></animateTransform> 5092 </circle> 5093 <circle transform-origin="center" fill="none" opacity=".2" stroke="black" stroke-width="1.62" stroke-linecap="round" cx="100" cy="100" r="70"></circle> 5094 </svg> 5095 </div> 5096 <div class="panel_content"></div> 5097 5098 </div> 5099 5100 5101 </div> 5102 5103
5103<script> 5104 5105 function startConfetti() { 5106 const confettiWrapper = document.querySelector('.confetti-wrapper'); 5107 5108 // Clear any existing confetti 5109 confettiWrapper.innerHTML = ''; 5110 5111 // Show the confetti wrapper 5112 confettiWrapper.style.display = 'block'; 5113 5114 const totalConfetti = 150; // Total number of confetti pieces 5115 let completedConfetti = 0; // Track completed animations 5116 5117 for (let i = 0; i < totalConfetti; i++) { 5118 const confetti = document.createElement('div'); 5119 confetti.classList.add('confetti-piece'); 5120 5121 // Random position, size, and animation duration 5122 confetti.style.left = `${Math.random() * 100}%`; 5123 confetti.style.setProperty('--fall-duration', `${Math.random() * 2 + 1}s`); 5124 confetti.style.setProperty('--confetti-color', getRandomColor()); 5125 5126 // Randomly create rectangles or arcs 5127 if (Math.random() > 0.5) { 5128 const isSmall = Math.random() > 0.7; 5129 const width = isSmall ? `${Math.random() * 5 + 2}px` : `${Math.random() * 10 + 5}px`; 5130 const height = isSmall ? `${Math.random() * 10 + 5}px` : `${Math.random() * 20 + 10}px`; 5131 confetti.style.width = width; 5132 confetti.style.height = height; 5133 } else { 5134 confetti.classList.add('confetti-arc'); 5135 const size = `${Math.random() * 6 + 3}px`; 5136 confetti.style.width = size; 5137 confetti.style.height = size; 5138 confetti.style.setProperty('--arc-rotation', `${Math.random() * 360}deg`); 5139 } 5140 5141 // Add confetti with staggered delays 5142 setTimeout(() => { 5143 confettiWrapper.appendChild(confetti); 5144 5145 // Remove confetti when animation ends 5146 confetti.addEventListener('animationend', () => { 5147 confetti.remove(); 5148 completedConfetti++; 5149 5150 // Hide the wrapper when all confetti is done 5151 if (completedConfetti === totalConfetti) { 5152 confettiWrapper.style.display = 'none'; 5153 } 5154 }); 5155 }, Math.random() * 1000); // Staggered start 5156 } 5157 } 5158 5159 function getRandomColor() { 5160 const colors = [ 5161 '#ff6347', '#ffa500', '#32cd32', '#1e90ff', '#ff69b4', 5162 '#9400d3', '#00ced1', '#f4a460', '#7fff00', '#ff4500' 5163 ]; 5164 return colors[Math.floor(Math.random() * colors.length)]; 5165 } 5166 5167 5168$(document).ready(function () { 5169 5170 $("body").on("click", "#SlidingCart .coupon_box" , function(){ 5171 var current_coupon = $(this).find(".code").text(); 5172 $("#cart_coupon_code").val(current_coupon); 5173 5174 }); 5175 $("#apply_cart_coupon").on("click",function(){ 5176 let coupon_is_valid = true; 5177 const cart_coupon_code = $("#cart_coupon_code"); 5178 if (!cart_coupon_code.val()) { 5179 coupon_is_valid = false; 5180 cart_coupon_code.css("border", "1px solid red"); 5181 $("#cart_coupon_code_error").text("Type coupon code"); // Show error 5182 } else { 5183 cart_coupon_code.css("border", ""); 5184 $("#cart_coupon_code_error").text(""); // Clear error 5185 } 5186 if (coupon_is_valid){ 5187 5188 5189 $.get("/services/CartServices.asp?service=setcoupon&CouponCode=" + cart_coupon_code.val(), function (data) 5190 { 5191 answer = data.split("|"); 5192 if (answer[0] == "1") 5193 { 5194 RenderAllCarts(); 5195 $(".cart_content_panel").removeClass("active"); 5196 $(".FlyingCartDivWrap").removeClass("opacity"); 5197 startConfetti(); 5198 } 5199 else 5200 { 5201 if (answer[1] != "") 5202 { 5203 $("#cart_coupon_code_error").text(answer[1]); // Show error 5204 } 5205 return false;
5206 } 5207 5208 }); 5209 } 5210 }); 5211 5212 // Save the comment to localStorage on button click 5213 $("#save_cart_order_comment").on("click", function () { 5214 const commentTextarea = $("#cart_add_order_comment textarea"); 5215 const comment = commentTextarea.val().trim(); // Get the value of the textarea 5216 5217 if (comment) { 5218 localStorage.setItem("order_comment", comment); // Save to localStorage 5219 commentTextarea.val(comment); // Clear the textarea after saving 5220 } else { 5221 5222 } 5223 $(".cart_content_panel").removeClass("active"); 5224 $(".cart_content").removeClass("active"); 5225 $(".FlyingCartDivWrap").removeClass("opacity"); 5226 }); 5227 5228 // Optional: Load saved comment on page load 5229 const savedComment = localStorage.getItem("order_comment"); 5230 if (savedComment) { 5231 $("#cart_add_order_comment textarea").val(savedComment); // Populate the textarea with the saved comment 5232 } 5233 5234 // Handle tab clicks to open panels 5235 $("body").on( "click", ".cart_tab", function (e) { 5236 5237 $(".FlyingCartDivWrap").addClass("opacity"); 5238 const targetid = $(this).attr("data-target"); 5239 const targetPanel = $($(this).data("target")); 5240 5241 // Check if the target panel exists 5242 if (targetPanel.length) { 5243 // Show the loader if the panel is empty 5244 const loader = targetPanel.find(".loader"); 5245 const panelContent = targetPanel.find(".panel_content"); 5246 5247 if (targetid == "#cart_choose_coupons"){ 5248 var url = "/siteservices.asp?service=get_cart_tab¶ms=cart_choose_coupons" ; 5249 } 5250 5251 if (targetid == "#cart_delivery_details"){ 5252 var url = "/siteservices.asp?service=get_cart_tab¶ms=cart_delivery_details" ; 5253 } 5254 5255 if ( targetid != "#cart_add_order_comment" ) { 5256 if (!panelContent.html().trim() ) { 5257 loader.show(); // Show the loader 5258 5259 $.ajax({ 5260 url: url , // Replace with your endpoint URL 5261 method: "GET", 5262 dataType: "html", 5263 success: function (response) { 5264 panelContent.html(response); // Insert the HTML content 5265 loader.hide(); // Hide the loader 5266 }, 5267 error: function () { 5268 loader.hide(); // Hide the loader on error 5269 }, 5270 }); 5271 5272 } 5273 } 5274 5275 $(".cart_content_panel").removeClass("active"); 5276 // Close all panels and open the current one 5277 $(".content_panel").removeClass("active"); 5278 targetPanel.addClass("active"); 5279 $(".cart_content").addClass("active"); 5280 5281 } 5282 5283 return false; 5284 }); 5285 5286 5287 // Handle clicking outside to close panels 5288 $(document).on("click", function (e) { 5289 if ( 5290 !$(e.target).closest(".cart_tabs").length && 5291 !$(e.target).closest(".cart_content").length 5292 ) { 5293 $(".cart_content_panel").removeClass("active"); 5294 $(".cart_content").removeClass("active"); 5295 $(".FlyingCartDivWrap").removeClass("opacity"); 5296 } 5297 }); 5298 5299 // Handle "fa-times" click to close the specific panel 5300 $(".fal.fa-times").on("click", function (e) { 5301 e.stopPropagation(); // Prevent triggering the document click listener 5302 const parentPanel = $(this).closest(".cart_content_panel"); 5303 if (parentPanel.length) { 5304 parentPanel.removeClass("active"); 5305 $(".cart_content").removeClass("active"); 5306 $(".FlyingCartDivWrap").removeClass("opacity"); 5307 } 5308 }); 5309}); 5310 </script>
5310 5311 5312 <div class="empty" id="CartIcon"> 5313 <span id="floatingcart-total"></span> 5314 <i class="fal fa-shopping-cart icon " aria-hidden="true"></i> 5315 </div> 5316 </div> 5317 5318 </div> 5319 5320 5321 <div id="Cat2lay"></div> 5322 5323 5324 <div align="center" id="MainWrapDiv" > 5325 <div align="center" id="MainContentDiv" > 5326 5327 5328 <!--[ header start ]--> 5329 5330 5331 5332 5333 <div id="header" class="header"> 5334 5335 5336 <div class="header_wrap"> 5337 <div class="container_16 wrap " > 5338 <!--[ start_userbar_6 ]--> 5339 <div class=" lazyload designbox header_userbar" id="designbox_6" > 5340 5341 </div><!--[ end_userbar_6 ]--><!--[ start_menu_7 ]--> 5342 <div class=" designbox header_menu" id="designbox_7" > 5343 5344 5345 <div class="block menu grid_16" > 5346 5347 <div class="content "> 5348 5349 <ul class="dropdown-menu "> 5350 5351 <li class=" first parent"> 5352 <a class="" href="/" ><span>øàùé</span></a> 5353 </li> 5354 <li class=" parent"> 5355 <a class="" href="/infopage.asp?page=183" ><span>àåãåúéðå</span></a> 5356 </li> 5357 <li class=" parent"> 5358 <a class="" href="/infopage.asp?page=216" ><span>ú÷ðåï </span></a> 5359 </li> 5360 <li class=" parent"> 5361 <a class="" href="/infopage.asp?page=190" ><span>á÷øåá</span></a> 5362 5363 <ul> 5364 <li class=""><a class="" href="/infopage.asp?page=198" ><span>îàîø øàùåï</span></a> 5365 5366 5367 5368 </li><li class=""><a class="" href="/infopage.asp?page=199" ><span>îàîø ùðé</span></a> 5369 5370 5371 5372 </li><li class=""><a class="" href="/infopage.asp?page=200" ><span>îàîø ùìéùé</span></a> 5373 5374 5375 5376 </li> 5377 </ul> 5378 5379 </li> 5380 <li class="current parent"> 5381 <a class="" href="contact.asp?page=184" ><span>öåø ÷ùø</span></a> 5382 </li> 5383 </ul> 5384 </div></div> 5385 5386 5387
5387<script type="text/javascript" > 5388 $(document).ready(function(){ 5389 5390 5391 $("ul.dropdown-menu").supersubs({ 5392 minWidth: 12, 5393 maxWidth: 27, 5394 delay: 0, 5395 extraWidth: 1 5396 }).superfish(); 5397 5398 }); 5399 </script>
5399 5400 </div><!--[ end_menu_7 ]--><!--[ start_header_banner1_12 ]--> 5401 <div class=" designbox header_header_banner1" id="designbox_12" > 5402 5403 5404 <div class="header-banner1 banner-div" ><div class='banner-block editorcss' ><a ee_promo_loc="header_banner1" ee_promo_name="ìåâå" ee_promo_id="145" href="/" class='eventtracking ee_promo image b15' target='_blank'><span></span></a><P dir=ltr><IMG style="MARGIN-LEFT: 10px" border=0 alt="ìåâå" align=top src="/images/itemPics/uploads/banner medicon.jpg" width=940 height=100></P></div></div> 5405 </div><!--[ end_header_banner1_12 ]--><!--[ start_header_banner2_13 ]--> 5406 <div class=" designbox header_header_banner2" id="designbox_13" > 5407 5408 5409 <div class="header-banner2 banner-div" ></div> 5410 </div><!--[ end_header_banner2_13 ]--><!--[ start_breadcrumb_33 ]--> 5411 <div class=" lazyload designbox header_breadcrumb" id="designbox_33" > 5412 5413 </div><!--[ end_breadcrumb_33 ]--><!--[ start_header_banner3_14 ]--> 5414 <div class=" designbox header_header_banner3" id="designbox_14" > 5415 5416 5417 <div class="header-banner3 banner-div" ></div> 5418 </div><!--[ end_header_banner3_14 ]--><!--[ start_header_banner4_15 ]--> 5419 <div class=" designbox header_header_banner4" id="designbox_15" > 5420 5421 5422 <div class="header-banner4 banner-div" ></div> 5423 </div><!--[ end_header_banner4_15 ]--> 5424 </div> 5425 </div> 5426 5427 </div> 5428 5429 <!--[ header end ]--> 5430 <div id='mobile_header_holder'></div> 5431 <!--[ content start ]--> 5432 5433<div class="maindivCenter container_16 page-columns-2 "> 5434<div class="maindivCenter-wrap"> 5435 5436 5437 <table cellpadding="0" cellspacing="0" class="tlb_main" > 5438 <tr> 5439 <td valign="top"> 5440 5441 </td> 5442 <td valign="top" class = "mainTD" align="center" > 5443 <div class = "mainTDWrap grid_12" > 5444 <div class = "mainTDcontainer" > 5445 5446 5447 5448 <div class="AllPagesContent_banner banner-div"></div> 5449 5450 5451 <div class='page-content'></div> 5452<style> 5453 .markForm {background-color:#fff0f0;} 5454 .markFormBL {border-left:1px solid #993300;border-top:1px solid #993300;border-bottom:1px solid #993300} 5455 .markFormBR {border-right:1px solid #993300;border-top:1px solid #993300;border-bottom:1px solid #993300} 5456 .unMarkForm {background-color:;border:none} 5457 .markInput {border:1px solid #993300 !important;} 5458</style> 5459 5460 5461 <div class="ContactMainDiv"> 5462 <table cellpadding=0 cellspacing=0 border=0 width="100%" height="100%"> 5463 <tr> 5464 <td align="center" valign="top" width="100%"> 5465 <table cellpadding=0 cellspacing=0 border=0 tabindex="0" class="contact-table500 table-1-500" width="500"> 5466 5467 <tr> 5468 <td class=site_email align="right" dir="ltr"> 5469 <table cellpadding=0 cellspacing=0 border=0 width=500 class="contact-page-content"> 5470 <tr> 5471 <td><img class="trans" src="images/transparent.gif" width="1" height="10" border="0" alt=""></td> 5472 </tr> 5473 <tr> 5474 <td align=right class="contact-page-content-td" dir=rtl><h1 dir="rtl">éöéøú ÷ùø</h1> 5475 5476<div dir="rtl"><img align="left" alt="" border="0" height="200" src="http://electroshop.e-shop.co.il/images/itempics/page_184_0.jpg" style="margin: 5px 10px 10px 0px;" width="300" /></div> 5477 5478<div dir="rtl"> </div> 5479 5480<div dir="rtl"><span style="font-size: 14pt; font-weight: bold;">çáøä éäåãéú ìîëéøåú</span></div> 5481 5482<div dir="rtl"><span style="font-size: 14pt; font-weight: bold;">ñîèú ðçîðé 3/4</span></div> 5483 5484<div dir="rtl"><span style="font-size: 14pt; font-weight: bold;">øçåáåú</span></div> 5485 5486<div dir="rtl"><span style="font-size: 14pt; font-weight: bold;"> </span></div> 5487 5488<div dir="rtl"><span style="font-size: 14pt;"><span style="font-weight: bold;">èìôåï: </span><span style="font-weight: bold;">072-2515478 </span></span></div> 5489</td> 5490 </tr> 5491 </table> 5492 <!-- 5493 <br> 5494 <a class=site_email href="mailto:"><u></u></a><br> 5495 <br><br> 5496 <b></b><br--><br> 5497 <table cellpadding="5" cellspacing="0" border="0" width="500" class="Cover_Contant_template"> 5498 5499 5500<div id="contactalerts"
5501 email="ëúåáú äîééì ùâåéä" 5502 firstname = "äëðñ ùí îìà" 5503 phone = "ìà äåæï èìôåï" 5504 subject = "àðà îìà ðåùà" 5505 authcode = "éù ìôúåø àú äúøâéì ðëåï" 5506 content = "àðà îìà úåëï" 5507 ordernumber = "àðà îìà îñôø äæîðä" 5508 privacy = "éù ìñîï àú äúéáä ëãé ìàùø àú äúðàéí åäîãéðéåú." 5509 > 5510</div> 5511
5512<script> 5513 5514 function onSubmit(token) { 5515 alert('thanks ' + document.getElementById('field').value); 5516 } 5517 5518 function chkfrm(obj) 5519 { 5520 $(".contact_alert").replaceWith(""); 5521 var phonePattern = /^0[23489][0-9]{7}$|^0[57][0-9]{8}$/; 5522 5523 if (obj.FirstName.value == "") 5524 { 5525 $("#cf_FirstName").after( "<span class='contact_alert' >" + $("#contactalerts").attr("FirstName") + "</span>" ); 5526 obj.FirstName.focus(); 5527 return false; 5528 } 5529 5530 if (obj.Phone.value == "" || !phonePattern.test(obj.Phone.value)) { 5531 $("#cf_Phone").after( "<span class='contact_alert' >" + $("#contactalerts").attr("Phone")+ "</span>" ); 5532 obj.Phone.focus(); 5533 return false; 5534 } 5535 5536 if (obj.subject.value == ""){ 5537 $("#cf_contact_type").after( "<span class='contact_alert' >" + $("#contactalerts").attr("subject")+ "</span>" ); 5538 obj.subject.focus() 5539 return false 5540 } 5541 5542 5543 5544 5545 if (obj.AuthCode.value == ""){ 5546 changeCss("AuthCodeTR","markForm"); 5547 changeCss("AuthCodeTD","markFormBL"); 5548 changeCss("AuthCodeTD1","markFormBR"); 5549 alert($("#contactalerts").attr("authcode")); 5550 obj.AuthCode.focus(); 5551 return false; 5552 } 5553 //else if (obj.AuthCode.value != obj.CapachaAnswer.value) 5554 //{ 5555 // changeCss("AuthCodeTR","markForm"); 5556 // changeCss("AuthCodeTD","markFormBL"); 5557 // changeCss("AuthCodeTD1","markFormBR"); 5558 // alert($("#contactalerts").attr("authcode")); 5559 // obj.AuthCode.focus() 5560 // return false; 5561 // } 5562 else 5563 { 5564 changeCss("AuthCodeTR","unMarkForm"); 5565 changeCss("AuthCodeTD","unMarkForm"); 5566 changeCss("AuthCodeTD1","unMarkForm"); 5567 } 5568 5569 if (!checkEmail(obj.SenderEmail.value)){ 5570 $("#cf_SenderEmail").after( "<span class='contact_alert' >" + $("#contactalerts").attr("email")+ "</span>" ); 5571 obj.SenderEmail.focus() 5572 return false 5573 } 5574 5575 5576 if ( obj.contact_type.value == "order" || obj.contact_type.value == "cancelorder" ){ 5577 if (obj.cf_orderid.value == ""){ 5578 $("#cf_orderid").after( "<span class='contact_alert' >" + $("#contactalerts").attr("ordernumber")+ "</span>" ); 5579 obj.cf_orderid.focus() 5580 return false 5581 } 5582 } 5583 5584 5585 5586 if (obj.content.value == ""){ 5587 $("#cf_content").after( "<span class='contact_alert' >" + $("#contactalerts").attr("content")+ "</span>" ); 5588 obj.content.focus() 5589 return false 5590 } 5591 5592 5593 if ($("#contact_privacy_check").length > 0){ 5594 if ($("#contact_privacy_check").is(":checked") == false){ 5595 $("#contact_privacy_check").after( "<span class='contact_alert' >" + $("#contactalerts").attr("privacy")+ "</span>" ); 5596 $("#contact_privacy_check").focus() 5597 return false 5598 } 5599 } 5600 5601 5602 5603 //obj.sendButton.disabled = true; 5604 //obj.submit() 5605 return true; 5606 } 5607</script>
5607 5608 5609 5610 5611 5612<tr> 5613 <td> 5614 5615 5616 5617 5618 <div id="contact_design_0" class=""> 5619 5620 <div id="contact_info" class=""> 5621 <div id="contact_working_hours" class=""> 5622 <h4>ùòåú ôòéìåú</h4> 5623 à'-ä' î10-00 òã 19-00, å' åòøá çâ î9-00 òã 13-00 öøéê ìäú÷ùø ìôðé ääâòä 5624 </div> 5625 </div> 5626 5627 <div id="contact_form_page" ><h4>öåø àéúðå ÷ùø</h4><div class="wrap"><div class="content"> 5628 5629 <form name="email" id="email" method="post" action="https://www.medicon.co.il/contact.asp" onsubmit="return chkfrm(this);"> 5630 5631 <input type="hidden" name="IsFrame" value=""> 5632 <input type="hidden" name="Page" value=""> 5633 5634 5635 5636 <input type="hidden" name="formFields" value="FirstName,LastName,Phone,SenderEmail,subject,content"> 5637 <p class="contact_fullname_p"> 5638 <label for="cf_FirstName">ùí îìà</label> 5639 <input type="text" class="text" id="cf_FirstName" name="FirstName" size="15" maxlength="45" dir="rtl" value=" " aria-label="ùí îìà"> 5640 <input type="hidden" name="FirstName_HE" value="ùí ôøèé"> 5641 </p> 5642 5643 <p style='display:none;'> 5644 <label for="cf_LastName">ùí îùôçä</label> 5645 <input type="text" class="text" id="cf_LastName" name="LastName" size="15" maxlength="45" dir="rtl" value="" aria-label="ùí îùôçä"> 5646 <input type="hidden" name="LastName_HE" value="ùí îùôçä"> 5647 </p> 5648 5649 <p class="contact_phone_p"> 5650 <label for="cf_Phone">èìôåï</label> 5651 <input type="text" class="text" id="cf_Phone" name="Phone" size="15" maxlength="45" dir="ltr" value="" aria-label="èìôåï"> 5652 <input type="hidden" name="Phone_HE" value="èìôåï"> 5653 </p> 5654 5655 5656 5657 <p style='display:none;'> 5658 <label for="cf_subject">ðåùà</label> 5659 <input type="text" class="text" id="cf_subject" name="subject" size="40" maxlength="75" dir="rtl" value=" ôðéä îàúø medicon.co.il" aria-label="ðåùà"> 5660 <input type="hidden" name="subject_HE" value="ðåùà"> 5661 </p> 5662 5663 5664 5665 <p id="AuthCodeTR" > 5666 5667 <label for="cf_AuthCode">?5 + 8 ëîä æä</label> 5668 <input type="text" class="text " id="cf_AuthCode" name="AuthCode" size="15" maxlength="2" dir="rtl" value="" aria-label="ëîä æä"> 5669 </p> 5670 5671 5672 5673 <p class="contact_email_p"> 5674 <label for="cf_SenderEmail">ãåàø àì÷èøåðé</label> 5675 <input type="text" class="text" id="cf_SenderEmail" name="SenderEmail" id="SenderEmail" size="40" maxlength="45" dir="ltr" value="" aria-label="ãåàø àì÷èøåðé"> 5676 <input type="hidden" name="SenderEmail_HE" value="ãåàø àì÷èøåðé"> 5677 </p> 5678 5679 <p class="contact_type_p"> 5680 <label for="cf_contact_type">ñåâ äôðééä</label> 5681 <select id="cf_contact_type" name="contact_type" dir="rtl" > 5682 5683 <option value="contact">ôðééä ëììéú</option> 5684 <option value="order">äæîðä ÷ééîú</option> 5685 <option value="lead">îúòðééï áîåöø</option> 5686 5687 <option value="cancelorder">áéèåì äæîðä</option> 5688 5689 </select> 5690 </p> 5691 5692 <p class="contact_orderid_p form-group " style="display:none;"> 5693 <label class="sr-only" for="cf_orderid">îñôø äæîðä</label> 5694 <input type="text" placeholder="îñôø äæîðä" value="" aria-label="îñôø äæîðä" class="text form-control" id="cf_orderid" name="cf_orderid" size="40" maxlength="45" dir="ltr" value="" aria-label="îñôø äæîðä"> 5695 </p> 5696 5697 <p class="contact_content_p"> 5698 <label for="cf_content">úåëï</label> 5699 <textarea id="cf_content" name="content"
5699cols="42" rows="15" dir="rtl" aria-label="úåëï"> </textarea> 5700 </p> 5701 5702 5703 5704 <p class="contact_club_p"> 5705 áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø 5706 <input type="checkbox" name="club" value="1" checked /> 5707 5708 </p> 5709 5710 <p class="contact_button_p"> 5711 5712 <button class='send button' type="submit" ><span><span>ùìç</span></span></button> 5713 5714 </p> 5715 5716 </form> 5717 5718 </div></div></div> 5719 5720 </div> 5721 5722 </div> 5723 5724 5725 5726 </td> 5727 </tr> 5728</table> 5729
5729<script type="text/javascript"> 5730 5731 function checkEmail(email) 5732 { 5733 var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; 5734 return re.test(String(email).toLowerCase()); 5735 /*if (str.length != 0) { 5736 var i = str.indexOf("@"); 5737 var i2 = str.indexOf("@", i + 1); 5738 var j = str.indexOf(".", i); 5739 var k = str.indexOf(","); 5740 var kk = str.indexOf(" "); 5741 var jj = str.lastIndexOf(".") + 1; 5742 var leng = str.length; 5743 5744 if ((i > 0) && (j > (i + 1)) && (k == -1) && (kk == -1) && (leng - jj >= 2) && (leng - jj <= 3) && (i2 == -1)) { 5745 return true; 5746 } else { return false; } 5747 } else { return false; } 5748 */ 5749 } 5750 function getDID(id) { return document.getElementById(id); } 5751 function changeCss(id, css) { 5752 try { getDID(id).className = css; } 5753 catch (Error) { } 5754 } 5755 </script>
5755 5756 </td> 5757 </tr> 5758 </table> 5759 </td> 5760 </tr> 5761 </table> 5762 </div> 5763 <br><br> 5764</td> 5765<td valign="top" align=right height=100%> 5766 5767 <!--[ SideBar Start ]--> 5768 5769 <div id="sidebar" > 5770 <div class = "wrap"> 5771 <!--[Dynamic SideBar Modules]--> 5772 <!--[ start_smallcart_39 ]--> 5773 <div class=" designbox sidebar_smallcart" id="designbox_39" > 5774 5775 5776 <div class="block smallcart grid_4 cart_icon " > 5777 5778 <div class="title"><strong><span> 5779 òâìú ä÷ðéåú 5780 </span></strong></div> 5781 5782 <div class="content"> 5783 <p id="cartPriceTR" style="display:none" onclick="location.href='https://www.medicon.co.il/cart.asp';" > 5784 <span id="cartQuantity"></span> 5785 <span id="cartitemstext">ôøéèéí áòâìä</span> 5786 <span id="carttotaltext">ñä"ë</span> 5787 <span id="cartpricetext">¤<span id="cartPrice"></span></span> 5788 </p> 5789 <p id="cartEmptyTR" > 5790 <span>àéï îåöøéí áòâìä </span> 5791 <span id="cartQuantityTR"></span> 5792 </p> 5793 </div> 5794 </div> 5795 </div><!--[ end_smallcart_39 ]--><!--[ start_searchbox_38 ]--> 5796 <div class=" designbox sidebar_searchbox" id="designbox_38" > 5797 5798 5799 <div class="block searchbox grid_4" > 5800 5801 <div class="title"><strong><span> 5802 çéôåù áàúø</span></strong></div> 5803 5804 <div class="content ui-widget"> 5805 5806
5806<script type="text/javascript"> 5807 5808 5809 $( document ).ready(function() 5810 { 5811 5812 5813 5814 $("#right_srch_str").keydown(function(event) 5815 { 5816 if(event.keyCode == 13 && search_form_submited == false ) 5817 { 5818 event.preventDefault(); 5819 submitsearchform(); 5820 return false; 5821 } 5822 }); 5823 5824 $("#right_srch_str").autocomplete 5825 ({ 5826 delay: 700 , 5827 minLength: 3, 5828 appendTo:$("#right_srch_str").parent(), 5829 select: function(event, ui) 5830 { 5831 if (ui.item.itemid == "category") 5832 { 5833 document.location = 'https://www.medicon.co.il/' + ui.item.url ; 5834 } 5835 else if (ui.item.itemid == "") 5836 { 5837 submitsearchform(); 5838 return false; 5839 } 5840 else 5841 { 5842 5843 document.location = 'https://www.medicon.co.il/product.asp?pid='+ui.item.itemid; 5844 5845 } 5846 }, 5847 source: function(request, response) 5848 { 5849 5850 5851 $.ajax( 5852 { 5853 url: "/autocompletexml.asp?term=" + encodeURIComponent(request.term), 5854 dataType: "xml", 5855 success: function(xmlResponse) 5856 { 5857 var data = $("Item", xmlResponse).map(function() 5858 { 5859 return { 5860 label: $("Name", this).text(), 5861 value: $("Name", this).text(), 5862 id: $("Ident", this).text(), 5863 itemid: $("ItemId", this).text(), 5864 image: $("Image1", this).text(), 5865 url : $("Url", this).text(), 5866 image_name:$("Image_name", this).text() 5867 }; 5868 }); 5869 response(data); 5870 } 5871 }); 5872 5873 } 5874 }).data("autocomplete")._renderItem = function(ul, item) 5875 { 5876 if (item.image == '1') 5877 { img = '<span class="item-icon"><span><img align=absmiddle src=/images/itempics/' + item.image_name + '_small50.jpg></span></span>'; } 5878 else 5879 { img = '';} 5880 5881 if (item.url != '') 5882 { 5883 item_class = 'with_url'; 5884 } 5885 else 5886 { 5887 item_class = ''; 5888 } 5889 return $('<li class="ui-menu-item-with-icon ' + item_class + ' "></li>') 5890 .data("item.autocomplete", item) 5891 .append('<a>' + img + '<span class="item-name">' + item.label + '</span></a>') 5892 .appendTo(ul); 5893 }; 5894 5895 5896 5897 $.ui.autocomplete.prototype._renderMenu = function(ul, items) { 5898 var self = this; 5899 $.each(items, function(index, item) 5900 { 5901 if (index < 8) // here we define how many results to show 5902 { self._renderItem(ul, item); } 5903 }); 5904 } 5905 }); 5906 5907 5908
5909 function send_search_event (formObj) 5910 { 5911 5912 5913 } 5914 5915 function submitsearchbuttonform(obj){ 5916 search_form_submited = true; 5917 var submitButton = $(obj).find("button[type='submit']"); 5918 // Disable the submit button 5919 submitButton.prop("disabled", true); 5920 return true; 5921 } 5922 5923 function checkSrchFormSP(formObj) 5924 { 5925 if ( $(formObj).find("select[name=mfield]").length > 0 ) 5926 { 5927 var mFLDs =''; 5928 $(formObj).find("select[name=mfield]").each(function() 5929 { 5930 if ( $(this).val() != '' ) 5931 { 5932 mFLDs = mFLDs + $(this).val() + "-"; 5933 } 5934 }); 5935 $(formObj).find("input[name=mFLDs]").val(mFLDs); 5936 } 5937 5938 var qmanufact = $(formObj).find("select[name=qmanufact]").val(); 5939 var qsearch = $(formObj).find("input[name=Qsearch]").val(); 5940 5941 var DefaultStr = 'äëðñ îéìåú çéôåù'; 5942 if ( qsearch.length > 1 || qmanufact != "" ) 5943 { 5944 if (DefaultStr == qsearch ) 5945 {delText(DefaultStr);} 5946 5947 if ( qsearch.length > 1 || qmanufact != "") 5948 { 5949 formObj.key.value=$("#userkey").attr("userkey"); 5950 send_search_event (formObj); 5951 return submitsearchbuttonform(formObj); 5952 //return false; 5953 } 5954 else 5955 { 5956 5957 if ( $(formObj).find("select[name=Cat2Cat1ID]").length > 0 ) 5958 { 5959 if ($(formObj).find("select[name=Cat2Cat1ID]").val() != '') 5960 { 5961 send_search_event (formObj); 5962 return submitsearchbuttonform(formObj); 5963 //return false; 5964 } 5965 } 5966 5967 if ( $(formObj).find("input[name=mFLDs]").length > 0 ) 5968 { 5969 if ($(formObj).find("input[name=mFLDs]").val() != '') 5970 { 5971 send_search_event (formObj); 5972 return submitsearchbuttonform(formObj); 5973 //return false; 5974 } 5975 } 5976 5977 return false; 5978 } 5979 } 5980 else 5981 { 5982 5983 if ( $(formObj).find("select[name=Cat2Cat1ID]").length > 0 ) 5984 { 5985 if ($(formObj).find("select[name=Cat2Cat1ID]").val() != '') 5986 { 5987 send_search_event (formObj); 5988 return submitsearchbuttonform(formObj); 5989 //return false; 5990 } 5991 } 5992 5993 if ( $(formObj).find("input[name=mFLDs]").length > 0 ) 5994 { 5995 if ($(formObj).find("input[name=mFLDs]").val() != '') 5996 {
5997 send_search_event (formObj); 5998 return submitsearchbuttonform(formObj); 5999 //return false; 6000 } 6001 } 6002 6003 return false; 6004 } 6005 } 6006 6007 function delText(Text,formObj) { 6008 6009 if (formObj.Qsearch.value == Text) { 6010 formObj.Qsearch.value = ''; 6011 } 6012 } 6013 6014 function checkFormChrSP(formObj) 6015 { 6016 if (formObj == 13) 6017 { 6018 6019 6020 // $( "#right_srch_str" ).autocomplete( "destroy" ); 6021 //submitsearchform(); 6022 return false; 6023 } 6024 } 6025 6026 function showtext(Text,formObj) { 6027 if (formObj.Qsearch.value == '') 6028 { formObj.Qsearch.value = Text; } 6029 } 6030 </script>
6030 6031 6032 <form action="https://www.medicon.co.il/items.asp" method="get" name="SearchFrm" onsubmit="return checkSrchFormSP(this);"> 6033 <input type="hidden" name="IsPostback" value="true"/> 6034 <fieldset> 6035 <div class=""> 6036 6037 <label for="right_srch_str">çôù:</label> 6038 6039 <input type="text" dir="rtl" name="Qsearch" placeholder="äëðñ îéìåú çéôåù" class="text" id="right_srch_str" value="" /> 6040 <label for='right_srch_manf_slct'>áçø éöøï:</label><select name='qmanufact' id='right_srch_manf_slct'><option value=''>ëì äéöøðéí </option><option value='18'>Amazon</option><option value='27'>Anker</option><option value='9'>Barnes&Noble</option><option value='17'>Cine</option><option value='26'>Fintie</option><option value='23'>GP</option><option value='24'>Kobo</option><option value='14'>Onyx international Inc.</option><option value='8'>Pocketbook</option><option value='25'>ShenZhen Boyue Technology</option> </select> 6041 <input type="hidden" name="stype" value="M"/> 6042 6043 <button class="button btn-primary" title="çôù" type="submit"><span><span>çôù</span></span></button> 6044 </fieldset> 6045 <input type="hidden" value="s" name="key"> 6046 6047 </form> 6048 </div> 6049 </div> 6050 </div><!--[ end_searchbox_38 ]--><!--[ start_categories_37 ]--> 6051 <div class=" designbox sidebar_categories" id="designbox_37" > 6052 6053 6054 6055 <div class="block accordion categories grid_4"> 6056 6057 <div class="title "><strong><span> 6058 ÷èìåâ îåöøéí 6059 </span></strong></div> 6060 6061 <div class="content "> 6062 6063 6064 6065 6066 <ul class="menu "> 6067 6068 6069 <li class="parent first li-0" > 6070 6071 <a class="Catname" href="/items~2.htm" > 6072 6073 <span>÷åøàé ñôøéí àì÷èøåðéí Pocketbook</span></a> 6074 6075 </li> 6076 6077 <li class="parent li-1" > 6078 6079 <a class="Catname" href="/items~11.htm" > 6080 6081 <span>÷åøàé ñôøéí àì÷èøåðé Kobo</span></a> 6082 6083 </li> 6084 6085 <li class="parent li-2" > 6086 6087 <a class="Catname" href="/items~6.htm" > 6088 6089 <span>÷åøàé ñôøéí àì÷èøåðéí MeeBook</span></a> 6090 6091 </li> 6092 6093 <li class="parent li-3" > 6094 6095 <a class="Catname" href="/items~9.htm" > 6096
6097 <span>÷åøàé ñôøéí àì÷èøåðéí Amazon Kindle</span></a> 6098 6099 </li> 6100 6101 <li class="parent li-4" > 6102 6103 <a class="Catname" href="/items~8.htm" > 6104 6105 <span>àáéæøéí</span></a> 6106 6107 </li> 6108 6109 <li class="parent li-5" > 6110 6111 <a class="Catname" href="/items~3.htm" > 6112 6113 <span>ðøúé÷éí ì÷åøàé ñôøéí àì÷èøåðéí</span></a> 6114 <ul><li class=' first '><a href='/items~3~10.htm'>ðøúé÷éí ì÷åøàé ñôøéí Likebook Boyue</a></li><li class=' '><a href='/items~3~1.htm'>ðøúé÷éí ì÷åøàé ñôøéí Amazon</a></li><li class=' '><a href='/items~3~4.htm'>ðøúé÷éí ì÷åøàé ñôøéí Pocketbook</a></li><li class=' '><a href='/items~3~8.htm'>ðøúé÷éí ì÷åøàé ñôøéí Kobo</a></li><li class=' '><a href='/items~3~9.htm'>ðøúé÷éí ì÷åøàé ñôøéí Onyx</a></li></ul> 6115 </li> 6116 6117 <li class="parent li-6" > 6118 6119 <a class="Catname" href="/items~10.htm" > 6120 6121 <span>÷åøàé ñôøéí àì÷èøåðéí Onyx Boox</span></a> 6122 6123 </li> 6124 6125 <li class="parent li-7" > 6126 6127 <a class="Catname" href="/items~12.htm" > 6128 6129 <span>÷åøàé ñôøéí àì÷èøåðéí (Likebook (Boyue</span></a> 6130 6131 </li> 6132 </ul> 6133 6134 </div> 6135 </div> 6136 6137</div><!--[ end_categories_37 ]--><!--[ start_spacielitems_10 ]--> 6138 <div class=" designbox sidebar_spacielitems" id="designbox_10" > 6139 6140 6141 6142 <div class="block spacial-items grid_4" tabindex="0"> 6143 6144 6145 6146 <div class="title"><strong><span>îáöòéí îéåçãéí</span></strong> 6147 </div> 6148 6149 6150 6151 6152 6153 <div class="content jcroller"> 6154 <div class="spaciels-wrap"> 6155 6156 6157 6158 <div class="special-box" id="spaciel-items-v1-0" > 6159 6160 6161 6162 6163 <div class="item-name"><a href="https://www.medicon.co.il/pl_product~270~2~0.htm">÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </a></div> 6164 6165 <div class="imagediv" ><a class="image" href="https://www.medicon.co.il/pl_product~270~2~0.htm"><span></span><img alt="÷åøà ñôøéí àì÷èøåðé Pocketbook Era øåñéú, òáøéú, àðâìéú áîìàé îééãé" title="÷åøà ñôøéí àì÷èøåðé Pocketbook Era øåñéú, òáøéú, àðâìéú áîìàé îééãé" src='/images/itempics/270_200720220205431_small160.jpg' /></a> 6166 6167 </div> 6168 6169 <strike class="reg-price">
6170 <span class="name">øâéì:</span> 6171 <span><em>¤</em>930.00</span> 6172 6173 </strike> 6174 6175 <div class="sale-price"> 6176 <span class="name">îáöò:</span> 6177 <span><em>¤</em><span class="priceholder" id="spacial_total270" price="859.00">859.00</span></span> 6178 6179 </div> 6180 6181 <div class="buttons-box"> 6182 <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~270~2~0.htm" ><span>ìîéãò ðåñó</span></a> 6183 6184 <a class="add-to-cart btn-link btn-link btn-primary" href="#" onclick="s_addme_cart('270',$(this).parents('li').find('input[name=quantity]').val()); return false; "><span>÷ðä òëùéå</span></a> 6185 6186 6187 </div> 6188 6189 </div> 6190 6191 <div class="special-box" id="spaciel-items-v1-1" > 6192 6193 6194 6195 6196 <div class="item-name"><a href="https://www.medicon.co.il/pl_product~324~2~0.htm">÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW</a></div> 6197 6198 <div class="imagediv" ><a class="image" href="https://www.medicon.co.il/pl_product~324~2~0.htm"><span></span><img alt="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" title="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" src='/images/itempics/324_040920242235091_small160.jpg' /></a> 6199 6200 </div> 6201 6202 <strike class="reg-price"> 6203 <span class="name">øâéì:</span> 6204 <span><em>¤</em>890.00</span> 6205 6206 </strike> 6207 6208 <div class="sale-price"> 6209 <span class="name">îáöò:</span> 6210 <span><em>¤</em><span class="priceholder" id="spacial_total324" price="779.00">779.00</span></span> 6211 6212 </div> 6213 6214 <div class="buttons-box"> 6215 <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~324~2~0.htm" ><span>ìîéãò ðåñó</span></a> 6216 6217 <a class="add-to-cart btn-link btn-link btn-primary" href="#" onclick="s_addme_cart('324',$(this).parents('li').find('input[name=quantity]').val()); return false; "><span>÷ðä òëùéå</span></a> 6218 6219 6220 </div> 6221 6222 </div> 6223 6224 <div class="special-box" id="spaciel-items-v1-2" > 6225 6226 6227 6228 6229 <div class="item-name"><a href="https://www.medicon.co.il/pl_product~238~10~0.htm">Confirmation of our status of an official distributor</a></div> 6230 6231 <div class="imagediv" ><a class="image" href="https://www.medicon.co.il/pl_product~238~10~0.htm"><span></span><img alt="Confirmation of our status of an official distributor" title="Confirmation of our status of an official distributor" src='/images/itempics/238_04012021160338_small160.jpg' /></a> 6232 6233 </div> 6234 6235 <div class="no-price">ìøëéùú îåöø æä äú÷ùøå ì÷áìú ôøèéí</div> 6236 6237 <div class="buttons-box"> 6238 <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~238~10~0.htm" ><span>ìîéãò ðåñó</span></a> 6239 6240 6241 </div> 6242 6243 </div> 6244 6245 </div> 6246 </div> 6247 </div> 6248 6249 </div><!--[ end_spacielitems_10 ]--><!--[ start_sidebar_banner_general_17 ]--> 6250 <div class=" designbox sidebar_sidebar_banner_general" id="designbox_17" > 6251 6252 6253 <div class="sidebar_banner_general banner-div grid_4" ></div> 6254 </div><!--[ end_sidebar_banner_general_17 ]--><!--[ start_sidebar_banner_categories_16 ]--> 6255 <div class=" designbox sidebar_sidebar_banner_categories" id="designbox_16" > 6256 6257 </div><!--[ end_sidebar_banner_categories_16 ]--><!--[ start_sidebar_banner_product_18 ]--> 6258 <div class=" designbox sidebar_sidebar_banner_product" id="designbox_18" > 6259 6260 </div><!--[ end_sidebar_banner_product_18 ]--><!--[ start_sidebar_banner_homepage_19 ]--> 6261 <div class=" designbox sidebar_sidebar_banner_homepage" id="designbox_19" > 6262 6263 </div><!--[ end_sidebar_banner_homepage_19 ]--><!--[ start_newsletter_8 ]--> 6264 <div class=" designbox sidebar_newsletter" id="designbox_8" > 6265 6266 6267 <div class="block newsletter grid_4" > 6268 6269 <div class="title"> 6270 <strong>
6271 <span> 6272 øùéîú úôåöä 6273 </span> 6274 </strong> 6275 </div> 6276 6277 <div class="content"> 6278 <form action="https://www.medicon.co.il/club.asp?IsNewsleter=1" method="post" name="NewsLatterFrm" class="NewsLatterFrm" id="NewsLatterFrm" > 6279 <input type="hidden" name="IsPostback" value="true"/> 6280 6281 <h3 class="subtitle">äåñéôå àåúé ìøùéîú úôåöä</h3> 6282 6283 6284 <div class="status"></div> 6285 6286 <fieldset > 6287 6288 <p class='email_p'> 6289 6290 <label for="email" >äëðñ ëúåáú àé îééì:</label> 6291 6292 <input type="text" name="Email" class="text" id="email" maxlength="45" dir="ltr" value="" aria-label="email" /> 6293 6294 </p> 6295 6296 6297 6298 <input type="hidden" name="AuthCode" value="1" /> 6299 <input type="hidden" name="CapachaAnswer" value="1" /> 6300 <button class='checkNewsEmail btn-primary button' title="äøùí" type="submit"><span><span>äøùí</span></span></button> 6301 <div class='privacy_p custom-control custom-checkbox mt-1 mr-sm-3 '> 6302 <input type="checkbox" class="custom-control-input" name="privacy" id='privacy_8' > 6303 6304 <label class="custom-control-label " for='privacy_8' style="font-size:14px">àðé îñëéí/ä ìúðàéí, ääâáìåú, ì-îãéðéåú ôøèéåú åîàùø/ú éöéøú ÷ùø îàúø medicon.co.il.</label> 6305 6306 6307 </div> 6308 6309 6310 </fieldset> 6311 </form> 6312 </div> 6313 </div> 6314 6315 </div><!--[ end_newsletter_8 ]--><!--[ start_populartags_9 ]--> 6316 <div class=" designbox sidebar_populartags" id="designbox_9" > 6317 6318 </div><!--[ end_populartags_9 ]--><!--[ start_contactform_11 ]--> 6319 <div class=" designbox sidebar_contactform" id="designbox_11" > 6320 6321 6322 <div class="block contactform grid_4" > 6323 6324 6325 <div class="title"><strong><span>èåôñ öåø ÷ùø</span></strong> 6326 </div> 6327 6328 6329 <form name="contctfrm" id="contctfrm_11" method="post" action="https://www.medicon.co.il/contact.asp" onsubmit="return checkcontactform();"> 6330 <input type="hidden" name="IsPostback" value="true"/> 6331 <div class="content"> 6332 6333 <input type="hidden" name="formFields" value="ContactPerson,Subject,Phone,content,email" /> 6334 6335 6336 <p id="cf_fullname"> 6337 6338 <label for="ContactPerson"><em>*</em>ùí:</label> 6339 6340 <input type="text" class="text" aria-label="ùí" dir="rtl" name="ContactPerson" id="ContactPerson" value="" /> 6341 </p> 6342 6343 6344 <p id="cf_phone"> 6345 6346 <label for="cf_text_Phone"><em>*</em>èìôåï:</label> 6347 6348 <input type="text" class="text" aria-label="èìôåï" name="Phone" id="cf_text_Phone" value="" /> 6349 </p> 6350 6351 6352 <p id="cf_email"> 6353 6354 <label for="cf_text_email"><em>*</em>ãåàø àì÷èøåðé:</label> 6355 6356 <input type="text" class="text" aria-label="ãåàø àì÷èøåðé" name="email" id="cf_text_email" value="" /> 6357 </p> 6358 6359 6360 <p id="cf_subject"> 6361 6362 <label for="Subject"><em>*</em>ðåùà:</label> 6363 6364 <text type="text" class="text" aria-label="ðåùà" name="Subject" id="Subject" value="" /> 6365 </p> 6366 6367 6368 <p id="cf_content"> 6369 6370 <label for="content">úåëï:</label> 6371 6372 <textarea name="content" aria-label="úåëï" id="content"
6372cols="" rows="" ></textarea> 6373 </p> 6374 6375 6376 <p id="cf_CodeAuth"> 6377 6378 <label for="AuthCode"> 6379 ? 5 + 8 ëîä æä<em>*</em> 6380 6381 </label> 6382 6383 <input type="text" class="text" id="AuthCode" aria-label="? 5 + 8 ëîä æä" name="AuthCode" size="15" maxlength="3" dir="rtl" value="" > 6384 </p> 6385 6386 6387 <!--<p id="cf_newsletter">--> 6388 6389 6390 <p id="cf_newsletter"> 6391 <input id="checkoutNewsletter" type="checkbox" name="club" aria-label="áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø" value="1" checked /> áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø 6392 </p> 6393 6394 <input type='hidden' name='ContactPerson_HE' value='ùí îìà'> 6395 <input type='hidden' name='Phone_HE' value='èìôåï' > 6396 <input type='hidden' name='email_HE' value='ãåàø àì÷èøåðé' > 6397 <input type='hidden' name='Subject_HE' value='ðåùà' > 6398 <input type='hidden' name='content_HE' value='úåëï' > 6399 6400 6401 <button class="button btn-primary btn" aria-label="ùìç" title="ùìç" type="submit"><span><span>ùìç</span></span></button> 6402 6403 </div> 6404 </form> 6405 6406 </div> 6407 6408
6408<script type="text/javascript"> 6409 6410 6411 function ContactCheckEmail(CurMail) 6412 { 6413 if (CurMail.length != 0) 6414 { 6415 var i=CurMail.indexOf("@") 6416 var i2=CurMail.indexOf("@",i+1) 6417 var j=CurMail.indexOf(".",i) 6418 var k=CurMail.indexOf(",") 6419 var kk=CurMail.indexOf(" ") 6420 var jj=CurMail.lastIndexOf(".") + 1 6421 var leng = CurMail.length 6422 6423 if ((i>0)&&(j>(i+1))&&(k==-1)&&(kk==-1)&&(leng-jj >= 2)&&(leng-jj <= 3)&&(i2==-1)) 6424 { 6425 return true; 6426 } 6427 else 6428 { 6429 return false; 6430 } 6431 } 6432 else{ 6433 return false; 6434 } 6435 } 6436 6437 function checkcontactform() 6438 { 6439 6440 if (document.contctfrm.ContactPerson.value == "") 6441 { 6442 alert("äëðñ ùí îìà"); 6443 document.contctfrm.ContactPerson.focus(); 6444 return false; 6445 } 6446 6447 6448 if (document.contctfrm.Phone.value == "") 6449 { 6450 alert("ìà äåæï èìôåï"); 6451 document.contctfrm.Phone.focus(); 6452 return false; 6453 } 6454 if (document.contctfrm.email.value == "") 6455 { 6456 alert("ëúåáú äîééì ùâåéä"); 6457 document.contctfrm.email.focus(); 6458 return false; 6459 } 6460 6461 if( !ContactCheckEmail(document.contctfrm.email.value) ) 6462 { 6463 alert("ëúåáú äîééì ùâåéä"); 6464 document.contctfrm.email.focus(); 6465 return false; 6466 } 6467 6468 6469 if (document.contctfrm.AuthCode.value == "") 6470 { 6471 alert("ôúåø ðëåï àú äúøâéì"); 6472 document.contctfrm.AuthCode.focus(); 6473 return false; 6474 } 6475 6476 6477 6478 6479 6480 if (document.contctfrm.Subject.value == "") 6481 { 6482 alert("àðà îìà ðåùà"); 6483 document.contctfrm.Subject.focus(); 6484 return false; 6485 } 6486 6487 6488 6489 6490 return true; 6491 } 6492 </script>
6492 6493</div><!--[ end_contactform_11 ]--> 6494 </div> 6495 </div> 6496 <!--[ SideBar end ]--> 6497 6498</tr> 6499</table> 6500 </td> 6501</tr> 6502</table> 6503 6504 6505<!-- Cookie Consent Check - Add this to every page --> 6506
6507<script> 6508// Check if cookie consent exists on page load 6509(function() { 6510 function getCookie(name) { 6511 var nameEQ = name + "="; 6512 var ca = document.cookie.split(';'); 6513 for(var i = 0; i < ca.length; i++) { 6514 var c = ca[i]; 6515 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 6516 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); 6517 } 6518 return null; 6519 } 6520 6521 // Check if consent cookie exists 6522 6523 if (!getCookie('cookieconsentapproved')) { 6524 6525 // Show popup if no consent 6526 window.addEventListener('load', function() { 6527 var popup = document.getElementById('cookie-consent-popup'); 6528 if (popup) { 6529 popup.style.display = 'block'; 6530 // Add animation class after a small delay 6531 setTimeout(function() { 6532 popup.classList.add('show'); 6533 }, 100); 6534 } 6535 }); 6536 } 6537 6538 // Pages restored from the back/forward cache (mostly mobile) keep the DOM 6539 // snapshot with the popup still visible even after consent was given on 6540 // another page - scripts do not re-run on restore, so re-check the cookie 6541 // and hide the stale popup on pageshow / tab return 6542 function syncCookieConsentPopup() { 6543 if (getCookie('cookieconsentapproved')) { 6544 var popup = document.getElementById('cookie-consent-popup'); 6545 if (popup) { 6546 popup.classList.remove('show'); 6547 popup.style.display = 'none'; 6548 } 6549 } 6550 } 6551 window.addEventListener('pageshow', syncCookieConsentPopup); 6552 document.addEventListener('visibilitychange', function() { 6553 if (!document.hidden) syncCookieConsentPopup(); 6554 }); 6555})(); 6556</script>
6556 6557 6558 </td> 6559 </tr> 6560 </table> 6561 6562 6563 </div> 6564 </div> 6565 6566 </div> 6567</div> 6568 6569 6570 6571 <!--[ content end ]--> 6572 6573 6574 <!--[ footer start ]--> 6575 6576 <div id="footer"> 6577 6578 <div class="footer_wrap"> 6579 <div class="container_16 " > 6580 6581 <!--[Dynamic Footer Modules]--> 6582 <!--[ start_manufactoreslogos_1 ]--> 6583 <div class=" designbox footer_manufactoreslogos" id="designbox_1" > 6584 6585 6586 <div class="manufactores_logos block manufactores logos width-920 jcarousel " > 6587 <div class="sr-only"><span>éöøðéí</span></div> 6588 6589 <div class="content"> 6590 6591 <ul class=""> 6592 6593 <li class=""> 6594 6595 6596 6597 <a class="image" href="/items.asp?qsearch=&qmanufact=27"><span></span> 6598 6599 6600 6601 6602 </a> 6603 <span class="name">Anker</span> 6604 6605 6606 6607 </li> 6608 6609 <li class=""> 6610 6611 6612 6613 <a class="image" href="/items.asp?qsearch=&qmanufact=26"><span></span> 6614 6615 6616 6617 6618 </a> 6619 <span class="name">Fintie</span> 6620 6621 6622 6623 </li> 6624 6625 <li class=""> 6626 6627 6628 6629 <a class="image" href="/items.asp?qsearch=&qmanufact=25"><span></span> 6630 6631 6632 6633 6634 </a> 6635 <span class="name">ShenZhen Boyue Technology</span> 6636 6637 6638 6639 </li> 6640 6641 <li class=""> 6642 6643 6644 6645 <a class="image" href="/items.asp?qsearch=&qmanufact=18"><span></span> 6646 6647 6648 <img alt='Amazon' src='/images/itempics/manufact_18.jpg?' > 6649 6650 </a> 6651 <span class="name">Amazon</span> 6652 6653 6654 6655 </li> 6656 6657 <li class=""> 6658 6659 6660 6661 <a class="image" href="/items.asp?qsearch=&qmanufact=8"><span></span> 6662 6663 6664 <img alt='Pocketbook' src='/images/itempics/manufact_8.jpg?' > 6665 6666 </a>
6667 <span class="name">Pocketbook</span> 6668 6669 6670 6671 </li> 6672 6673 <li class=""> 6674 6675 6676 6677 <a class="image" href="/items.asp?qsearch=&qmanufact=14"><span></span> 6678 6679 6680 <img alt='Onyx international Inc.' src='/images/itempics/manufact_14.jpg?' > 6681 6682 </a> 6683 <span class="name">Onyx international Inc.</span> 6684 6685 6686 6687 </li> 6688 6689 <li class=""> 6690 6691 6692 6693 <a class="image" href="/items.asp?qsearch=&qmanufact=9"><span></span> 6694 6695 6696 <img alt='Barnes&Noble' src='/images/itempics/manufact_9.jpg?' > 6697 6698 </a> 6699 <span class="name">Barnes&Noble</span> 6700 6701 6702 6703 </li> 6704 6705 <li class=""> 6706 6707 6708 6709 <a class="image" href="/items.asp?qsearch=&qmanufact=17"><span></span> 6710 6711 6712 6713 6714 </a> 6715 <span class="name">Cine</span> 6716 6717 6718 6719 </li> 6720 6721 <li class=""> 6722 6723 6724 6725 <a class="image" href="/items.asp?qsearch=&qmanufact=23"><span></span> 6726 6727 6728 6729 6730 </a> 6731 <span class="name">GP</span> 6732 6733 6734 6735 </li> 6736 6737 <li class=""> 6738 6739 6740 6741 <a class="image" href="/items.asp?qsearch=&qmanufact=24"><span></span> 6742 6743 6744 6745 6746 </a>
6747 <span class="name">Kobo</span> 6748 6749 6750 6751 </li> 6752 6753 </ul> 6754 6755 </div> 6756 </div> 6757 </div><!--[ end_manufactoreslogos_1 ]--><!--[ start_footer_banner1_69 ]--> 6758 <div class=" designbox footer_footer_banner1" id="designbox_69" > 6759 6760 6761 <div class="footer_banner1 banner-div"></div> 6762 </div><!--[ end_footer_banner1_69 ]--><!--[ start_footer_banner2_70 ]--> 6763 <div class=" designbox footer_footer_banner2" id="designbox_70" > 6764 6765 6766 <div class="footer_banner2 banner-div"></div> 6767 </div><!--[ end_footer_banner2_70 ]--><!--[ start_footer_banner3_71 ]--> 6768 <div class=" designbox footer_footer_banner3" id="designbox_71" > 6769 6770 6771 <div class="footer_banner3 banner-div"></div> 6772 </div><!--[ end_footer_banner3_71 ]--><!--[ start_footer_banner4_72 ]--> 6773 <div class=" designbox footer_footer_banner4" id="designbox_72" > 6774 6775 6776 <div class="footer_banner4 banner-div"></div> 6777 </div><!--[ end_footer_banner4_72 ]--> 6778 </div> 6779 </div> 6780 6781 </div> 6782 6783 <!--[ footer end ]--> 6784 6785 6786 <form name="s_addme" method="post" action="/CartLogic.asp"> 6787 <input type="hidden" name="pid"/> 6788 <input type="hidden" name="pip_str"/> 6789 <input type="hidden" name="pip_prices"/> 6790 <input type="hidden" name="pip_ids"/> 6791 <input type="hidden" name="quan"/> 6792 <input type="hidden" name="M" value=""/> 6793 <input type="hidden" name="RequestGiftInfo" /> 6794 </form> 6795 6796 6797<div> 6798 <div> 6799 6800<div id="eshop-footer" class=""> 6801<div id="eshop-footer-wrap"> 6802<div id="eshop-footer-pages"><table></table></div> 6803 6804 6805 6806<div id="eshop-footer-credit"> 6807 6808 <span class="powered-by-holder"><a class="powered-by-link" href="https://www.e-shop.co.il" rel="nofollow" target="_blank"> 6809 6810 <img src="https://www.medicon.co.il/images/e-shop-powerd-by-black.png" height="33" width="201" alt="àéùåô çðåú åéøèåàìéú" /> 6811 6812 </a></span> 6813 </div> 6814 <div id="eshop-footer-text"></div> 6815</div> 6816</div> 6817 6818 6819<form name="quicksearch" action="https://www.medicon.co.il/search.asp" method="get"> 6820 <input type='hidden' name='IsPostback' value='true'/> 6821 <input type="hidden" name="qsearch"/> 6822 <input type="hidden" name="qmanufact"/> 6823</form> 6824
6825<script type="text/javascript"> 6826<!-- 6827self.name = 'hps'; 6828 6829try 6830{ 6831if (ie||document.getElementById||document.layers) 6832 { 6833 6834 } 6835 6836} 6837catch(err){} 6838 6839 6840 6841 6842//form tags to omit in NS6+: 6843var omitformtags=["input", "textarea", "select"] 6844 6845omitformtags=omitformtags.join("|") 6846 6847function disableselect(e){ 6848if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) 6849return false 6850} 6851 6852function reEnable(){ 6853return true 6854} 6855 6856if (typeof document.onselectstart!="undefined") 6857document.onselectstart=new Function ("return false") 6858else{ 6859document.onmousedown=disableselect 6860document.onmouseup=reEnable 6861} 6862 6863//Disable right click script III- By Renigade ([email protected]) 6864//For full source code, visit http://www.dynamicdrive.com 6865 6866var message=""; 6867/////////////////////////////////// 6868function clickIE() {if (document.all) {(message);return false;}} 6869function clickNS(e) {if 6870(document.layers||(document.getElementById&&!document.all)) { 6871if (e.which==2||e.which==3) {(message);return false;}}} 6872if (document.layers) 6873{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 6874else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 6875 6876document.oncontextmenu=new Function("return false") 6877 6878// --> 6879</script>
6879 6880 6881 </div></div> 6882 6883 6884 6885 6886</div> 6887</div> 6888 6889 6890 6891<div id="userkey" userkey="key147943621873854"></div> 6892 6893 6894
6894<script> 6895 function fireAnalyticsEvents() { 6896 6897 6898 } 6899 6900 $(window).on("load" , function () 6901 { 6902 if (cookieconsent == true) { 6903 fireAnalyticsEvents(); 6904 } 6905 }); 6906 </script>
6906 6907 6908 6909 6910 6911
6911<script> 6912 $("#mobile_footer_newsletter button").detach().appendTo("#mobile_footer_newsletter .email_p"); 6913 </script>
6913 6914 6915
6915<script type="text/javascript" defer="defer"> 6916 (function() { 6917 var scr = document.createElement('script'); 6918 if ('https:' == document.location.protocol) { 6919 scr.src = '/ajaxUtil/logstat.asp?c1=&c2=&pid=&aid=&gsid=&sct=/contact.asp&aff='; 6920 } else { 6921 scr.src = '/ajaxUtil/logstat.asp?c1=&c2=&pid=&aid=&gsid=&sct=/contact.asp&aff='; 6922 } 6923 scr.type = 'text/javascript'; 6924 //scr.type = 'text/html'; 6925 scr.async = true; 6926 scr.setAttribute('defer', 'defer'); 6927 document.getElementsByTagName('head')[0].appendChild(scr); 6928 } ()); 6929 </script>
6929 6930 6931
6931<script type="text/javascript" defer="defer"> 6932 6933 (function() { 6934 var scr = document.createElement('script'); 6935 if ('https:' == document.location.protocol) { 6936 scr.src = '/statsjs.asp?v=4.7.13'; 6937 } else { 6938 scr.src = '/statsjs.asp?v=4.7.13'; 6939 } 6940 scr.type = 'text/javascript'; 6941 //scr.type = 'text/html'; 6942 6943 scr.async = true; 6944 scr.setAttribute('defer', 'defer'); 6945 document.getElementsByTagName('head')[0].appendChild(scr); 6946 } ()); 6947 6948 </script>
6948 6949 6950 6951
6951<script type="text/javascript"> 6952 $.get( "/siteservices.asp?service=get_popup&Cat2Cat1ID=0&Cat2ID=0&SV_SCRIPT_NAME=/contact.asp&itemid=&pageid=184", function( data ) { 6953 $( "body" ).append( data ); 6954 }); 6955 </script>
6955 6956 6957
6957<script type="text/javascript"> 6958 $.get( "/siteservices.asp?service=get_campaigns&Cat2Cat1ID=0&Cat2ID=0&SV_SCRIPT_NAME=/contact.asp&itemident=&pageid=184", function( data ) { 6959 $( "body" ).append( data ); 6960 }); 6961 </script>
6961 6962
6963<script type="text/javascript"> 6964 $(document).ready(function () { 6965 ShowAllCarts(); 6966 }); 6967 6968 6969 window.onpageshow = function(event) { 6970 if (event.persisted) { 6971 //back event 6972 ShowAllCarts(); 6973 6974 } 6975 6976}; 6977 6978</script>
6978 6979 6980 6981 6982 6983 6984</body> 6985</html> 6986
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.