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>÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 | ÷åøàé ñôøéí àì÷èøåðéí Pocketbook</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/pl_product~270~2~0.htm" /> 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 <meta property="og:locale" content="he_IL" /> 90 91 92 93 <meta property="og:title" content = "÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 - ¤859.00"/> 94 <meta property="og:url" content = "https://www.medicon.co.il/pl_product~270~2~0.htm"/> 95 <meta property="og:type" content = "product" /> 96 <meta property="og:image" content = "https://www.medicon.co.il/images/itempics/270_200720220205431.jpg"/> 97 <meta property="og:image:width" content = "227" /> 98 <meta property="og:image:height" content = "227" /> 99 <meta property="og:site_name" content = "www.medicon.co.il"/> 100 <meta property="og:description" content = "îñê E Ink Carta 1300 äçãù áâåãì 7 àéðõ îùôø àú ðéâåãéåú äúîåðä á-15% åîùôø àú æîï äúâåáä ùì îñê äîâò á-20%."/> 101 102
102<script> 103 var currentCurrencySign = "¤"; 104 var currentCurrency = "0"; 105 var currentSiteLang = "HE"; 106 var CartAjaxQuantityName = "ôøéèéí áòâìä"; 107 var CartAjaxTotalName = "ñä"ë"; 108 var CurrencyMinimumOrder = "0"; 109 var CartAjaxContinueTxt = "äîùê ì÷ðåú"; 110 var CartAjaxBuyingTxt = "ì÷åôä"; 111 var CartAjaxAddTxt = "äîåöø ðåñó ìòâìä áäöìçä" ; 112 var stats_si_org = "0"; 113 114 var js_cartid = ''; 115 116 </script>
116 117 118 119 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/jqueryplugins.css?v=4.7.13" /> 120 <link rel="stylesheet" href="https://www.medicon.co.il/scripts/jquery/JqueryUI/css/ui-lightness/jquery-ui-1.8.21.custom.css" /> 121
121<script src="https://www.medicon.co.il/scripts/jquery/JqueryUI/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
121 122 123 124 <link rel="stylesheet" type="text/css" href="/scripts/bootstrap/css/bootstrap.min.css"> 125
125<script type="text/javascript" defer="defer" src="/scripts/bootstrap/js/bootstrap.min.js"></script>
125 126 127 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/esh-templates.css?v=4.7.13" /> 128
128<script type="text/javascript" defer="defer" src="/template_inc/eshopstoresframework/js/esh-templates.js?v=4.7.13"></script>
128 129 130 131 132 <link rel="stylesheet" href="/template_inc/eshopstoresframework/css/Open_Sans_Hebrew/opensans.css" /> 133 134 135 136 137 <!--[if lt IE 8]> 138 <link rel="stylesheet" type="text/css" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/ie.css" /> 139 <![endif]--> 140 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/main.css?v=4.7.13" /> 141 142 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/templates/VD/css/custom.css?v=4.7.13" /> 143 144 <!--[if IE 7]> 145 <link rel="stylesheet" type="text/css" href="https://www.medicon.co.il/template_inc/eshopstoresframework/templates/VD/css/Ie7.css" /> 146 <![endif]--> 147 148
148<script src="https://www.medicon.co.il/scripts/jquery/jquery.carouFredSel-6.2.1-packed.js" type="text/javascript"></script>
148 149 150
150<script language="javascript"> 151 var ZoomTrans_1 = "äâãìä ðåëçéú"; 152 var ZoomTrans_2 = "úùúîù áâìâì äòëáø ëãé ì÷øá / ìäøçé÷"; 153 </script>
153 154
154<script defer="defer" src ="https://www.medicon.co.il/scripts/jquery/multizoom.js?v=2" type="text/javascript"></script>
154 155 156 157 <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/js/prettyphoto/css/prettyPhoto.css"/> 158 159
159<script defer="defer" src="https://www.medicon.co.il/template_inc/eshopstoresframework/js/prettyphoto/js/jquery.prettyPhoto.js?v=1" type="text/javascript" ></script>
159 160 161 <style> 162 163 #sidebar .categories .content a , #secondsideBar .categories .content a 164 { 165 background: none repeat scroll 0 0 inherit !important ; 166 167 } 168 #sidebar .categories .content a:hover , #sidebar .categories li.current > a 169 , #secondsideBar .categories .content a:hover , #secondsideBar .categories li.current > a 170 { 171 background: none repeat scroll 0 0 inherit !important ; 172 173 174 } 175 176 body 177 {background-color: rgb(255,255,255);} 178 179 #pl_web_page 180 { 181 background-image:url("/template_inc/eshopstoresframework/DesignRoller/images/bgs/bg_t_0.png"); 182 background-attachment:fixed; 183 background-position:top left; 184 background-repeat:repeat; 185 } 186 187 #header .header_wrap 188 { 189 190 191 background: none repeat scroll 0% 0% rgb(0); 192 193 background: none repeat scroll 0% 0% rgba(0, 0); 194 } 195 196 197 #footer 198 { 199 background-color: ; 200 } 201 202 #footer .footer_wrap 203 { 204 205 background: none repeat scroll 0% 0% rgb(0); 206 207 background: none repeat scroll 0% 0% rgba(0, 0); 208 } 209 210 a.add-to-cart , .special-box a.add-to-cart,.product-prices a.add-to-cart 211 { 212 background-color: #139c13; 213 color: #000000; 214 } 215 216 div.maindivCenter-wrap 217 { 218 219 220 background:none; 221 -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFCFC,endColorstr=#FFFFFCFC); 222 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFCFC,endColorstr=#FFFFFCFC); 223 zoom: 1; 224 225 226 background: rgba(255,252,252 , 1 ); 227 } 228 229 #sidebar 230 { 231 232 background:none; 233 -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#66829CA3,endColorstr=#66829CA3); 234 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#66829CA3,endColorstr=#66829CA3); 235 zoom: 1; 236 237 background: rgba(130,156,163 , 0.4 ); 238 } 239 240 .products-box-titles ,.block.homepage .title,.block .title 241 { 242 background:none repeat scroll 0 0 rgb(35,125,30); 243 244 245 color: #000000 !important; 246 247 } 248 249 </style> 250 251<!--[if IE 9]> 252<style> 253 #header .menu ,#header .smallcart ,#sidebar .block .content , #secondsideBar .block .content,#header .categories,ul.productBoxes .boxItem 254 ,.homepage.block.spacial-items .jcarousel-container , #defProductboxesTbl .jcarousel-container ,#slider-700-nav a 255 ,#slider-700-nav a.activeSlide ,.maindivCenter ,#sidebar ,#secondsideBar,#header .menu li:h
255over a, #header .menu li.sfHover a, #header .menu li.sfHover li:hover a 256 ,#header .breadcrumb,#header .spaciel-items-wide .content, .spaciel-items-wide .content,#footer .menu ul,.products-page .block.miscfileds 257 ,.articles-thumnails ,.articles-single ,#header .userbar ,div.maindivCenter-wrap 258 { 259 filter: none; 260 } 261</style> 262<![endif]--> 263 264 265 266
266<script type="text/javascript"> 267 268 function encodeEmojis(str) { 269 var result = ''; 270 for (var i = 0; i < str.length; i++) { 271 var code = str.charCodeAt(i); 272 if (code >= 0xD800 && code <= 0xDBFF && i + 1 < str.length) { 273 var low = str.charCodeAt(i + 1); 274 if (low >= 0xDC00 && low <= 0xDFFF) { 275 var fullCode = ((code - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000; 276 result += '&#x' + fullCode.toString(16).toUpperCase() + ';'; 277 i++; 278 continue; 279 } 280 } 281 if (code > 0xFF && (code < 0x590 || code > 0x5FF)) { 282 result += '&#x' + code.toString(16).toUpperCase() + ';'; 283 } else { 284 result += str.charAt(i); 285 } 286 } 287 return result; 288 } 289 290 function ga_viewItemList(){ 291 $(".ee_list").each(function() 292 { 293 var ee_list_name = $(this).attr("ee_list_name") ; 294 var sanitized_list_name = ee_list_name.replace(/[\s,]/g, '_'); // Remove spaces and commas 295 296 var itemsArray = []; 297 298 299 $(this).find(".ee_list_item").each(function() 300 { 301 302 var ee_list_counter = $(this).attr("ee_list_item_position"); 303 // console.log( $(this).find("[ee_list_itemid]").text() + ' = ' + $(this).find("[ee_list_itemname]").text() + ' = ' + ee_list_category + ' = ' +ee_list_counter); 304 if (ee_list_counter<16) 305 { 306 307 308 309 } 310 311 312 var priceholder = $(this).find(".priceholder"); 313 if (priceholder.length > 0) { 314 var item_price = priceholder.attr("price"); 315 } else { 316 var item_price = 0 ; 317 } 318 319 320 var item = { 321 item_id: $(this).find(".item-name a").attr("ee_list_itemid"), 322 item_name: $(this).find(".item-name a").attr("ee_list_itemname"), 323 item_brand: $(this).find(".item-name a").attr("ee_list_itembrand"), 324 item_category: $(this).find(".item-name a").attr("ee_list_category"), 325 price: item_price, 326 quantity:1, 327 index: ee_list_counter, 328 item_list_id: ee_list_name, 329 item_list_name: ee_list_name 330 }; 331 332 itemsArray.push(item); 333 334 }); 335 336 337 338 }); 339} 340function ga4_viewItemList(){ 341 $(".ee_list").each(function() 342 { 343 var ee_list_name = $(this).attr("ee_list_name") ; 344 var sanitized_list_name = ee_list_name.replace(/[\s,]/g, '_'); // Remove spaces and commas 345 346 var itemsArray = []; 347 348 349 $(this).find(".ee_list_item").each(function() 350 { 351 352 var ee_list_counter = $(this).attr("ee_list_item_position"); 353 354 355 356 var priceholder = $(this).find(".priceholder"); 357 if (priceholder.length > 0) { 358 var item_price = priceholder.attr("price"); 359 } else { 360 var item_price = 0 ; 361 } 362 363 364 var item = { 365 item_id: $(this).find(".item-name a").attr("ee_list_itemid"), 366 item_name: $(this).find(".item-name a").attr("ee_list_itemname"), 367 item_brand: $(this).find(".item-name a").attr("ee_list_itembrand"), 368 item_category: $(this).find(".item-name a").attr("ee_list_category"), 369 price: item_price, 370 quantity:1, 371 index: ee_list_counter, 372 item_list_id: ee_list_name, 373 item_list_name: ee_list_name 374 }; 375 376 itemsArray.push(item); 377 378 }); 379 380 381 382 }); 383} 384var google_analytics_loaded = false; 385 function loadGoogleAnalytics() { 386 387 } 388 389 if (cookieconsent == true) { 390 $(document).ready(function() { 391 loadGoogleAnalytics(); 392 }); 393 } 394 </script>
394 395 396
396<script> 397 var google_tag_loaded = false; 398 399 function loadGoogleTag() { 400 401 402 403 } 404 // Consent Mode v2: gtag always loads; consent state (granted/denied) is set 405 // inside loadGoogleTag before the script is appended 406 $(document).ready(function() { 407 loadGoogleTag(); 408 }); 409 </script>
409 410 411 412 413
413<script> 414 var load_tiktok_pixel = false; 415 function loadTiktokPixel() { 416 417 } 418 419 if (cookieconsent == true) { 420 $(document).ready(function() { 421 loadTiktokPixel(); 422 }); 423 } 424 </script>
424 425 426 427
428<script> 429var load_facebook_pixel = false; 430function loadFacebookPixel() { 431 432 433 } 434 if (cookieconsent == true) { 435 $(document).ready(function() { 436 loadFacebookPixel(); 437 }); 438 } 439</script>
439 440 441 442
443<script type="text/javascript"> 444 var cart_opened = false; 445 var cart_add_to_cart = false; 446 var cart_remove_from_cart = false; 447 448 function datecountdown(){ 449 450 $('.datecountdown').each(function() 451 { 452 var tempdate = $(this).attr("date"); 453 var tempitemid = $(this).attr("itemid"); 454 var isRule = $(".rule").length; 455 $(this).countdown( 456 { 457 date: tempdate, 458 render: function (date) 459 { 460 var daysHundred = Math.floor(date.days / 100); 461 var daysTens = Math.floor((date.days % 100) / 10); 462 var daysOnes = date.days % 10; 463 var hourTens = Math.floor(date.hours / 10); 464 var hourOnes = date.hours % 10; 465 var minTens = Math.floor(date.min / 10); 466 var minOnes = date.min % 10; 467 var secTens = Math.floor(date.sec / 10); 468 var secOnes = date.sec % 10; 469 var totalHours = date.days * 24 + date.hours; 470 var totalHourTens = Math.floor(totalHours / 10); 471 var totalHourOnes = totalHours % 10; 472 if (totalHours > 80) 473 { 474 475 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>"; 476 477 478 // Check if any of the days variables is truthy 479 480 if (daysHundred) { 481 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>'; 482 } else if (daysHundred == 0 && daysTens > 0 && daysOnes > 0) { 483 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>'; 484 } else if (daysHundred == 0 && daysTens > 0 && daysOnes == 0) { 485 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>'; 486 } else if (daysHundred == 0 && daysTens == 0 && daysOnes > 0) { 487 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>'; 488 } else if (daysHundred == 0 && daysTens == 0 && daysOnes == 0) { 489 // Display the days element 490 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>'; 491 } 492 493 } 494 else 495 { 496 497 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>"; 498 499 if(totalHours > 0){ 500 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>'; 501 } 502 else{ 503 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>'; 504 } 505 506 } 507 508 }, 509 onEnd: function() 510 { 511 512 setTimeout( 513 function() 514 { 515 $.get("/siteservices.asp?service=deals_end¶ms="+ tempitemid + "&rule_id=" , function(data) 516 { 517 if(data == "1" ) 518 { 519 window.location.reload(); 520 } 521 }); 522 }, 3000); 523 } 524 }); 525 }); 526 } 527 528function preloadAdjacentImages(carousel, count) {
529 let visibleItems = $(carousel).find('.owl-item.active').map(function() { return this; }).get(); 530 visibleItems.forEach(function(item, index) { 531 $(item).nextAll().addBack().slice(0, count).find('img[loading="lazy"]').each(function() { 532 this.setAttribute('src', this.getAttribute('data-src') || this.getAttribute('src')); 533 this.removeAttribute('loading'); // Remove the lazy loading attribute once the image is loaded 534 }); 535 }); 536} 537 538 539 var mobile_breadcrumb_flag = false; 540 function get_factory_url(element_id) { 541 542 var url = "/factory.asp?id=" + element_id ; 543 544 // Function to check if ASP Classic parameter is empty or not 545 function checkParamEmpty(paramValue) { 546 return paramValue !== "" && paramValue !== undefined && paramValue !== null; 547 } 548 549 // Append parameters to the URL only if they are not empty 550 var params = { 551 "cat": "", 552 "cat1": "2", 553 "cat2": "0", 554 "SV_SCRIPT_NAME": "/product.asp", 555 "FriendlyReq": "", 556 "itemident": "270", 557 "PageHead": "", 558 "pageid": "", 559 "Qsearch": "", 560 "MiscFieldsNames": "", 561 "IN_Name": "%F7%E5%F8%E0+%F1%F4%F8%E9%ED+%E0%EC%F7%E8%F8%E5%F0%E9+PocketBook+ERA+Lite+PB710+", 562 "OrderID": "", 563 "qmanufact" : "", 564 }; 565 566 for (var key in params) { 567 if (checkParamEmpty(params[key])) { 568 url += "&" + key + "=" + params[key]; 569 } 570 } 571 572 return url; 573 } 574 function mobile_breadcrumb() { 575 576 577 578 if ($(window).width() < 801) { 579 if ($(".header_breadcrumb_mobile").length == 0 ) { 580 $(".mobile_header").after($(".header_breadcrumb").html()); 581 $(".breadcrumb").wrap("<div class='header_breadcrumb_mobile'> </div>"); 582 } 583 } 584 585 586 587 } 588 589 590 function account_verification_success ( param ){ 591 //if ( $("#lightpopup.user_connect").is(":visible") ){ 592 location.reload(); 593 //} 594 } 595 596 function show_sms_code_validation_form( param ) 597 { 598 $(".user_phone_login_div").hide(); 599 $(".account_verification_div").show(); 600 } 601 602 function dynamicform() { 603 $("form.dynamic").each(function () { 604 605 $(this).validate({ 606 submitHandler: function (form) { 607 608 var data = $(form).serialize(); 609 var action = $(form).attr("action"); 610 var messagediv = $(form).find(".messagediv"); 611 var reload = $(form).attr("reload"); 612 var onsuccess = $(form).attr("onsuccess"); 613 $.post( 614 action, 615 data, 616 function (data) { 617 if (data != '') { 618 array = data.split("|") 619 if (array[0] == "0") { 620 $(messagediv).html("<div class='error'>" + array[1] + "</div>"); 621 } 622 if (array[0] == "1") { 623 if (reload == "1") 624 { 625 location.reload(); 626 } 627 else 628 { 629 if ( typeof onsuccess == 'undefined' ){ 630 $(messagediv).html("<div class='success'>" + array[1] + "</div>"); 631 } 632 else 633 { 634 635 // console.log(" call function " + onsuccess ); 636 637 window[onsuccess](""); 638 } 639 } 640 } 641 } 642 } 643 ); 644 } 645 }); 646 647 }); 648 } 649 650 651 $.fn.isInViewport = function() { 652 var elementTop = $(this).offset().top; 653 var elementBottom = elementTop + $(this).outerHeight(); 654 var viewportTop = $(window).scrollTop() ; 655 var viewportBottom = viewportTop + $(window).height() + 200 ; 656 return elementBottom > viewportTop && elementTop < viewportBottom; 657 }; 658 659 $.fn.isInViewportScroll = function() { 660 var elementTop = $(this).offset().top; 661 var elementBottom = elementTop + $(this).outerHeight(); 662 var viewportTop = $(window).scrollTop() + 200 ; 663 var viewportBottom = viewportTop + $(window).height() ; 664 return elementBottom > viewportTop && elementTop < viewportBottom; 665 }; 666 667 $.fn.imageLoad = function(fn){ 668 this.load(fn); 669 this.each( function() {
670 if ( this.complete && this.naturalWidth !== 0 ) { 671 $(this).trigger('load'); 672 } 673 }); 674 } 675 676 677 $(document).ready(function () 678 { 679 680 $("body").on("click",".login_with_username_password",function(){ 681 $(".user_phone_login_container").hide(); 682 $(".user_login_container").show(); 683 localStorage.setItem('lastLoginForm', 'username'); // Save the choice 684 685 return false; 686 }); 687 688 $("body").on("click",".login_with_phone_number",function(){ 689 $(".user_phone_login_container").show(); 690 $(".user_login_container").hide(); 691 localStorage.setItem('lastLoginForm', 'phone'); // Save the choice 692 return false; 693 }); 694 695 //add order by to category if cookie exist 696 var ProdsOrderBy = $.cookie('ProdsOrderBy'); 697 if ( ProdsOrderBy != "" ){ 698 $(".breadcrumb-item a").each( function(){ 699 var breadcrumb_url = $(this).attr("href"); 700 if ( breadcrumb_url.indexOf("/category/") > 0 && breadcrumb_url.indexOf("?") == -1 ) { 701 $(this).attr("href" , breadcrumb_url + "?orderby=" + ProdsOrderBy ); 702 } 703 }); 704 } 705 706 $("img[data-src]").each(function() 707 { 708 if ( $(this).isInViewport() ) 709 { 710 $(this).attr("src" , $(this).attr("data-src") ); 711 $(this).removeAttr("data-src") ; 712 calculate_icons_position(); 713 } 714 }); 715 716 $("#sticky_header img[data-src]").each(function() { 717 $(this).attr("src" , $(this).attr("data-src") ); 718 $(this).removeAttr("data-src") ; 719 }); 720 721 722 723 }); 724 725 726 727 $(document).ready(function () 728 { 729 var $container = $('.itembox-style-4 .productBoxes'); 730 // initialize 731 $container.masonry({ 732 columnWidth: 0, 733 itemSelector: '.boxItem' 734 }); 735 $container.imagesLoaded(function () { 736 $container.masonry(); 737 }); 738}); 739 740 741 $(document).ready(function () { 742 $("a[rel^='prettyPhoto']").prettyPhoto( 743 { 744 deeplinking: false 745 } 746 ); 747 }); 748 749 750 function isValidPhoneNumber(phoneNumber) { 751 const length = phoneNumber.length; 752 if (phoneNumber[0] !== '0') { 753 return false; 754 } 755 if (length === 9 && /^0((2|3|4|8|9)[0-9]{7}|(2|3|4|8|9)[0-9]{6})$/.test(phoneNumber)) { 756 return true; 757 } 758 if (length === 10 && /^0((5[0-8]|7[1-9])[0-9]{7}|(2|3|4|8|9))$/.test(phoneNumber)) { 759 return true; 760 } 761 return false; 762 } 763 764 function widget_form(){ 765 $(".widget_form").each(function(){ 766 var $form = $(this); 767 $form.validate({ 768 submitHandler: function(form) { 769 var phoneNumber = $(form).find("[name='Phone']").val(); // assuming the input field name for phone number is 'Phone' 770 if( phoneNumber !== ""){ 771 if(!isValidPhoneNumber(phoneNumber)) { 772 alert('äëðñ îñôø èìôåï ú÷éï'); 773 return; 774 } 775 } 776 777 var data = $(form).serialize(); 778 var action = $(form).attr("action"); 779 var messagediv = $(form).next(".messagediv"); 780 781 $.post( 782 action, 783 data, 784 function(data) { 785 786 if (typeof CaptchaReCall === 'function') { 787 CaptchaReCall(); 788 } 789 790 if (data != "") { 791 var array = data.split("|") 792 if (array[0] == "0") { 793 $(messagediv).html("<div class='error'>" + array[1] + "</div>"); 794 795 } 796 if (array[0] == "1") { 797 $(messagediv).html("<div class='success'>" + array[1] + "</div>"); 798 $(form).hide(); 799 800 if (cookieconsent == true) { 801 802 } 803 } 804 } 805 } 806 ); 807 } 808 }); 809 }); 810} 811 812 function miniuserbar_login() 813 { 814 815 816 817 $(document).on({ 818 mouseenter: function(){ 819 820 if ($("#miniuserbar .toggle-hover i").length) 821 { 822 var icon_obj = $("#miniuserbar .toggle-hover i"); 823 var icon_position = $(icon_obj).position(); 824 var icon_width = $(icon_obj).width(); 825 var icon_height = $(icon_obj).height(); 826 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 827 828 if ($("#miniuserbar").hasClass("open-right")) 829 { 830 $("#miniuserbarholder.loginh
830older").css({ 831 "top" : caluclate_top + 8 +"px", 832 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 833 "right": "auto" 834 }); 835 } 836 else{ 837 838 $("#miniuserbarholder.loginholder").css({ 839 "top" : caluclate_top + 8 +"px", 840 "left" : (icon_position.left*1) + (icon_width/2*1) - 325 + "px" , 841 "right": "auto" 842 }); 843 } 844 } 845 else 846 { 847 var icon_obj = $("#miniuserbar.dynamic_view .login_block .userlogin_link"); 848 var icon_position = $(icon_obj).position(); 849 var icon_width = $(icon_obj).width(); 850 var icon_height = $(icon_obj).height(); 851 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 852 853 if ($("#miniuserbar").hasClass("open-right")) 854 { 855 $("#miniuserbarholder.loginholder").css({ 856 "top" : caluclate_top + 8 +"px", 857 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 858 "right": "auto" 859 }); 860 } 861 else 862 { 863 $("#miniuserbarholder.loginholder").css({ 864 "top" : caluclate_top + 8 +"px", 865 /* "right" : 18 + "px" ,*/ 866 "left": "auto" 867 }); 868 } 869 } 870 $("#miniuserbarholder.loginholder").show(); 871 return false; 872 }, 873 mouseleave: function(){ 874 $("#miniuserbarholder.loginholder").hide(); 875 return false; 876 } 877 },"div#miniuserbar.dynamic_view .login_block"); 878 879 880 } 881 882 function mini_userbar_element(){ 883 if ($("#miniuserbar.dynamic_view").length) 884 { 885 886 if ($("#miniuserbar.dynamic_view .login_block.open_window").length) 887 { 888 miniuserbar_login(); 889 } 890 if ($("#miniuserbar.dynamic_view .registration_block.open_window").length) 891 { 892 893 894 895 $("body").on({ 896 mouseenter: function(){ 897 var icon_obj = $("#miniuserbar.dynamic_view .registration_block .register_link"); 898 var icon_position = $(icon_obj).position(); 899 var icon_width = $(icon_obj).width(); 900 var icon_height = $(icon_obj).height(); 901 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 902 903 if ($("#miniuserbar").hasClass("open-right")) 904 { 905 $("#miniuserbarholder.registerholder").css({ 906 "top" : caluclate_top + 8 +"px", 907 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 908 "right": "auto" 909 }); 910 } 911 else 912 { 913 $("#miniuserbarholder.registerholder").css({ 914 "top" : caluclate_top + 8 +"px", 915 // "right" : (icon_position.left*1) + (icon_width/2*1) - 55 + "px" , 916 "right" : 0, 917 "left": "auto" 918 }); 919 } 920 921 $("#miniuserbarholder.registerholder").show(); 922 return false; 923 }, 924 mouseleave: function(){ 925 $("#miniuserbarholder.registerholder").hide(); 926 return false; 927 } 928 }, "div#miniuserbar.dynamic_view .registration_block"); 929 930 931 932 } 933 } 934 935 else{ 936 937 $("body").on({ 938 mouseenter: function(){ 939 if ($("#miniuserbar .toggle-hover i").length) 940 { 941 var icon_obj = $("#miniuserbar .toggle-hover i"); 942 var icon_position = $(icon_obj).position(); 943 var icon_width = $(icon_obj).width(); 944 var icon_height = $(icon_obj).height(); 945 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 946 947 if ($("#miniuserbar").hasClass("open-right")) 948 { 949 $("#miniuserbarholder").css({ 950 "top" : caluclate_top + 7 +"px", 951 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 20 + "px" , 952 "right": "auto" 953 }); 954 } 955 else{ 956 957 $("#miniuserbarholder").css({ 958 "top" : caluclate_top + 7 +"px", 959 "left" : (icon_position.left*1) + (icon_width/2*1) - 325 + "px" , 960 "right": "auto" 961 }); 962 } 963 } 964 965 $("#miniuserbarholder").show(); 966 return false; 967 }, 968 mouseleave: function(e){
969 if(e.relatedTarget != null){ 970 cartpopuptimer = setTimeout(function (){ 971 $("#miniuserbarholder").hide(); 972 }, 6000 ); 973 return false; 974 } 975 } 976 }, "#miniuserbar"); 977 978 } 979 } 980 981 982 983 cartpopuptimer = setTimeout(function () 984 { 985 986 987 }, 6000 ); 988 989 990 991 992 function resize_menu_items () 993{ 994var menu_maxHeight = 0; 995$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").css("height", ""); 996$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").each(function () { 997 if ($(this).outerHeight(true) > menu_maxHeight ) { menu_maxHeight = $(this).outerHeight(true); } 998}); 999 1000 1001 1002 1003$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").css("height", menu_maxHeight + "px"); 1004 1005} 1006 function dynamicStickyCart(){ 1007 // disable dyanmic sticky small screen 1008 if ( $(window).width() > 800 ) 1009 { 1010 1011 $(".dynamic-sticky").dynamic_sticky(); 1012 if ($("#header").find(".fixed-top").length ) 1013 { 1014 var campainHeight=0; 1015 if($(".campain.slidefromtop").length){ 1016 campainHeight=$("#header").offset().top; 1017 } 1018 var header_height = $("#header").find(".fixed-top").height() + 10 + campainHeight ; 1019 $('<style>.dynamic-sticky.is_stuck{margin-top:' + header_height + 'px}</style>').appendTo( document.head ); 1020 } 1021 1022 if ($("#sticky_header").length ) 1023 { 1024 var campainHeight=0; 1025 if($(".campain.slidefromtop").length){ 1026 campainHeight=$("#sticky_header").offset().top; 1027 } 1028 var header_height = $("#sticky_header").height() + 10 + campainHeight; 1029 $('<style>.dynamic-sticky.is_stuck{margin-top:' + header_height + 'px}</style>').appendTo( document.head ); 1030 } 1031 1032 } 1033 } 1034 1035 1036 1037 function OpenSmallCart() 1038 { 1039 1040 1041 clearTimeout(cartmobilepopuptimer); 1042 if ( !$("#mobile_minicart").is(':visible') ) 1043 { 1044 //$("#mobile_header .header_smallcart").trigger("click"); 1045 mobile_minicart_toggle("2"); 1046 } 1047 cartmobilepopuptimer = setTimeout(function() 1048 { 1049 //$("#mobile_header .header_smallcart").trigger("click"); 1050 mobile_minicart_toggle("3"); 1051 }, 6000 ); 1052 1053 1054 } 1055 1056 1057 function OpenSmallWishCart() 1058 { 1059 1060 } 1061 1062 function submitsearchform(obj) 1063 { 1064 if (cookieconsent == true) { 1065 1066 } 1067 if (typeof ( obj ) != 'undefined') 1068 { 1069 $(obj).submit(); 1070 1071 search_form_submited = true; 1072 1073 // Find the submit button within the form 1074 var submitButton = $(obj).find("button[type='submit']"); 1075 1076 // Disable the submit button 1077 submitButton.prop("disabled", true); 1078 1079 } 1080 else 1081 { 1082 $('form[name="SearchFrm"]').submit(); 1083 1084 search_form_submited = true; 1085 1086 // Find the submit button within the form 1087 var submitButton = $('form[name="SearchFrm"]').find("button[type='submit']"); 1088 1089 // Disable the submit button 1090 submitButton.prop("disabled", true); 1091 1092 } 1093 1094 return false; 1095 } 1096 1097 let search_form_submited = false; 1098 1099 // Attach the function to the window's load event 1100 function enableSubmitButton() { 1101 try { 1102 1103 if ( $("#Button1").length ){ 1104 document.getElementById("Button1").disabled = false; 1105 } 1106 1107 if ( $("#right_srch_str").length ){ 1108 document.getElementById("right_srch_str").disabled = false; 1109 } 1110 1111 var searchForms = $("form[name='SearchFrm']"); 1112 searchForms.each(function(index) { 1113 // Find the submit button within each form 1114 var submitButton = $(this).find("button[type='submit']"); 1115 // Disable the submit button 1116 submitButton.prop("disabled", true); 1117 }); 1118 1119 } catch (e) {} 1120 } 1121 window.addEventListener("unload", enableSubmitButton); 1122 1123 function change_product_box_total(id) 1124 { 1125 var Num_After_dot = "2"; 1126 var temp_dropDecimals = 0; 1127 if (Num_After_dot == "1" || Num_After_dot == "2" ) 1128 { 1129 temp_dropDecimals = 2; 1130 } 1131 1132 var quan = $(id).parents("li").find("input[name=quantity]").val(); 1133 var quan_base = $(id).parents("li").attr("quan_base"); 1134 if(!$.isNumeric(quan_base)){quan_base = 1;} 1135 if(!$.isNumeric(quan)){quan = 1;} 1136 1137 var newtotal = $(id).attr("price")*quan/quan_base; 1138 $(id).html(newtotal.toFixed(Num_After_dot)).formatCurrency({ 1139 groupDigits: true , symbol: '', 1140 roundToDecimalPlace: temp_dropDecimals 1141 }); 1142 } 1143 1144 1145 $(window).on("load",function() 1146 { 1147 $(".slider-auto").css( 'height' , $(".slider-auto img:first").height()+'px'); 1148 $(".slider-auto").css( 'width' , $(".slider-auto img:first").width()+'px'); 1149 $(".slider-700").css( 'height' , $(".slider-700 img:first").height()+'px'); 1150 $(".slider-940").css( 'height' , $(".slider-940 img:first").height()+'px'); 1151 1152 1153 1154 resize_menu_items (); 1155 1156} 1157 1158 1159 ); 1160 1161 1162 1163 1164 1165 function user_connect() 1166 { 1167 $.get("/siteservices.asp?service=user_connect", function(data) 1168 { 1169 lightpopup (data,'user_connect') ; 1170 1171 dynamicform(); 1172 1173 }); 1174 } 1175 1176function es_tooltip () 1177 { 1178 $(".es_tooltip").qtip({ 1179 overwrite: false, 1180 position: { 1181 1182 my: "top center", 1183 at: "bottom center", 1184 viewport: $(document.body) 1185 1186 1187 }, 1188 style: { 1189 classes: "qtip-light qtip-rounded" 1190 }, 1191 content: { 1192 1193 text: function (event, api) { return $(this).find("span.content").html(); } 1194 }, 1195 show: { 1196 ready: false 1197 } 1198 1199 1200 }); 1201 } 1202 1203var resizeTimer; 1204 1205 1206 1207 if( $(window).width() <= 800 ) 1208 { 1209 if ( $("#mobile_header").length ) 1210 {} 1211 else 1212 { 1213 clearTimeout(resizeTimer); 1214 resizeTimer = setTimeout(function() { 1215 1216 $.ajax({
1217 url: get_factory_url( "mobile_header" ) , 1218 }).done(function (data) 1219 { 1220 $("#mobile_header_holder").html(data) 1221 dynamicform(); 1222 1223 }); 1224 1225 }, 250); 1226 } 1227 } 1228 1229 $(window).on('resize', function () 1230 { 1231 if ( $("#mobile_header").length ) 1232 {} 1233 else 1234 { 1235 clearTimeout(resizeTimer); 1236 resizeTimer = setTimeout(function() { 1237 1238 $.ajax({ 1239 url:get_factory_url( "mobile_header" ), 1240 }).done(function (data) 1241 { 1242 $("#mobile_header_holder").html(data) 1243 dynamicform(); 1244 }); 1245 1246 }, 250); 1247 } 1248 1249 }) 1250 1251 1252 1253 1254 $(window).on('resize scroll', function () 1255 { 1256 1257 $(document).ready (function() 1258 { 1259 1260 1261 1262 1263 $("img[data-src]").each(function() 1264 { 1265 if ( $(this).isInViewportScroll() ) 1266 { 1267 $(this).attr("src" , $(this).attr("data-src") ); 1268 $(this).removeAttr("data-src") ; 1269 calculate_icons_position(); 1270 } 1271 }); 1272 1273 1274 if ( $("div.lazyscroll").length) 1275 { 1276 $("div.lazyscroll").each(function () 1277 { 1278 var element = $(this); 1279 //console.log ($(this).attr("id")); 1280 if ( $(element).isInViewport() ) 1281 { $(element).removeClass("lazyscroll"); 1282 $.ajax({
1283 url: get_factory_url ( $(this).attr("id") ) , 1284 }).done(function (data) 1285 { 1286 1287 $(element).html(data); 1288 $(element).show(); 1289 dynamicform(); 1290 mobile_breadcrumb(); 1291 }); 1292 } 1293 }); 1294 } 1295 resize_menu_items (); 1296 }); 1297 }); 1298 1299 $(document).ready (function() 1300 { 1301 1302 $("img[data-src]").each(function() 1303 { 1304 if ( $(this).isInViewport() ) 1305 { 1306 $(this).attr("src" , $(this).attr("data-src") ); 1307 $(this).removeAttr("data-src") ; 1308 1309 } 1310 }); 1311 1312 $(".sectionitems .owl-carousel img[data-src]").each(function(){ 1313 $(this).attr("src" , $(this).attr("data-src") ); 1314 $(this).removeAttr("data-src") ; 1315 }); 1316 1317 $(".megamenu img[data-src]").each(function() 1318 { 1319 $(this).attr("src" , $(this).attr("data-src") ); 1320 $(this).removeAttr("data-src") ; 1321 }); 1322 1323 $(".MiscFieldsIcons img[data-src]").each(function() 1324 { 1325 $(this).attr("src" , $(this).attr("data-src") ); 1326 $(this).removeAttr("data-src") ; 1327 }); 1328 1329 1330 $("#item-relativeitems-popup img[data-src]").each(function() 1331 { 1332 $(this).attr("src" , $(this).attr("data-src") ); 1333 $(this).removeAttr("data-src") ; 1334 }); 1335 1336 if ( $("div.lazyload").length) 1337 { 1338 $("div.lazyload").each(function () 1339 { 1340 var element = $(this); 1341 var element_id = $(this).attr("id"); 1342 $.ajax({
1343 url: get_factory_url( element_id ), 1344 }).done(function (data) 1345 { 1346 1347 $(element).html(data); 1348 dynamicform(); 1349 mobile_breadcrumb(); 1350 datecountdown(); 1351 1352 $(element).find("img[data-src]").each(function() 1353 { 1354 $(this).attr( "src" , $(this).attr("data-src") ); 1355 $(this).removeAttr("data-src") ; 1356 }); 1357 1358 }); 1359 }); 1360 } 1361 1362 1363 1364 es_tooltip(); 1365 1366 1367 1368 1369 //currencies 1370 $("body").on( "click" , ".currencies_switch a, .currencies_switch input[type='radio']" , function () { 1371 var current_currancy = $(this); 1372 if (current_currancy.hasClass("active")) { return false; } 1373 var currency_value = current_currancy.attr("data"); 1374 if (current_currancy.is("input[type='radio']")) { 1375 currency_value = current_currancy.val(); 1376 } 1377 if (!currency_value || currency_value == "") { 1378 return false; 1379 } 1380 $.ajax({
1381 url: "/siteservices.asp?service=currencies_switch¶ms="+ currency_value , 1382 async:false, 1383 }).done(function(data) 1384 { 1385 if (data == "1") 1386 { 1387 location.reload(); 1388 } 1389 }); 1390 return false; 1391 }); 1392 1393 $("body").on( "change" , ".currencies_switch select" , function () { 1394 var currency_value = $(this).val(); 1395 if (!currency_value || currency_value == "") { 1396 return false; 1397 } 1398 $.ajax({ 1399 url: "/siteservices.asp?service=currencies_switch¶ms="+ currency_value , 1400 async:false, 1401 }).done(function(data) 1402 { 1403 if (data == "1") 1404 { 1405 location.reload(); 1406 } 1407 }); 1408 }); 1409 1410 1411 //prevent from contact header close when autocomplete is chosen 1412 1413 setTimeout(function(){ 1414 $(".header_contactform .contactform form.widget_form input.form-control[type='text']").on('focus', function() { 1415 $('.header_contactform .block.contactform').addClass('hovered'); 1416 }).on('blur', function() { 1417 setTimeout(function(){ 1418 $('.header_contactform .block.contactform').removeClass('hovered'); 1419 },3000); 1420 }); 1421 1422 $(".header_contactform .contactform form input[type='text']").on('focus', function() { 1423 $('.header_contactform .block.contactform').addClass('hovered'); 1424 }).on('blur', function() { 1425 setTimeout(function(){ 1426 $('.header_contactform .block.contactform').removeClass('hovered'); 1427 },3000); 1428 }); 1429 }, 1000); 1430 1431 1432 1433 1434 $("body").on({ 1435 mouseenter: function(){ 1436 $(this).find(".image_1").hide(); 1437 $(this).find(".image_2").show(); 1438 }, 1439 mouseleave: function(){ 1440 $(this).find(".image_2").hide(); 1441 $(this).find(".image_1").show(); 1442 } 1443 }, '.icon_switch'); 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 //numbering 1455 $(".es_numbering_element").each(function() 1456 { 1457 1458 1459 $(this).find(".ProperyName").addClass("es_number_title"); 1460 $(this).find(".ProperyLinkName").addClass("es_number_title"); 1461 $(this).find(".product-deliverydate > p").addClass("es_number_title"); 1462 1463 1464 }); 1465 1466 $(".es_numbering_container").each(function() 1467 { 1468 var numbering = 1; 1469 var titlecounter = $(".es_number_title").length ; 1470 $(".es_number_title").each(function(){ 1471 1472 if ( titlecounter > 1 ) 1473 { 1474 $(this).prepend("<span class='es_number'>"+ numbering +"</span>"); 1475 } 1476 else 1477 { 1478 $(this).addClass("nonumber"); 1479 } 1480 numbering = numbering + 1 ; 1481 }); 1482 $(".es_numbering_layout_4 .es_number_title").each(function(){ 1483 $(this).append("<span class='border-line'></span>"); 1484 }); 1485 1486 }); 1487 1488 1489 1490 1491 $("body").on({ 1492 mouseenter: function(){ 1493 $(this).parent().find(".ItemBoxPromotionInfo").show(); 1494 }, 1495 mouseleave: function(){ 1496 $(this).parent().find(".ItemBoxPromotionInfo").hide(); 1497 } 1498 }, ".ProductBox_promotion .promotion_image"); 1499 1500 1501 1502 1503 1504 $("body").on("click",".button_open_id", function() 1505 { 1506 var widget_open_id = $( this ).attr("openonwidgetid"); 1507 1508 if ($(widget_open_id).is(":visible" )) 1509 { 1510 $(widget_open_id).hide(); 1511 } 1512 else 1513 { 1514 $(widget_open_id).show(); 1515 1516 } 1517 1518 return false; 1519 1520 }); 1521 1522 //menu images switch 1523 $("body").on({ 1524 mouseenter: function(){ 1525 $(this).find("img").eq(0).attr("src",$(this).find("img").eq(0).attr("image-hover")) 1526 }, 1527 mouseleave: function(){ 1528 $(this).find("img").eq(0).attr("src",$(this).find("img").eq(0).attr("image-source")) 1529 } 1530 }, ".switch_image"); 1531 1532 1533 1534 // quickview start 1535 $("body").on("click",".quickview_lightpopup .image" , function() { 1536 var temp_src = $(this).find("img").attr("src"); 1537 $(".boxItem .image img").each( function() { 1538 if ( $(this).attr("src") == temp_src ) 1539 { 1540 $(this).parents(".boxItem").find(".product_quickview").trigger("click"); 1541 } 1542 }); 1543 return false; 1544 }); 1545 1546 $("body").on("click",".boxItem .product_quickview",function(){ 1547 1548 var next_item = ''; 1549 var previous_item = ''; 1550 1551 if ( $(this).parents(".boxItem").next().is('li') ) 1552 { 1553 tempobj = $(this).parents(".boxItem").next().find(".boxPicture"); 1554 next_item = tempobj.html(); 1555 } 1556 1557 if ( $(this).parents(".boxItem").prev().is('li') ) 1558 { 1559 tempobj = $(this).parents(".boxItem").prev().find(".boxPicture"); 1560 previous_item = tempobj.html(); 1561 } 1562 1563 1564 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'>
1564ä÷åãí</span> "+ next_item +"</div></div>"; 1565 1566 1567 1568 1569 lightpopup (data,"quickview_lightpopup"); 1570 $("#quickview_iframe").hide(); 1571 $("#quickview_iframe").on("load" ,function(){ 1572 $("#quickview_iframe").show(); 1573 $(".loader").hide(); 1574 }); 1575 1576 $('.navImage').each(function () { 1577 var navspan = ""; 1578 navspan = $(this).find(".imgnavSpan"); 1579 $(this).find(".image").append(navspan); 1580 }); 1581 return false; 1582 }); 1583 // quickview end 1584 1585 /*whatsapp start*/ 1586 1587 $("body").on("click",".wame_whatsapp",function(){ 1588 if (cookieconsent == true) { 1589 1590 } 1591 }); 1592 1593 $("body").on("click",".whatsapp_share,.header_whatsapp,a.fa-whatsapp,#stickey_whatsapp,.whatsapp.btn",function(){ 1594 1595 var whatsapp = $(this); 1596 var whatsapp_product_image = $('meta[property="og:image"]').attr('content'); 1597 var whatsapp_product_url = window.location.href; 1598 var whatsapp_product_title = $(document).find("title").text(); 1599 1600 if ( $(this).hasClass("linktopage") ) 1601 { 1602 var whatsapp_product_image = $(this).attr('data-image'); 1603 var whatsapp_product_url = $(this).attr('data-href'); 1604 var whatsapp_product_title = $(this).attr('data-title'); 1605 } 1606 1607 if (cookieconsent == true) { 1608 1609 } 1610 1611 $.ajax({
1612 url: "/siteservices.asp?service=whatsapp_save&title="+whatsapp_product_title+"&image="+ whatsapp_product_image +"&url="+ whatsapp_product_url , 1613 async:false, 1614 }).done(function(data) 1615 { 1616 var redirect_url = $(whatsapp).attr("href") + "https://www.medicon.co.il/whatsapp.asp?id=" + data ; 1617 //window.location.href = redirect_url; 1618 window.open(redirect_url); 1619 }); 1620 1621 return false; 1622 }); 1623 /*whatsapp end*/ 1624 1625 1626 1627 1628 $("li.parent:last-child").addClass("last"); 1629 1630 $("body").on("click",".filter_link",function(){ 1631 // $(this).parent().parent().find(".misc_chk").prop("checked", true); 1632 1633 if ( $(this).parent().parent().find(".misc_chk").is(":checked") == true ){ 1634 $(this).parent().parent().find(".misc_chk").prop("checked", false); 1635 } 1636 1637 $(this).parent().parent().find(".misc_chk").trigger("click"); 1638 return false; 1639 }); 1640 1641 $("body").on("click",".miscfileds .misc_chk",function(){ 1642 1643 var checkedCount = $(".miscfileds .misc_chk:checked").length; 1644 var sameFieldCheckedCount = $(this).closest(".misc_section").find(".misc_chk:checked").not(this).length; 1645 1646 if (sameFieldCheckedCount >= 2) { 1647 alert("You can only select up to 2 options per field"); 1648 $(this).prop("checked", false); 1649 } else if (checkedCount > 4 && sameFieldCheckedCount == 0) { 1650 alert("ðéúï ìáçåø òã 4 îàôééðéí"); 1651 $(this).prop("checked", false); 1652 } else { 1653 location.href = $(this).val(); 1654 } 1655 1656 1657 }); 1658 1659 dependonwidget(); 1660 1661 1662 dynamicStickyCart(); 1663 $("body").on( "submit" , ".NewsLatterFrm", function() 1664 { 1665 var form = $(this) ; 1666 if ( $(this).find("input[name='FirstName']").length ) 1667 { 1668 if ( $(this).find("input[name='FirstName']").val() == "" ) 1669 { 1670 alert("äëðñ ùí îìà"); 1671 $(this).find("input[name='FirstName']").focus(); 1672 return false; 1673 } 1674 } 1675 1676 var emailInput = $(this).find("input[name='Email']"); 1677 var email = $.trim(emailInput.val()); 1678 var emailPlaceholder = emailInput.attr("placeholder") || ""; 1679 if (email === emailPlaceholder) email = ""; 1680 if (email != "") 1681 { 1682 var i=email.indexOf("@"); 1683 var i2=email.indexOf("@",i+1); 1684 var j=email.indexOf(".",i); 1685 var k=email.indexOf(","); 1686 var kk=email.indexOf(" "); 1687 var jj=email.lastIndexOf(".") + 1; 1688 var leng = email.length; 1689 if ((i>0)&&(j>(i+1))&&(k==-1)&&(kk==-1)&&(leng-jj >= 2)&&(leng-jj <= 3)&&(i2==-1)) 1690 { 1691 1692 } 1693 else 1694 { 1695 alert("ëúåáú äîééì ùâåéä"); 1696 emailInput.focus(); 1697 return false; 1698 } 1699 } 1700 else 1701 { 1702 alert("ëúåáú äîééì ùâåéä"); 1703 emailInput.focus(); 1704 return false; 1705 } 1706 1707 if ( $(this).find("input[name='agreetoterms']").length ) 1708 { 1709 if ( $(this).find("input[name='agreetoterms']").is(":checked") == false ) 1710 { 1711 $(this).find("input[name='agreetoterms']").focus(); 1712 alert("àðà äñëí ìú÷ðåï äàúø"); 1713 return false; 1714 } 1715 } 1716 1717 1718 if ( $(this).find("input[name='privacy']").is(":checked") == false ) 1719 { 1720 $(this).find("input[name='privacy']").focus(); 1721 alert("éù ìñîï àú äúéáä ëãé ìàùø àú äúðàéí åäîãéðéåú."); 1722 return false; 1723 } 1724 1725 1726 $.post('/siteservices.asp?service=addtonewsletter', $(form).serialize(), function(data) 1727 { 1728 1729 data = data + '|||'; 1730 data = data.split("|"); 1731 if (data[0]=="1") 1732 { 1733 $(form).parent().html('<div class=\'success alert alert-success\'>'+data[1]+'</div>'); 1734 $(form).html(""); 1735 } 1736 else 1737 { 1738 $(form).find(".status").addClass("error alert alert-danger"); 1739 $(form).find(".status").html(data[1]); 1740 } 1741 return false; 1742 } ); 1743 1744 return false 1745 }); 1746 1747 1748 1749 $.extend($.validator.messages, 1750 { 1751 required: "ùãä æä äéðå çåáä", 1752 remote: "àðà ú÷ï ùãä æä.", 1753 email: "àðà äëðñ ëúåáú îééì ú÷éðä.", 1754 url: "àðà äëðñ ëúåáú URL ú÷éðä.", 1755 date: "àðà äëðñ úàøéê ðëåï.", 1756 dateISO: "äëðñ îéãò ðëåï.", 1757 number: "àðà äëðñ îñôø ú÷éï.", 1758 digits: "àðà äëðñ ø÷ ñôøåú.", 1759 creditcard: "äëðñ îñôø ëøèéñ àùøàé ú÷éï.", 1760 equalTo: "äëðñ ùåá àú àåúå äòøê.", 1761 maxlength: $.validator.format("ìà ðéúï ìäëðéñ éåúø î {0} úååéí."), 1762 minlength: $.validator.format("àðà äëðñ ìôçåú {0} úååéí."), 1763 rangelength: $.validator.format("àðà äëðñ òøê áéï {0} ì {1} úååéí."), 1764 range: $.validator.format("àðà äëðñ òøê áéï {0} ì {1} úååéí."), 1765 max: $.validator.format("{àðà äëðñ òøê ôçåú àå ùååä ì {0"), 1766 min: $.validator.format("{àðà äëðñ òøê âãåì àå ùååä ì {0") 1767 }); 1768 1769 dynamicform(); 1770 1771 1772 1773 1774 widget_form(); 1775 1776 $("body").on("click",".lightpopup.html",function() 1777 { 1778 var lightpopup_id = $(this).attr("lightpopup_id") ; 1779 var lightpopup_class = $(this).attr("lightpopup_class") ; 1780 var lightpopup_html = $('#'+lightpopup_id).html(); 1781 lightpopup(lightpopup_html , lightpopup_class); 1782 return false; 1783 }); 1784 1785 $("body").on("click","#image_mobile_enlarge",function() 1786 { 1787 1788 if ( $("#enlargeIcon a").length ) 1789 { 1790 $("#enlargeIcon a").trigger("click"); 1791 } 1792 else 1793 { 1794 var lightpopup_id = $(this).attr("lightpopup_id") ; 1795 var lightpopup_class = $(this).attr("lightpopup_class") ; 1796 var lightpopup_html = $('#'+lightpopup_id).html(); 1797 lightpopup(lightpopup_html , lightpopup_class); 1798 var image_src = $('.'+lightpopup_class).find("img").attr("src"); 1799 var image_src = image_src.replace("_large", ""); 1800 $('.'+lightpopup_class).find("img").attr("src",image_src); 1801 } 1802 1803 return false; 1804 1805 }); 1806 1807 $("body").on("click",".lightpopup.iframe",function(){ 1808 lightpopup("<iframe scrolling='no' frameborder='0' width='100%' src="+$(this).attr("href")+">" , $(this).attr("lightpopup_class") ); 1809 return false; 1810 }); 1811 1812 $("body").on("click",".user_connect .switchregister",function(){ 1813 $(".user_connect #user_login_div").hide(); 1814 $(".user_connect #user_account_recovery").hide(); 1815 $(".user_connect .user_account_recovery").hide(); 1816 $(".user_connect #user_account_register").show(); 1817 }); 1818 1819 1820 $("body").on("click",".account_verification_new_number",function(){ 1821 var $section = $(this).parents(".user_phone_login_container"); 1822 $section.find(".user_phone_login_div").show(); 1823 $section.find(".account_verification_div").hide(); 1824 }); 1825 1826 $("body").on("click",".user_connect .switchpassword",function(){ 1827 $(".user_connect #user_login_div").hide(); 1828 $(".user_connect #user_account_recovery").show(); 1829 $(".user_connect .user_account_recovery").show(); 1830 }); 1831 1832 $("body").on("click",".account_verification_resend_number",function(){ 1833 var $section = $(this).parents(".user_phone_login_container"); 1834 $section.find(".messagediv").html(""); 1835 $section.find(".user_phone_login_form").submit(); 1836 }); 1837 1838 $("body").on("click",".switchlogin",function(){ 1839 $(".user_connect #user_login_div").show(); 1840 $(".user_connect #user_account_recovery").hide(); 1841 $(".user_connect .user_account_recovery").hide(); 1842 1843 $(".user_account_recovery").hide(); 1844 $(".user_phone_login_container").show(); 1845 }); 1846 1847 $("body").on("click",".user_phone_login_switchpassword",function(){ 1848 1849 var $section = $(this).parents(".user_phone_login_container").parent(); 1850 $section.find(".user_phone_login_container").hide(); 1851 $section.find(".user_account_recovery").show(); 1852 }); 1853 1854 $('form[name="SearchFrm"]').submit(function( event ) 1855 { 1856 if (cookieconsent == true) { 1857 1858 } 1859 }); 1860 1861 $('#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'}); 1862$jScroller.add('.jcroller ','.jcroller .spaciels-wrap','up',1,true);$jScroller.start(); 1863$('#footer .manufactores ul').jcarousel({ }); 1864 1865 1866 if( $(window).width() < 1100 ) 1867 { 1868 $("#scroll-all").hide(); 1869 $("#floating-icons .icons-box").hide(); 1870 $("#floating-icons .icons-box.accessibility").show(); 1871 } 1872 else 1873 { 1874 $("#scroll-all").show(); 1875 $("#floating-icons .icons-box").show(); 1876 } 1877 1878 1879 1880 $(window).resize(function() 1881 { 1882 1883 if( $(window).width() < 1100 ) 1884 { 1885 $("#scroll-all").hide(); 1886 $("#floating-icons .icons-box").hide(); 1887 $("#floating-icons .icons-box.accessibility").show(); 1888 } 1889 else 1890 { 1891 $("#scroll-all").show(); 1892 $("#floating-icons .icons-box").show(); 1893 } 1894 }); 1895 1896 scrollerrows() 1897 $("#scroll-full").click(function(){ 1898 $("html,body").animate({ scrollTop:0}); 1899 }); 1900 $("#scroll-bottom").click(function(){ 1901 $("html,body").animate({ scrollTop:20000}); 1902 }); 1903 1904 1905 1906 1907 $("body").on("change",".productbox_sons_select select",function() 1908 { 1909 $(this).parents("li").find(".product-box-prices .priceholder").html($('option:selected', this).attr('price')); 1910 1911 if ( $('option:selected', this).attr('regprice') != "0" ) 1912 { 1913 $(this).parents("li").find(".product-box-prices .reg-price .value span").html($('option:selected', this).attr('regprice')); 1914 } 1915 }); 1916 1917 $("body").on("change",".productbox_product_son .prs_radio select",function() 1918 { 1919 1920 1921 if ( $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html() != $(this).parent("p").text() ) 1922 { 1923 $(this).parents(".productbox_product_son").find("input[name=quantity]").val("0"); 1924 } 1925 1926 1927 $(this).parents(".productbox_product_son").find(".prs_prices .price .value").html( $('option:selected', this).attr('price') ) ; 1928 1929 if ($('option:selected', this).attr('regprice') != "0") 1930 { 1931 $(this).parents(".productbox_product_son").find(".prs_prices .regprice .value").html($('option:selected', this).attr('regprice')); 1932 } 1933 1934 $(this).parents(".productbox_product_son").find(".price_unit_line .quantity_base").html( $('option:selected', this).attr("quan_base") ); 1935 $(this).parents(".productbox_product_son").find(".price_unit_line .dimension").html( $('option:selected', this).attr("dimensionname") ); 1936 $(this).parents(".productbox_product_son").find(".price_unit_line .unit_price .value").html( $('option:selected', this).attr("price") ); 1937 $(this).parents(".productbox_product_son").find(".size").html( $('option:selected', this).attr("dimensionname") ); 1938 1939 1940 1941 1942 if ( $('option:selected', this).attr('regprice') != '0' ) 1943 { 1944 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").show(); 1945 } 1946 else 1947 { 1948 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").hide(); 1949 } 1950 $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html( $(this).parent("p").text()) 1951 1952 }); 1953 1954 $("body").on("click",".productbox_product_son .prs_radio .product_son",function() 1955 { 1956 1957 1958 $(this).parents(".boxItem ").find(".sale-price .priceholder").html( $(this).attr("price
1958") ); 1959 1960 if ( $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html() != $(this).parent("p").text() ) 1961 { 1962 $(this).parents(".productbox_product_son").find("input[name=quantity]").val("0"); 1963 } 1964 1965 $(this).parents(".productbox_product_son").find(".prs_prices .price .value").html( $(this).attr("price")); 1966 $(this).parents(".productbox_product_son").find(".prs_prices .regprice .value").html( $(this).attr("regprice")); 1967 $(this).parents(".productbox_product_son").find(".price_unit_line .quantity_base").html( $(this).attr("quan_base") ); 1968 $(this).parents(".productbox_product_son").find(".price_unit_line .dimension").html( $(this).attr("dimensionname") ); 1969 $(this).parents(".productbox_product_son").find(".price_unit_line .unit_price .value").html( $(this).attr("price") ); 1970 $(this).parents(".productbox_product_son").find(".size").html( $(this).attr("dimensionname") ); 1971 1972 if ( $(this).attr("regprice") != '0' && $(this).attr("regprice") != $(this).attr("price") ) 1973 { 1974 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").show(); 1975 } 1976 else 1977 { 1978 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").hide(); 1979 } 1980 1981 1982 $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html( $(this).parent("p").text() ) 1983 1984 }); 1985 1986 1987 1988 1989 let debounceTimer; 1990 1991 $("body").on("keyup", ".productbox_product_son .prs_buttons input", function (e) { 1992 // Allow only numeric input by removing any non-numeric characters 1993 const inputVal = $(this).val(); 1994 if (!/^\d*$/.test(inputVal)) { 1995 $(this).val(inputVal.replace(/\D/g, "")); // Replace non-numeric characters 1996 return; 1997 } 1998 1999 // Debounce to reduce the frequency of AJAX requests on typing 2000 clearTimeout(debounceTimer); 2001 debounceTimer = setTimeout(() => { 2002 const $parent = $(this).parents(".productbox_product_son"); 2003 const itemident = $parent.attr("itemident"); 2004 2005 let objid; 2006 if ($parent.find("select").length) { 2007 objid = $parent.find("select").val(); 2008 } else { 2009 objid = $parent.find("input:checked").val(); 2010 if (typeof objid === "undefined") { 2011 $parent.find("input").prop("checked", true); 2012 objid = $parent.find("input:checked").val(); 2013 } 2014 } 2015 2016 // Make AJAX request 2017 $.get('/siteservices.asp?service=productbox_addproductson¶ms=' + objid + '|' + $(this).val() + '|' + itemident, function (data) { 2018 const [status, message] = data.split("|"); 2019 2020 if (status === "1") { 2021 Ajax_updateCartInfo(); 2022 } else if (message) { 2023 alert(message); 2024 } 2025 }); 2026 }, 300); // Wait 300ms after the last keyup 2027 }); 2028 2029 2030 2031 2032 /* 2033 $("body").on("keyup",".productbox_product_son .prs_buttons input",function(e){
2034 if(e.keyCode == 13) 2035 { 2036 var itemident = $(this).parents(".productbox_product_son").attr("itemident") ; 2037 2038 if ( $(this).parents(".productbox_product_son").find("select").length ) 2039 { 2040 var objid = $(this).parents(".productbox_product_son").find("select").val(); 2041 } 2042 else 2043 { 2044 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2045 if ( typeof objid == "undefined" ) 2046 { 2047 $(this).parents(".productbox_product_son").find("input").prop("checked", true); 2048 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2049 } 2050 } 2051 2052 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+$(this).val()+'|'+itemident, function(data) 2053 { 2054 var answer_array = data.split("|"); 2055 var status = answer_array[0]; 2056 var message = answer_array[1]; 2057 2058 if (status == "1") 2059 { 2060 Ajax_updateCartInfo(); 2061 } 2062 else 2063 { 2064 if ( message != "" ) 2065 { 2066 alert ( message ) ; 2067 } 2068 } 2069 }) 2070 2071 } 2072 }); 2073 */ 2074 2075 $("body").on("click",".productbox_product_son_links .product_son_link",function(){ 2076 if ( $(this).hasClass("switch_image") ) 2077 { 2078 var bigimage = $(this).attr("bigimage"); 2079 2080 $(this).parents(".boxItem").find(".image img").attr("src", bigimage ) ; 2081 } 2082 2083 $(this).parent().find(".product_son_link").each(function(){ 2084 $(this).removeClass("current"); 2085 }); 2086 $(this).addClass("current"); 2087 2088 if (cookieconsent == true) { 2089 2090 2091 } 2092 2093 2094 2095 var Num_After_dot = "2"; 2096 var temp_dropDecimals = 0; 2097 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2098 { 2099 temp_dropDecimals = 2; 2100 } 2101 2102 var pricespanid = $(this).parents("li").find(".priceholder"); 2103 var newtotal = $(this).attr("price")*1; 2104 $("#"+pricespanid).attr("price",newtotal.toFixed(Num_After_dot)).formatCurrency( 2105 { 2106 groupDigits: true , symbol: '', 2107 roundToDecimalPlace: temp_dropDecimals 2108 }); 2109 change_product_box_total(pricespanid); 2110 return false; 2111 }); 2112 // product son dynamic start 2113 $(".productbox_product_son_dynamic .dinamicitemsons .its_add_btn").click(function() 2114 { 2115 2116 var obj = $(this).parents(".its_information"); 2117 if ( obj.find(".its_itemid span").length > 0 ) 2118 { 2119 2120 return addme_cart( obj.find(".its_itemid span").html(), 0, obj.find(".its_quantity").val() ); 2121 return false; 2122 2123 } 2124 else 2125 { 2126 /* 2127 $(".productbox_product_son_dynamic .dinamicitemsons .box").each(function() 2128 { 2129 if ( $(this).find(".misc.image.current").length == 0 ) 2130 { 2131 var dinamicitemsons_label = $(this).find("h3").text(); 2132 alert(dinamicitemsons_label ); 2133 return false; 2134 } 2135 if ( $(this).find("select").val() == "" ) 2136 { 2137 var dinamicitemsons_label = $(this).find("h3").text(); 2138 alert(dinamicitemsons_label ); 2139 return false; 2140 } 2141 }); 2142 */ 2143 2144 alert("áçø îàôééï"); 2145 return false; 2146 } 2147 }); 2148 2149 2150 $("body").on("click",".productbox_product_son_dynamic .dinamicitemsons a.misc",function() 2151 { 2152 2153 $(this).parent('.box').find('.currentselect').html($(this).attr("miscOptionValue")); 2154 $(this).parent('.box').find('.misc').removeClass('current'); 2155 $(this).addClass('current'); 2156 var miscOptionId = ''; 2157 2158 $(this).parents(".dinamicitemsons").find('a.misc.current').each(function() 2159 { 2160 miscOptionId = miscOptionId + $(this).attr("miscOptionId") + '~'; 2161 }); 2162 2163 $(this).parents(".dinamicitemsons").find('select.misc.current').each(function() 2164 { 2165 var tempoptionid = $('option:selected', this).attr('miscOptionId'); 2166 miscOptionId = miscOptionId + tempoptionid + '~'; 2167 }); 2168 var obj = $(this).parents(".dinamicitemsons").find(".its_information"); 2169 dynamicproductscall (obj,miscOptionId); 2170 return false; 2171 }); 2172 2173 $("body").on("change",".productbox_product_son_dynamic .dinamicitemsons select.misc",function() 2174 { 2175 2176 $(this).parent('.box').find('.currentselect').html( $(this).val() ); 2177 $(this).parent('.box').find('.misc').removeClass('current'); 2178 2179 if ( $(this).val() != "" ) 2180 { 2181 $(this).addClass('current'); 2182 2183 } 2184 var miscOptionId = ''; 2185 $(this).parents(".dinamicitemsons").find('a.misc.current').each(function() 2186 { miscOptionId = miscOptionId + $(this).attr("miscOptionId") + '~'; 2187 }); 2188 2189 2190 $(this).parents(".dinamicitemsons").find('select.misc.current').each(function() 2191 { 2192 var tempoptionid = $('option:selected', this).attr('miscOptionId'); 2193 miscOptionId = miscOptionId + tempoptionid + '~'; 2194 }); 2195 2196 var obj = $(this).parents(".dinamicitemsons").find(".its_information"); 2197 dynamicproductscall (obj,miscOptionId); 2198 return false; 2199 }); 2200 // product son dynamic end 2201 2202 2203 2204 2205 2206 2207 2208 2209 $("body").on("click",".productbox_product_son_links .add-to-cart",function() 2210 { 2211 if ($(this).parent().find(".product_son_link.current").length > 0 ) 2212 { 2213 var pid = $(this).parent().find(".product_son_link.current").attr("itemid"); 2214 var allow = $(this).parent().find(".product_son_link.current").attr("allow"); 2215 if (allow == "0") 2216 { 2217 2218 if (cookieconsent == true) { 2219 2220 2221 2222 } 2223 2224 alert("äîåöø àéðå áîìàé") 2225 return false; 2226 } 2227 var quan = $(this).parents("li").find("input[name=quantity]").val(); 2228 if(!$.isNumeric(quan)){quan = 1;} 2229 addme_cart(pid, quan , '', '', '', '', '',$(this)); 2230 2231 } 2232 else 2233 { 2234 alert("áçø îéãä åäåñó ìñì"); 2235 return false; 2236 } 2237 return false; 2238 2239 }); 2240 2241 $("body").on("click",".product_box_quantity a",function() 2242 { 2243 var obj = this; 2244 2245 $(this).parent("div").find("input").each(function() 2246 { 2247 2248 var quan_multiply = 1; 2249 if ( $(this).parents(".boxItem").attr("quan_multiply") != "" ) 2250 { 2251 quan_multiply = $(this).parents(".boxItem").attr("quan_multiply"); 2252 } 2253 var quan_base = 1; 2254 if ( $(this).parents(".boxItem").attr("quan_base") != "" ) 2255 { 2256 quan_base = $(this).parents(".boxItem").attr("quan_base"); 2257 } 2258 2259 2260 if ( $(obj).hasClass("minus") ) 2261 { 2262 if ($(this).val() > 1) 2263 { 2264 2265 var newquantity = ( $(this).val() - quan_multiply * 1)*1 ; 2266 if( newquantity % 1 != 0 ) 2267 { 2268 2269 $(this).val( newquantity ); 2270 2271 2272 } 2273 else 2274 { 2275 if ( newquantity < 0 ) { newquantity = 0; } 2276 $(this).val( newquantity ); 2277 } 2278 2279 } 2280 else 2281 { 2282 $(this).val(quan_base); 2283 } 2284 } 2285 else 2286 { 2287 var newquantity = ($(this).val()*1) + (quan_multiply*1) ; 2288 2289 if ( $(this).val() == 1 && quan_multiply > 1 ) { 2290 newquantity = $(this).val() * 1 + (quan_multiply * 1) - 1; 2291 } 2292 2293 if( newquantity % 1 != 0 ) 2294 { 2295 2296 $(this).val( newquantity ); 2297 2298 } 2299 else 2300 { 2301 $(this).val( newquantity ); 2302 } 2303 2304 } 2305 }); 2306 2307 var pricespanid = $(this).parents("li").find(".priceholder"); 2308 change_product_box_total(pricespanid); 2309 return false; 2310 }); 2311 2312 2313 2314 var clickTimeout; 2315 $("body").on("click",".productbox_product_son .prs_buttons a",function() 2316 { 2317 clearTimeout(clickTimeout); 2318 2319 var obj = this ; 2320 var quan_multiply = 1; 2321 var quan_base = 1; 2322 var quan_min = 1; 2323 2324 // Find the current boxItem and productbox_product_son to scope all operations 2325 var currentBoxItem = $(this).closest(".boxItem"); 2326 var currentProductBox = $(this).closest(".productbox_product_son"); 2327 2328 var obj_itemident = currentBoxItem.attr("itemident"); 2329 var property = ""; 2330 2331 if ( currentBoxItem.find(".required-properties").length ) 2332 { 2333 var properties_selected = "1"; 2334 currentBoxItem.find(".required-properties").each(function(){ 2335 if ( $(this).val() == "" ) 2336 { 2337 $(this).focus(); 2338 alert ( $(this).find("option:first-child").text() ); 2339 properties_selected = "0"; 2340 } 2341 else 2342 { 2343 // var ProperyId = currentBoxItem.find() 2344 property = property + currentBoxItem.find("#prop_id_hid_"+obj_itemident).val() + "@" ; 2345 2346 } 2347 }); 2348 2349 if ( properties_selected == "0" ) 2350 { 2351 return false; 2352 } 2353 // property = currentBoxItem.find("#prop_id_hid_"+obj_itemident).val(); 2354 // property = property + currentBoxItem.find("#prop_id_hid_"+obj_itemident).val() + "@" ; 2355 2356 } 2357 2358 if ( currentProductBox.find("select").length ) 2359 { 2360 var objid = currentProductBox.find("select").val(); 2361 quan_multiply = $('option:selected', currentProductBox.find("select") ).attr('quan_multiply'); 2362 quan_base = $('option:selected', currentProductBox.find("select") ).attr('quan_base'); 2363 quan
2363_min = $('option:selected', currentProductBox.find("select") ).attr('quan_min'); 2364 } 2365 else 2366 { 2367 var objid = currentProductBox.find("input:checked").val(); 2368 2369 if ( typeof objid == "undefined" ) 2370 { 2371 currentProductBox.find("input").eq(1).prop("checked", true); 2372 var objid = currentProductBox.find("input:checked").val(); 2373 } 2374 if ( typeof objid == "undefined" ) 2375 { 2376 currentProductBox.find("input").eq(0).prop("checked", true); 2377 var objid = currentProductBox.find("input:checked").val(); 2378 } 2379 2380 quan_multiply = currentProductBox.find("input:checked").attr('quan_multiply'); 2381 quan_base = currentProductBox.find("input:checked").attr('quan_base'); 2382 quan_min = currentProductBox.find("input:checked").attr('quan_min'); 2383 } 2384 2385 var itemident = currentProductBox.attr("itemident") ; 2386 var objaction = "" 2387 2388 $(this).parent("div").find("input").each(function() 2389 { 2390 if ( $(obj).hasClass("minus") ) 2391 { 2392 if ($(this).val() > 0) 2393 { 2394 var quantity_calc = ($(this).val() - quan_multiply * 1) * 1; 2395 // console.log( quantity_calc ); 2396 //if ( quantity_calc < quan_min ) { quantity_calc = quan_min*1 ; } 2397 if ( quantity_calc < quan_min ) { quantity_calc = 0 ; } 2398 2399 $(this).val(quantity_calc); 2400 2401 } 2402 else 2403 { 2404 $(this).val("0"); 2405 } 2406 } 2407 else 2408 { 2409 var quantity_calc = ($(this).val() * 1) + (quan_multiply * 1); 2410 if ( quantity_calc < quan_min ) { quantity_calc = quan_min*1 ; } 2411 2412 $(this).val(quantity_calc); 2413 2414 } 2415 }); 2416 2417 var quantity = $(obj).parent("div").find("input").val(); 2418 2419 2420 2421 2422 // update price 2423 var Num_After_dot = "2"; 2424 var temp_dropDecimals = 0; 2425 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2426 { 2427 temp_dropDecimals = 2; 2428 } 2429 2430 if(!$.isNumeric(quan_base)){quan_base = 1;} 2431 if(!$.isNumeric(quantity)){quantity = 1;} 2432 2433 2434 2435 var priceAttr = currentProductBox.find("input:checked").attr("price"); 2436 2437 if (priceAttr !== undefined && priceAttr !== "") { 2438 if (!isNaN(quantity) && quantity !== 0 && quan_base !== 0) { 2439 priceAttr = priceAttr.replace(/,/g, ''); 2440 newtotal = priceAttr * quantity / quan_base; 2441 2442 } 2443 } 2444 2445 2446 // var newtotal = currentProductBox.find("input:checked").attr("price")*quantity/quan_base; 2447 2448 if ( currentProductBox.find("select").length ) 2449 { 2450 2451 var currentselect = currentProductBox.find("select"); 2452 newtotal = $('option:selected',currentselect).attr('price') * quantity / quan_base; 2453 2454 } 2455 2456 if (newtotal <= 0 ) 2457 { 2458 2459 newtotal = currentProductBox.find(".son_saleprice").attr("price")*1; 2460 } 2461 2462 2463 2464 2465 2466 if (newtotal !== undefined && newtotal.length > 0) { 2467 newtotal = newtotal.replace(/,/g, ''); 2468 2469 } 2470 2471 2472 2473 2474 2475 currentProductBox.find(".son_saleprice").html(newtotal.toFixed(Num_After_dot)).formatCurrency({ 2476 groupDigits: true , symbol: '', 2477 roundToDecimalPlace: temp_dropDecimals 2478 }); 2479 2480 2481 if ( currentProductBox.find(".son_regprice").attr("price") != "" ) 2482 { 2483 2484 var newregtotal = 0; 2485 2486 2487 var regPriceAttr = currentProductBox.find("input:checked").attr("regprice"); 2488 if (regPriceAttr !== undefined && regPriceAttr.length > 0) { 2489 2490 regPriceAttr = regPriceAttr.replace(/,/g, ''); 2491 newregtotal = regPriceAttr*quantity/quan_base; 2492 2493 } 2494 2495 2496 if (newregtotal <= 0 ) 2497 { 2498 newregtotal = currentProductBox.find(".son_regprice").attr("price")*1; 2499 2500 } 2501 2502 2503 2504 2505 currentProductBox.find(".son_regprice").html(newregtotal.toFixed(Num_After_dot)).formatCurrency({ 2506 groupDigits: true , symbol: '', 2507 roundToDecimalPlace: temp_dropDecimals 2508 }); 2509 2510 2511 2512 2513 } 2514 2515 2516 if ( currentProductBox.find("input:checked").is("[dimension_unitweight]") ) 2517 { 2518 //property = "@-9997{=}{addtext} " + quantity + " éçé'"; 2519 2520 //quantity = quantity * currentProductBox.find("input:checked").attr("dimension_unitweight"); 2521 2522 } 2523
2524 if ( currentBoxItem.find(".item-comment textarea") ) 2525 { 2526 if ( currentBoxItem.find(".item-comment textarea").length ) 2527 { 2528 property = property + "@-9997{=}{addtext}" + encodeEmojis(currentBoxItem.find(".item-comment textarea").val()) ; 2529 } 2530 } 2531 2532 var dimension_type = "0"; 2533 if ( currentProductBox.find("input:checked").length ) 2534 { 2535 dimension_type = currentProductBox.find("input:checked").attr("dimension"); 2536 } 2537 2538 if ( currentProductBox.find("select").length ) 2539 { 2540 var currentselect = currentProductBox.find("select"); 2541 dimension_type = $('option:selected',currentselect).attr("dimension"); 2542 } 2543 2544 if ( $(this).hasClass("withoutcart") ) 2545 { 2546 2547 } 2548 else 2549 { 2550 2551 2552 clickTimeout = setTimeout(function(){ 2553 2554 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+quantity+'|'+itemident + '|' + property + '|' + dimension_type , function(data) 2555 { 2556 var answer_array = data.split("|"); 2557 var status = answer_array[0]; 2558 var message = answer_array[1]; 2559 2560 if (status == "1") 2561 { 2562 2563 2564 Ajax_updateCartInfo(); 2565 } 2566 else 2567 { 2568 if ( message != "" ) 2569 { 2570 alert ( message ) ; 2571 } 2572 } 2573 }) 2574 2575 }, 1000); 2576 2577 2578 } 2579 2580 return false; 2581 2582 2583 2584 2585 }); 2586 2587 2588 2589 2590 2591 2592 2593 $("body").on("click",".productbox_product_son .addtocart",function() 2594 { 2595 var obj = this ; 2596 var quan_multiply = 1; 2597 var quan_base = 1; 2598 2599 if ( $(this).parents(".productbox_product_son").find("select").length ) 2600 { 2601 var objid = $(this).parents(".productbox_product_son").find("select").val(); 2602 quan_multiply = $('option:selected', $(this).parents(".productbox_product_son").find("select") ).attr('quan_multiply'); 2603 quan_base = $('option:selected', $(this).parents(".productbox_product_son").find("select") ).attr('quan_base'); 2604 } 2605 else 2606 { 2607 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2608 2609 if ( typeof objid == "undefined" ) 2610 { 2611 $(this).parents(".productbox_product_son").find("input").eq(1).prop("checked", true); 2612 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2613 } 2614 if ( typeof objid == "undefined" ) 2615 { 2616 $(this).parents(".productbox_product_son").find("input").eq(0).prop("checked", true); 2617 var objid = $(this).parents(".productbox_product_son").find("input:checked").val(); 2618 } 2619 2620 quan_multiply = $(this).parents(".productbox_product_son").find("input:checked").attr('quan_multiply'); 2621 quan_base = $(this).parents(".productbox_product_son").find("input:checked").attr('quan_base'); 2622 } 2623 2624 var itemident = $(this).parents(".productbox_product_son").attr("itemident") ; 2625 var objaction = "" 2626 2627 2628 var quantity = $(this).parents(".productbox_product_son").find("input[name='quantity']").val(); 2629 2630 // update price 2631 var Num_After_dot = "2"; 2632 var temp_dropDecimals = 0; 2633 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2634 { 2635 temp_dropDecimals = 2; 2636 } 2637 2638 if(!$.isNumeric(quan_base)){quan_base = 1;} 2639 if(!$.isNumeric(quantity)){quantity = 1;} 2640 2641 var newtotal = $(this).parents(".productbox_product_son").find("input:checked").attr("price")*quantity/quan_base; 2642 if ( $(this).parents(".productbox_product_son").find("select").length ) 2643 { 2644 var currentselect = $(this).parents(".productbox_product_son").find("select"); 2645 newtotal = $('option:selected',currentselect).attr('price') * quantity / quan_base; 2646 } 2647 2648 if (newtotal <= 0 ) 2649 { 2650 newtotal = $(this).parents(".productbox_product_son").find(".son_saleprice").attr("price")*1; 2651 } 2652 2653 2654 2655 if ( $(this).parents(".productbox_product_son").find(".son_regprice").attr("price") != "" ) 2656 { 2657 var newregtotal = ""; 2658 newregtotal = $(this).parents(".productbox_product_son").find("input:checked").attr("regprice")*quantity/quan_base; 2659 if (newregtotal <= 0 ) 2660 { 2661 newregtotal = $(this).parents(".productbox_product_son").find(".son_regprice").attr("price")*1; 2662 } 2663 2664 2665 } 2666 2667 var property = ""; 2668 var dimension_type = "0"; 2669 if ( $(this).parents(".productbox_product_son").find("input:checked").length ) 2670 { 2671 dimension_type = $(this).parents(".productbox_product_son").find("input:checked").attr("dimension"); 2672 } 2673 2674 if ( $(this).parents(".productbox_product_son").find("select").length ) 2675 { 2676 var currentselect = $(this).parents(".productbox_product_son").find("select"); 2677 dimension_type = $('option:selected',currentselect).attr('dimension'); 2678 } 2679 2680 if ( $(this).parents(".productbox_product_son").find("input:checked").is("[dimension_unitweight]") ) 2681 { 2682 //property = "-9997{=}{addtext} " + quantity + " éçé'"; 2683 // quantity = quantity * $(this).parents(".productbox_product_son").find("input:checked").attr("dimension_unitweight"); 2684 } 2685 2686 2687 2688 2689 2690 if ( $(this).parents(".boxItem").find(".item-comment textarea") ) 2691 { 2692 if ( $(this).parents(".boxItem").find(".item-comment textarea").length ) 2693 { 2694 property = property + "@-9997{=}{addtext}" + encodeEmojis($(this).parents(".boxItem").find(".item-comment textarea").val()) ; 2695 } 2696 } 2697 2698 2699 2700 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+quantity+'|'+itemident + '|' + property + '|' + dimension_type , function(data) 2701 { 2702 2703 var answer_array = data.split("|"); 2704 var status = answer_array[0]; 2705 var message = answer_array[1]; 2706 2707 if (status == "1") 2708 { 2709 Ajax_updateCartInfo(); 2710 } 2711 else 2712 { 2713 if ( message != "" ) 2714 { 2715 alert ( message ) ; 2716 } 2717 } 2718 2719 2720 }) 2721 2722 2723 return false; 2724 2725 }); 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 $("body").on("click",".productbox_product_son_items .buttons a",function() 2743 { 2744 var obj = this ; 2745 var objid = $(this).parents("li").find(".product_son_item").attr("itemid"); 2746 var itemident = $(this).parents("li").find(".product_son_item").attr("itemident"); 2747 var objaction = "" 2748 2749 $(this).parent("div").find("input").each(function() 2750 { 2751 2752 if ( $(obj).hasClass("minus") ) 2753 { 2754 if ($(this).val() > 0) 2755 { 2756 var quantity_calc = ($(this).val() - 1) * 1; 2757 2758 $(this).val(quantity_calc); 2759 2760 2761 } 2762 2763 } 2764 else 2765 { 2766 var quantity_calc = ($(this).val() * 1) + (1);
2767 2768 2769 $(this).val(quantity_calc); 2770 2771 2772 } 2773 }) 2774 2775 var quantity = $(obj).parent("div").find("input").val(); 2776 2777 $.get('/siteservices.asp?service=productbox_addproductson¶ms='+objid+'|'+quantity+'|'+itemident, function(data) 2778 { 2779 var answer_array = data.split("|"); 2780 var status = answer_array[0]; 2781 var message = answer_array[1]; 2782 2783 if (status == "1") 2784 { 2785 Ajax_updateCartInfo(); 2786 } 2787 else 2788 { 2789 if ( message != "" ) 2790 { 2791 alert ( message ) ; 2792 } 2793 } 2794 }) 2795 return false; 2796 }); 2797 2798 2799 2800 $("body").on("click","#mobile_minicart .delete a",function() 2801 { 2802 obj = $(this).attr("cartitemid") ; 2803 $.get('/services/cartservices.asp?service=deletefromcart¶ms='+obj, function(data) 2804 { 2805 2806 RenderAllCarts(1); 2807 }) 2808 return false; 2809 }); 2810 2811 $("body").on("click","#mobile_header .header_smallcart",function() 2812 { 2813 2814 if ($("#mobile_header #minicarttotalquantity").length ) 2815 {} 2816 else 2817 { 2818 2819 //Ajax_updateCartInfo(); 2820 RenderAllCarts(); 2821 } 2822 2823 2824 2825 if( $(".mobile_search_form").is(":visible")) 2826 { 2827 $(".mobile_search_form").slideUp('fast'); 2828 } 2829 2830 if( $(".mobile_menu").is(':visible')) 2831 { 2832 $(".mobile_menu").slideUp('fast'); 2833 } 2834 2835 if ($("#SlidingCart").length && $("#SlidingCart").is(":visible")) { 2836 2837 $("#SlidingCart").attr("style", "left:0px !important;"); 2838 2839 // Detect clicks anywhere on the page 2840 $(document).on("click", function (event) { 2841 2842 // Check if the clicked element is NOT #SlidingCart or its desce
2842ndants 2843 2844 if (!$(event.target).closest("#SlidingCart").length) { 2845 // If clicked outside, update the style of #SlidingCart 2846 $("#SlidingCart").css("left", "-400px"); 2847 } 2848 2849 }); 2850 2851 } else { 2852 2853 mobile_minicart_toggle("4"); 2854 } 2855 return false; 2856 }); 2857 2858 var miniCarttimer = ""; 2859 var cartClass = ""; 2860 if ( $(".cart_icon_button").length ){ 2861 cartClass = "click"; 2862 } 2863 else{ 2864 cartClass = "mouseenter"; 2865 } 2866 2867 2868 if ( $("#miniCart .toggle-hover").length ) 2869 { 2870 2871 2872 $("body").on( cartClass, "#miniCart", function() 2873 { 2874 clearTimeout(miniCarttimer); 2875 if ($("#miniCart #minicarttotalquantity").length ) 2876 {} 2877 else 2878 { 2879 RenderAllCarts(); 2880 } 2881 2882 if ($("#miniCart .toggle-hover i").length) 2883 { 2884 var icon_obj = $("#miniCart .toggle-hover i"); 2885 var icon_position = $(icon_obj).position(); 2886 var icon_width = $(icon_obj).width(); 2887 var icon_height = $(icon_obj).height(); 2888 2889 var caluclate_top = ((icon_position.top) * 1) + (icon_height*1) * 1 ; 2890 2891 if ($("#miniCart").hasClass("open-left")) 2892 { 2893 $("#minicartdiv").css({ 2894 "top" : caluclate_top + 20 +"px", 2895 "left" :(icon_position.left*1) + (icon_width) - (icon_width/2) - 28 + "px" , 2896 "right": "auto" 2897 }); 2898 } 2899 else{ 2900 2901 $("#minicartdiv").css({ 2902 "top" : caluclate_top + 20 +"px", 2903 2904 "left" : (icon_position.left*1) + (icon_width/2*1) - 520 + "px" , 2905 2906 "right": "auto" 2907 }); 2908 } 2909 2910 } 2911 $("#minicartdiv").show(); 2912 2913 if ( cartClass == "click" ){ 2914 2915 2916 2917 2918 2919 2920 2921 } 2922 2923 if ( cartClass != "click" ) 2924 { 2925 return false; 2926 } 2927 }); 2928 } 2929 2930 2931 $("body").on("mouseleave","#miniCart", function() 2932 { 2933 clearTimeout(miniCarttimer); 2934 miniCarttimer = setTimeout(function() { 2935 $("#minicartdiv").hide(); 2936 }, 1000); 2937 return false; 2938 }); 2939 2940 2941 2942 2943 $("body").on("click","#minicart_continue",function() 2944 { 2945 $("#minicartdiv").hide(); 2946 mobile_minicart_toggle("5"); 2947 2948 return false; 2949 2950 }); 2951 $(".cart_icon_button #minicartdiv a.button-silver.btn.btn-primary").click(function() { 2952 window.location = "/cart.asp"; 2953 }); 2954
2955 mini_userbar_element(); 2956 2957 2958 2959 2960 2961 $("ul.dropdown-menu").supersubs({ 2962 minWidth: 12, 2963 maxWidth: 27, 2964 delay: 0, 2965 speed: 'fast', 2966 speedOut: 'fast', 2967 extraWidth: 1 2968 }).superfish(); 2969 2970 } 2971 ); 2972 2973 function dynamicproductscall (obj,miscOptionId) 2974 { 2975 2976 var itemident = obj.parents(".productbox_product_son_dynamic").attr("itemident") ; 2977 //var colors_images = obj.parents(".productbox_product_son_dynamic.colors_images").attr("itemident") ; 2978 var calculate_tax =1; 2979 $.ajax 2980 ( 2981 { 2982 url: "/Service_product_son_misc.asp?itemident="+itemident+"&miscfields=" + miscOptionId, 2983 success: function(data) 2984 { 2985 2986 if (data == 0) 2987 { 2988 obj.find(".its_itemid").html("ìà ðîöà îåöø äîúàéí ìáçéøúê"); 2989 obj.find(".its_price").html(""); 2990 obj.find(".its_btn").hide(); 2991 obj.find(".its_quan").hide(); 2992 return false; 2993 } 2994 else 2995 { 2996 var Num_After_dot = "2"; 2997 var temp_dropDecimals = 0; 2998 if (Num_After_dot == "1" || Num_After_dot == "2" ) 2999 { 3000 temp_dropDecimals = 2; 3001 } 3002 3003 dataarray = data.split("|") 3004 var its_itemident = dataarray[0]; 3005 var its_itemid = dataarray[1]; 3006 var its_itemprice = dataarray[2]; 3007 var its_quan = dataarray[3]; 3008 var its_image = dataarray[4]; 3009 3010 var its_allowbuyingbyquan = "1"; 3011 3012 if (its_quan > 0 || (its_quan <= 0 && its_allowbuyingbyquan==1) ) 3013 { 3014 3015 if ( its_image != "" ) 3016 { 3017 obj.parents(".boxItem").find(".image img").attr("src",its_image); 3018 } 3019 3020 var its_itemprice = its_itemprice / calculate_tax; 3021 its_itemprice = its_itemprice.toFixed(Num_After_dot) ; 3022 obj.find(".its_btn").show(); 3023 obj.find(".its_quan").show(); 3024 obj.find(".its_itemid").html('î÷è: <span>' + its_itemid + '</span>, '); 3025 obj.find(".its_price").html( its_itemprice ).formatCurrency({ 3026 groupDigits: true , symbol: 'îçéø: ¤', 3027 roundToDecimalPlace: temp_dropDecimals 3028 }); 3029 3030 if ( obj.parents("li").find(".bundlecheckbox").length ) 3031 { 3032 obj.parents("li").find(".bundlecheckbox").val(its_itemid); 3033 obj.parents("li").find(".bundlecheckbox").attr("price",its_itemprice); 3034 change_total(); 3035 } 3036 3037 } 3038 else 3039 { 3040 3041 obj.find(".its_itemid").html("äîåöø äîáå÷ù àéðå áîìàé"); 3042 obj.find(".its_itemid").append("<a class='fancybox iframe quantityalertlink' href='/product_alert.asp?AlertType=2&itemident="+its_itemident+"'>äåãéòå ìé ùçæø ìîìàé</a>"); 3043 obj.find(".its_price").html(""); 3044 obj.find(".its_btn").hide(); 3045 obj.find(".its_quan").hide(); 3046 3047 if ( obj.parents("li").find(".bundlecheckbox").length ) 3048 { 3049 obj.parents("li").find(".dinamicitemsons .misc").each(function(){ 3050 $(this).val(""); 3051 }) 3052 obj.parents("li").find(".bundlecheckbox").val(""); 3053 obj.parents("li").find(".bundlecheckbox").attr("price",0); 3054 change_total(); 3055 alert ("äîåöø äîáå÷ù àéðå áîìàé"); 3056 } 3057 3058 return false; 3059 } 3060 } 3061 return false; 3062 3063 } 3064 } 3065 ); 3066 } 3067 3068 function scrollerrows() 3069 { 3070 $(window).scroll(function() 3071 { 3072 3073 var top=$(window).scrollTop(); 3074 if(top>1) 3075 { 3076 $("#scroll-all").fadeIn("slow"); 3077 } 3078 else 3079 { 3080 $("#scroll-all").fadeOut("slow"); 3081 } 3082 }); 3083 3084 } 3085
3086 function mycarousel_initCallback(carousel) 3087 { 3088 // Disable autoscrolling if the user clicks the prev or next button. 3089 carousel.buttonNext.bind('click', function() { 3090 carousel.startAuto(0); 3091 }); 3092 3093 carousel.buttonPrev.bind('click', function() { 3094 carousel.startAuto(0); 3095 }); 3096 3097 // Pause autoscrolling if the user moves with the cursor over the clip. 3098 carousel.clip.hover(function() { 3099 carousel.stopAuto(); 3100 }, function() { 3101 carousel.startAuto(); 3102 }); 3103 }; 3104 3105 var glastDivId = ""; 3106 var gLastsmallLink = ""; 3107 3108 function gswitchdiv(divid, smalldivid, DivNum) { 3109 try { 3110 $('#gLnk_gsmall_' + DivNum + '_0').removeClass("current"); 3111 $('#gLnk_gsmall_' + DivNum + '_1').removeClass("current"); 3112 $('#gLnk_gsmall_' + DivNum + '_2').removeClass("current"); 3113 $('#gLnk_gsmall_' + DivNum + '_3').removeClass("current"); 3114 } 3115 catch (err) 3116 { } 3117 3118 $('#' + divid).html($('#' + smalldivid).html()); 3119 $('#gLnk_' + smalldivid).addClass("current"); 3120 3121 if (glastDivId == divid && gLastsmallLink != smalldivid & glastDivId != "" && gLastsmallLink != "") 3122 { 3123 $('#gLnk_' + LastsmallLink).removeClass("current"); 3124 } 3125 glastDivId = divid; 3126 gLastsmallLink = smalldivid; 3127 } 3128 3129 var plastDivId = ""; 3130 var pLastsmallLink = ""; 3131 function pswitchdiv(divid, smalldivid, DivNum) 3132 { 3133 try { 3134 $('#pLnk_psmall_' + DivNum + '_0').removeClass("current"); 3135 $('#pLnk_psmall_' + DivNum + '_1').removeClass("current"); 3136 $('#pLnk_psmall_' + DivNum + '_2').removeClass("current"); 3137 $('#pLnk_psmall_' + DivNum + '_3').removeClass("current"); 3138 } catch (err) { } 3139 3140 $('#' + divid).html($('#' + smalldivid).html()); 3141 $('#pLnk_' + smalldivid).addClass("current"); 3142 3143 if (plastDivId == divid && pLastsmallLink != smalldivid & plastDivId != "" && pLastsmallLink != "") 3144 { 3145 $('#pLnk_' + LastsmallLink).removeClass("current"); 3146 } 3147 plastDivId = divid; 3148 pLastsmallLink = smalldivid; 3149 } 3150 3151 function onAfter(curr, next, opts, fwd) 3152 { 3153 var $ht = $(this).height(); 3154 $(this).parent().css("height", $ht); 3155 } 3156 3157 var lastDivId = ""; 3158 var LastsmallLink = ""; 3159 function switchdiv(divid, smalldivid, DivNum) 3160 { 3161 try 3162 { 3163 $('#Lnk_small_' + DivNum + '_0').removeClass("current"); 3164 $('#Lnk_small_' + DivNum + '_1').removeClass("current"); 3165 $('#Lnk_small_' + DivNum + '_2').removeClass("current"); 3166 $('#Lnk_small_' + DivNum + '_3').removeClass("current"); 3167 } catch (err) 3168 { 3169 } 3170 $('#' + divid).html($('#' + smalldivid).html()); 3171 $('#Lnk_' + smalldivid).addClass("current"); 3172 if (lastDivId == divid && LastsmallLink != smalldivid & lastDivId != "" && LastsmallLink != "") { 3173 $('#Lnk_' + LastsmallLink).removeClass("current"); 3174 } 3175 lastDivId = divid; 3176 LastsmallLink = smalldivid; 3177 } 3178 3179 $("body").on("click",".propertiesbox .properties-image",function(){ 3180 $(this).parent(".propertiesbox").find(".properties-image").each(function(){ 3181 $(this).removeClass("current"); 3182 3183 }); 3184 $(this).addClass("current"); 3185 $(this).parent(".propertiesbox").find("select").val($(this).attr("value")).change() ; 3186 return false 3187 }); 3188 3189 3190 3191 function ProductBoxUpdatePrices(ItemId,itemIdent,startP,arrIP,PropVal,regPrice ,currentElement) 3192 { 3193 3194 var total = startP; 3195 var propPrice = 0; 3196 var pro_id = ''; 3197 var pro_name = ''; 3198 3199 // Find the closest li element to scope the search properly 3200 var currentLi = $(currentElement).closest("li"); 3201 3202 // Only search within the current li element to avoid duplicates 3203 currentLi.find(".required-properties").each(function() 3204 { 3205 3206 /* 3207 console.log("Number of elements found:", currentLi.find(".required-properties").length); 3208 console.log("Options:", $(this).find("option").length); 3209 console.log("arrIP:", arrIP); 3210 console.log("Selected option:", $(this).val()); 3211 console.log("Selected option:", $(this).find("option:selected").attr("value")); 3212 */ 3213 3214 if ( $(this).val() != '' ) 3215 { 3216 3217 PropVal = $(this).val(); 3218 3219 arrProperty = PropVal.split('|'); 3220 if ( PropVal != "") 3221 { 3222 propPrice = propPrice + Number(arrProperty[1]); 3223 3224 3225 pro_id = pro_id + '@'+arrProperty[2]; 3226 pro_name = pro_name + '/'+arrProperty[0] 3227 3228 if (Number(arrProperty[1]) > 0 ) 3229 { 3230 //total = Number ( (total*1) + (propPrice*1)) ; 3231 //total=total.toFixed(2); 3232 } 3233 } 3234 } 3235 }); 3236 3237 if (propPrice > 0 ) 3238 { 3239 total = Number ((total*1) + (propPrice*1)); 3240 total = total.toFixed(2); 3241 } 3242 3243 3244 // Scope all element selections to the current li to avoid duplicates 3245 currentLi.find("#prop_id_hid_"+itemIdent).val(pro_id); 3246 3247 currentLi.find("#prop_name_hid_"+itemIdent).val(pro_name); 3248 currentLi.find("#prop_price_hid_"+itemIdent).val(propPrice); 3249 currentLi.find("#total_hid_"+itemIdent).val(total); 3250 currentLi.find("#total"+itemIdent).html(total); 3251 if (regPrice != 0) 3252 { 3253 RegTotal = regPrice + propPrice; 3254 RegTotal=RegTotal.toFixed(2); 3255 currentLi.find("#totalreg"+itemIdent).html(RegTotal); 3256 } 3257 } 3258 3259 function PB_AddToCartWithProperties(pid,itemIdent,obj) 3260 { 3261 document.addme.pid.value = pid; 3262 var pip_str = "" 3263 var pip_prices = 0 3264 var pip_ids = "" 3265 var temparr = "" 3266 var isRequierd = "" 3267 3268 pip_ids = $("#prop_id_hid_" + itemIdent).val(); 3269 pip_str = $("#prop_name_hid_" + itemIdent).val(); 3270 pip_prices = $("#prop_price_hid_" + itemIdent).val(); 3271 3272 selectedproperties = "0" ; 3273 $(obj).parents("li").find(".required-properties").each(function() 3274 { 3275 if ( $(this).val() == '' ) 3276 {selectedproperties = "1";} 3277 }); 3278 3279 3280 if (pip_ids != "" && selectedproperties == "0" ) 3281 { 3282 pip_str = pip_str.substr(1, pip_str.length - 1) 3283 pip_ids = pip_ids.substr(1, pip_ids.length - 1) 3284 3285 document.addme.pip_str.value = pip_str; 3286 document.addme.pip_prices.value = pip_prices; 3287 document.addme.pip_ids.value = pip_ids; 3288 3289 3290 document.addme.submit(); 3291 3292 } 3293 else 3294 { 3295 alert("çåáä ìáçåø îàôééï ìîåöø"); 3296 } 3297 3298 return false; 3299 } 3300 3301 3302 3303 3304 function s_addme_cart(pid, quan, pip_str, pip_prices, pip_ids, numOfItems, ItemPromotionIdentStr) 3305 { 3306 if (quan == undefined || quan==0 ){ quan = 1; } 3307 3308 document.s_addme.pid.value = pid 3309 document.s_addme.quan.value = quan; 3310 document.s_addme.submit(); 3311 3312 } 3313 3314 3315 3316 3317 3318 $(document).ready 3319 ( 3320 function () {
3321 ViewFloatingCart(); 3322 FloatingCartObj_StartEffects(); 3323 if ($.browser.msie) { 3324 if (parseInt($.browser.version, 10) < 9) { 3325 $("#SlidingCart").css({ 'position': 'fixed' }); 3326 } 3327 } 3328 }); 3329 3330 3331 3332 3333 3334 3335 function openTakanon(){ 3336 window.open("Page_pop.asp?page=216",null,"width=700,height=500,scrollbars=yes,resizable=yes") 3337 } 3338 function openprivacy(){ 3339 window.open("Page_pop.asp?page=",null,"width=700,height=500,scrollbars=yes,resizable=yes") 3340 } 3341 3342 function username_validation() 3343 { 3344 $(".username_validation").focus(function(){ 3345 $(this).parent().find("div.error").replaceWith(""); 3346 }); 3347 3348 $(".username_validation").focusout(function(){ 3349 var username_input = $(this); 3350 if ( $(username_input).val() != "") 3351 { 3352 $.get("/siteservices.asp?service=user_username_check&username=" + $(this).val() , function(data) 3353 { 3354 if (data == "1") 3355 { 3356 $(username_input).val(""); 3357 if ( $(username_input).parent().find("div.error").length ) 3358 { 3359 $(username_input).parent().find("div.error").html("ëúåáú ãåàø äàì÷èøåðé ÷ééîú áîòøëú, ðñä ìäúçáø"); 3360 } 3361 else 3362 { $(username_input).parent().append("<div class='error checkout_error'>ëúåáú ãåàø äàì÷èøåðé ÷ééîú áîòøëú, ðñä ìäúçáø</div>"); } 3363 $("#loginlink").trigger("click"); 3364 } 3365 }); 3366 } 3367 }); 3368 } 3369 3370 3371 function calculate_icons_position() 3372 { 3373 3374 3375 if ( $(".productBoxes .MiscFieldsIcons").length ) 3376 { 3377 $(".productBoxes .MiscFieldsIcons").each(function () 3378 { 3379 if ($(this).parent().find(".ProductBox_promotion").length) { 3380 var icons_height = $(this).parent().find(".ProductBox_promotion").height(); 3381 if (icons_height > 0) { 3382 $(this).css("top", icons_height + "px"); 3383 } 3384 } 3385 else 3386 { 3387 $(this).css("top", "0px"); 3388 } 3389 }); 3390 } 3391 3392 $(".boxItem-wrap .MiscFieldsIcons").show(); 3393 3394 } 3395 3396 $(document).ready 3397 ( 3398 3399 function() 3400 { 3401 $("body").on("click",".email_share",function(){ 3402 var title = $('meta[property="og:title"]').attr('content'); 3403 var desc = $('meta[property="og:description"]').attr('content'); 3404 var url = $('meta[property="og:url"]').attr('content'); 3405 var image = $('meta[property="og:image"]').attr('content'); 3406 window.location.href = "mailto:[email protected]?subject=÷øàúé îàîø ùéòðééï àåúê&body="+ title + "<br>" + desc + "<br>" + url; 3407 return false; 3408 }); 3409 3410 $("body").on("click",".linkedin_share",function(){ 3411 var url = "https://www.medicon.co.il/pl_product~270~2~0.htm"; 3412 var redirect_url = $(this).attr("href") + url; 3413 //window.location.href = redirect_url 3414 window.open(redirect_url); 3415 return false; 3416 }); 3417 3418 3419 3420 3421 3422 3423 3424 3425 $("body").on("change", ".cart_items_ul .value",function() 3426 { 3427 3428 var quantity = $(this).val(); 3429 var quantity_action = "odd"; 3430 var tmp_ee_list_item_obj = $(this).parents(".ee_list_item"); 3431 var current_quantity = $(this).attr("quantity"); 3432 var new_quantity = quantity; 3433 var quantity_request = 1; 3434 3435 // console.log( parseFloat(new_quantity) + '!=' + parseFloat(current_quantity)); 3436 3437 if ( new_quantity != current_quantity ) { 3438 3439 if ( parseFloat(new_quantity) > parseFloat(current_quantity) ) { 3440 quantity_action = "odd"; 3441 quantity_request = new_quantity - current_quantity; 3442 // console.log( quantity_action + " " + parseFloat(new_quantity) + '>' + parseFloat(current_quantity)); 3443 } 3444 3445 if ( parseFloat(new_quantity) < parseFloat(current_quantity) ) { 3446 quantity_action = "minus"; 3447 quantity_request = current_quantity - new_quantity; 3448 3449 } 3450 3451 } 3452 3453 3454 3455 $.get('/services/cartservices.asp?service=setcartitemquantity¶ms=update&CartItemID='+$(this).next().attr("cartitemid")+'&quan_multiply=1&quan='+quantity , function(data) 3456 { 3457 var answer_array = data.split("|"); 3458 var status = answer_array[0]; 3459 var message = answer_array[1]; 3460 3461 if (status == "1") 3462 { 3463 3464 if (quantity_action == "minus" ) 3465 { 3466 3467 // cart_remove_from_cart = true; 3468 3469 3470 3471 } 3472 3473 if (quantity_action == "odd" ) 3474 { 3475 3476 // cart_add_to_cart = true; 3477 3478 3479 } 3480 3481 3482 RenderAllCarts(1); 3483 3484 3485 if (cookieconsent == true) { 3486 3487 3488 3489 3490 3491 3492 3493 if (quantity_action == "minus" ) 3494 { 3495 3496 3497 3498 } 3499 3500 if (quantity_action == "odd" ) 3501 { 3502 3503 3504 } 3505 3506 } 3507 3508 } 3509 else 3510 { 3511 alert(message); 3512 } 3513 3514 }) 3515 return false; 3516 }); 3517 3518 $("body").on("change",".cart_dimension_type",function() { 3519 var cartitemident = $(this).parents(".ee_list_item").attr("itemident"); 3520 var cartitemid = $(this).parent().find(".odd").attr("cartitemid"); 3521 var dimension_type = $(this).val(); 3522 $.get('/services/cartservices.asp?service=setcartitemdimension&itemident='+cartitemident+'¶ms='+dimension_type+"&CartItemID="+cartitemid , function(data) 3523 { 3524 RenderAllCarts(1) ; 3525 }); 3526 }); 3527 3528 $("body").on("click",".minicartsetquan",function() 3529 { 3530 3531 var quantity_action = $(this).attr("action"); 3532 var quan_multiply = $(this).parent().find(".value").attr("quan_multiply"); 3533 3534 var tmp_ee_list_item_obj = $(this).parents(".ee_list_item"); 3535 var quan_param = ""; 3536 var quantity_multiply = 1; 3537 var quantity_request = 1; 3538 var current_quantity = $(this).parent().find(".value").val() || $(this).parent().find(".value").text(); 3539 3540 if ( $(this).parent().find("input").length ) 3541 { 3542 quan_param = "&quan=" + $(this).parent().find("input").val(); 3543 } 3544 3545 if ( $(tmp_ee_list_item_obj).find(".quantity .value").attr("quan_multiply") != "" ) 3546 { 3547 quantity_multiply = $(tmp_ee_list_item_obj).find(".quantity .value").attr("quan_multiply"); 3548 } 3549 3550 if ( $(this).parent().parent().find("input:checked").length ) { 3551 if ( $(this).parent().parent().find("input:checked").val() == "0" ) { 3552 quantity_multiply = 1; 3553 } 3554 } 3555 3556 $.get('/services/cartservices.asp?service=setcartitemquantity¶ms='+quantity_action+"&CartItemID="+$(this).attr("cartitemid")+"&quan_multiply="+quantity_multiply + quan_param , function(data) 3557 { 3558 3559 var answer_array = data.split("|"); 3560 var status = answer_array[0]; 3561 var message = answer_array[1]; 3562 3563 if (status == "1") 3564 { 3565 3566 if (quantity_action == "minus" ) 3567 { 3568 3569 // cart_remove_from_cart = true; 3570 3571 3572 3573 } 3574 3575 if (quantity_action == "odd" ) 3576 { 3577 3578 // cart_add_to_cart = true; 3579 3580 3581 3582 } 3583 3584 RenderAllCarts(1) ; 3585 3586 3587 if (cookieconsent == true) { 3588 3589 3590 3591 3592 3593 if ( quantity_action == "minus" ) 3594 { 3595 3596 } 3597 3598 if ( quantity_action == "odd" ) 3599 { 3600 3601 3602 3603 } 3604 3605 } 3606 } 3607 else 3608 { 3609 alert(message); 3610 } 3611 3612 }) 3613 return false; 3614 }); 3615 3616 3617 $("body").on("click",".cart_items_ul .delete a",function() 3618 { 3619 obj = $(this).attr("cartitemid") ; 3620 var tmp_ee_list_item_obj = $(this).parents(".ee_list_item"); 3621 var current_quantity = $(this).parents(".ee_list_item").find(".value").val() || $(this).parents(".ee_list_item").find(".value").text(); 3622 3623 $.get('/services/cartservices.asp?service=deletefromcart¶ms='+obj, function(data) 3624 { 3625 var dataarray = data.split("|"); 3626 if ( dataarray[0] == "0" ) 3627 { 3628 alert (dataarray[1]); 3629 } 3630 else 3631 { 3632 //cart_remove_from_cart = true 3633 if (cookieconsent == true) { 3634 3635 3636 3637 3638 3639 } 3640 RenderAllCarts(1); 3641 } 3642 3643 }) 3644 return false; 3645 }); 3646 3647 datecountdown(); 3648 3649 $("body").on("click",".close",function(){ 3650 if ( $(this).parent().hasClass("campain_wrap") ) 3651 { 3652 $(this).parent().parent().hide(); 3653 } 3654 else 3655 { 3656 $(this).parent().hide(); 3657 } 3658 return false; 3659 }); 3660 3661 3662 3663 } 3664 ); 3665 3666 jQuery.fn.center = function () 3667 { 3668 this.css("position","fixed"); 3669
3669 var horizontalCenter = Math.floor(window.innerWidth/2 - ( $(this).outerWidth()/2)); 3670 var verticalCener = Math.floor(window.innerHeight/2 - ($(this).outerHeight()/2)); 3671 this.css("top", verticalCener + "px" ); 3672 this.css("left",horizontalCenter + "px"); 3673 return this; 3674 } 3675 3676 3677 3678 3679 function checkSectionfrm() { 3680 if (IsEmptyStr("document.memberFrm.UserName")) { 3681 document.memberFrm.UserName.focus(); 3682 alert("ìà äåæï ùí îùúîù".charRefToUnicode()); 3683 return false; 3684 } 3685 if (IsEmptyStr("document.memberFrm.IDNum")) { 3686 document.memberFrm.IDNum.focus(); 3687 alert("ñéñîà çééáú ìäëéì 4-20 úååéí, éù ìäæéï àåúéåú å/àå ñôøåú".charRefToUnicode()); 3688 return false; 3689 } 3690 return true; 3691 } 3692 3693 3694function google_event_couponapply( coupon_code ){ 3695 3696 3697} 3698 3699 3700var last_payment_info = ''; 3701function google_event_addpaymentinfo( payment_info ){ 3702 3703 3704} 3705 3706var last_shipping_method = ''; 3707function google_event_begincheckout_add_shipping_info( shipping_value, shipping_method ){ 3708 3709 3710 3711 3712} 3713 3714 function google_event_begincheckout(){ 3715 3716 3717 } 3718 3719 3720 function google_event_removefromcart() 3721 { 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 } 3732 3733 3734 3735 function google_event_viewcart(){ 3736 3737 3738 3739 } 3740 3741function flytocart(obj) 3742 { 3743 3744 var cart = $('#miniCart'); 3745 var imgtodrag = $(obj).parents("li").find(".image img"); 3746 3747 if (imgtodrag) { 3748 var imgclone = imgtodrag.clone() 3749 .offset({ 3750 top: imgtodrag.offset().top, 3751 left: imgtodrag.offset().left 3752 }) 3753 .css({ 3754 'opacity': '0.5', 3755 'position': 'absolute', 3756 'height': '150px', 3757 'width': '150px', 3758 'z-index': '100' 3759 }) 3760 .appendTo($('body')) 3761 .animate({ 3762 'top': cart.offset().top + 10, 3763 'left': cart.offset().left + 10, 3764 'width': 75, 3765 'height': 75 3766 }, 1000, 'easeInOutExpo'); 3767 3768 setTimeout(function () { 3769 cart.effect("shake", { 3770 times: 2 3771 }, 200); 3772 }, 1500); 3773 3774 imgclone.animate({ 3775 'width': 0, 3776 'height': 0 3777 }, function () { 3778 $(this).detach() 3779 }); 3780 } 3781 3782 $('html, body').animate({ 3783 'scrollTop' : $(cart).position().top 3784 }, 1000, 'easeInOutExpo'); 3785 3786 } 3787 3788String.prototype.charRefToUnicode = function() 3789{ 3790 return this.replace( 3791 /&#(([0-9]{1,7})|(x[0-9a-f]{1,6}));?/gi, 3792 function(match, p1, p2, p3, offset, s) 3793 { 3794 return String.fromCharCode(p2 || ("0" + p3)); 3795 }); 3796} 3797 3798function loanCal(A,C,I) { 3799 3800 3801 let monthlyInterestRate; // Define monthlyInterestRate outside the if block 3802 if ( I > 0 ) { 3803 I = I / 100; // Annual percentage rate 3804 monthlyInterestRate = I / 12; 3805 } else { 3806 monthlyInterestRate = I ; 3807 } 3808 // Calculate monthly interest rate 3809 3810 3811 // Calculate fixed monthly payment 3812 const fixedMonthlyPayment = calculateFixedMonthlyPayment(A, monthlyInterestRate, C); 3813 3814 3815 3816 let remainingAmount = A; 3817 let results = []; 3818 3819 for (let month = 1; month <= C; month++) { 3820 const interestPayment = remainingAmount * monthlyInterestRate; 3821 const principalPayment = fixedMonthlyPayment - interestPayment; 3822
3823 remainingAmount -= principalPayment; 3824 3825 results.push({ 3826 month: month, 3827 remainingAmount: parseFloat((remainingAmount).toFixed(2)) , 3828 principal: parseFloat((principalPayment).toFixed(2)) , 3829 interest: parseFloat((interestPayment).toFixed(2)) , 3830 monthlyRepayment: parseFloat((fixedMonthlyPayment).toFixed(2)) 3831 }); 3832 } 3833 3834 const totalLoanAmount = parseFloat((fixedMonthlyPayment * C).toFixed(2)); 3835 const totalInterest = parseFloat((totalLoanAmount - A).toFixed(2)); 3836 3837 3838 3839 return { 3840 monthlyDetails: results, 3841 totalLoanAmount, 3842 totalInterest, 3843 monthlyPayment: parseFloat(fixedMonthlyPayment.toFixed(2)) 3844 }; 3845} 3846 3847function calculateFixedMonthlyPayment(loanAmount, monthlyInterestRate, totalMonths) { 3848 if ( totalMonths == 1 ) { 3849 3850 return loanAmount*1 ; 3851 } else { 3852 3853 if ( monthlyInterestRate > 0 ) { 3854 return loanAmount * monthlyInterestRate / (1 - (Math.pow(1 / (1 + monthlyInterestRate), totalMonths))); 3855 } else { 3856 return loanAmount / totalMonths ; 3857 } 3858 } 3859 3860} 3861 3862 3863$( document ).ready(function() 3864{ 3865 3866 if ( $(".monthly_payments_select").length ) { 3867 $("body").on("change",".monthly_payments_select", function(){ 3868 var monthly_payments_total = $(this).attr("total"); 3869 var monthly_payments_ribit = $(this).find("option:selected").attr("ribit"); // Get the ribit attribute from the selected option 3870 var monthly_payments_num = $(this).val(); 3871 var payment_details = loanCal(monthly_payments_total,monthly_payments_num,monthly_payments_ribit); 3872 if ( monthly_payments_num == 1 ) { 3873 3874 $(this).parent().find(".price .value").html(monthly_payments_total); 3875 } 3876 else { 3877 //console.log(payment_details.monthlyPayment); 3878 $(this).parent().find(".price .value").html(payment_details.monthlyPayment.toFixed(2)); 3879 } 3880 3881 }); 3882 $(".monthly_payments_select").trigger("change"); 3883 } 3884 3885 $(".navbar-toggler").click(function(){ 3886 if ( $(this).parent().hasClass("active") ) 3887 { 3888 $(this).parent().removeClass("active"); 3889 $(this).attr('aria-expanded', 'false'); 3890 } 3891 else 3892 { 3893 $(this).parent().addClass("active"); 3894 $(this).attr('aria-expanded', 'true'); 3895 } 3896 3897 }); 3898 3899 3900 $("body").on('mouseleave', '#floating-icons .icons-box',function (e) { 3901 if (!$(e.target).is('input')) { 3902 // $('.content', this).removeClass("active"); 3903 $(this).removeClass("active"); 3904 } 3905 }); 3906 $("body").on('mouseenter', '#floating-icons .icons-box .icon', function () { 3907 // $('.content', this).addClass("active"); 3908 $('#floating-icons .icons-box').removeClass("active"); 3909 $(this).parent().addClass("active"); 3910 3911 3912 if ( $(this).next().find("iframe").length ) 3913 { 3914 var iframedata = $(this).next().find("iframe").attr("data"); 3915 if ( iframedata != '' ) 3916 { 3917 $(this).next().find("iframe").attr("src" , iframedata); 3918 $(this).next().find("iframe").attr("data" , ""); 3919 } 3920 } 3921 }) 3922 3923 3924 3925username_validation() 3926 3927 $("body").on("click","#usepointsbtn",function(){ 3928 $.get("/services/CartServices.asp?service=points_cart_add", function(data) 3929 { 3930 if (data == "1") 3931 { 3932 RenderAllCarts(); 3933 startConfetti(); 3934 } 3935 }); 3936 if ( $(this).attr("href") == 'cart.asp' ) 3937 { 3938 location.href=$(this).attr("href"); 3939 } 3940 return false; 3941 });
3942 3943$("body").on("click",".points_delete_btn",function(){ 3944 $.get("/services/CartServices.asp?service=points_cart_del", function(data) 3945 { 3946 if (data == "1") 3947 { 3948 RenderAllCarts(); 3949 } 3950 }); 3951 return false; 3952 }); 3953 3954 $("body").on("click",".delete_coupon",function(){ 3955 $.get("/services/CartServices.asp?service=deletecoupon", function(data) 3956 { 3957 if (data == "1") 3958 { 3959 RenderAllCarts(); 3960 } 3961 }); 3962 return false; 3963 }); 3964 3965 $(".populartag").click(function() 3966 { 3967 var randomnumber = Math.floor(Math.random()*1000) 3968 var tag_id = $(this).attr("tag_id"); 3969 var tag_url = $(this).attr("href"); 3970 3971 $.ajax({ 3972 url:'/Tags.asp?IsRecordTag=1&TagId='+tag_id+'&rnd='+randomnumber , 3973 type:'GET', 3974 success: 3975 function(data) 3976 { 3977 location.href = tag_url; 3978 } 3979 }); 3980 return false; 3981 }); 3982 3983 $("body").on("click",".toggle:not(.misc_title)",function() 3984 { 3985 $(this).next().toggle(); 3986 if ( $(this).next().is(":visible") ) 3987 { 3988 $(this).addClass("active"); 3989 $(this).attr('aria-expanded', 'true'); 3990 } 3991 else 3992 { 3993 $(this).removeClass("active"); 3994 $(this).attr('aria-expanded', 'false'); 3995 3996 } 3997 return false; 3998 }); 3999 4000 try { 4001 4002 if ($('#SlidingCart').length) 4003 { 4004 RenderAllCarts(); 4005 //get_cart_quantity(); 4006 } 4007 4008 $('form.validate').each( function() 4009 { 4010 $(this).validate({}); 4011 }); 4012 4013 } 4014 catch (err) 4015 { } 4016 4017}); 4018 4019 4020 4021 4022 4023var glbl_int_cat1_menu_num = -1; 4024var glbl_bln_oncat2 = 0; 4025var checkout_validation = ""; 4026function ViewFloatingCart() 4027 { 4028 /* if ($('#SlidingCart').length) 4029 { 4030 // rnd = new Date().getTime(); 4031 // SetInnerHTMLFromAjaxResponse("../inc/FloatingCart/FloatingCart.asp?rnd="+rnd,"SlidingCart"); 4032 }*/ 4033 } 4034 4035function setproductsonquantity() 4036 { } 4037 4038function setcustomscroller() 4039 { } 4040 4041 function get_checkout_payments() 4042 { 4043 var deliveryprice = 0 ; 4044 var ribit = 0 ; 4045 var checkout_payments = default_payment; 4046 4047 $("#OrderPayments option:selected").each(function () 4048 { 4049 ribit = $(this).attr("ribit"); 4050 checkout_payments = $(this).attr("value"); 4051 }); 4052 4053 $("#delivery option:selected").each(function () 4054 { deliveryprice = $(this).attr("price"); }); 4055 4056 var checkout_payments_type = $('input[name=payment_type]:checked', '#checkout-form').val(); 4057 var checkout_payments_id = $('input[name=payment_type]:checked', '#checkout-form').attr("id"); 4058 var agree_credit_token = $('input[name=agree_credit_token]:checked', '#checkout-form').val(); 4059 4060 var bitxt_p = $("#bit_phone").val(); 4061 var bitxt_e = $("#bit_phone_ext").val(); 4062 $.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) 4063 { 4064 $("#checkout_payments").html(data); 4065 4066 if ( $("input[name=payment_type]:checked").length == 0 ) 4067 { 4068 $("input[name=payment_type]").eq(0).attr('checked', true); 4069 } 4070 4071 if ( $("input[name=payment_type]:checked").val() == "bit" ) { 4072 $("#bit_phone_div").show(); 4073 } 4074 4075 if ( $("input[name=payment_type]:checked").attr("payments") == "0" ) 4076 { 4077 $("#OrderPayments").val("1"); 4078 $("#OrderPayments").trigger("change"); 4079 $("#OrderPayments").next().find(".sbSelector").html("1"); 4080 $("#OrderPayments").next().hide(); 4081 $(".payments_wrap").hide(); 4082 } 4083 4084 try { 4085 if ( checkout_validation != "1" && global_settings_bootstrap != "1" ) 4086 { 4087 $("select#OrderPayments").selectbox(); 4088 } 4089 } 4090 catch (err) 4091 {} 4092 4093 if ( $("#bit_phone_ext").length && $("#Phone_ext").length ){ 4094 if ( $("#bit_phone").val() == '' && $("#bit_phone_ext").val() == '' ){ 4095 $("#bit_phone").val( $("#Phone").val() ) 4096 $("#bit_phone_ext").val( $("#Phone_ext").val() ) 4097 } 4098 } 4099 4100 4101 4102 4103 4104 4105 4106 4107 }); 4108 } 4109 function get_checkout_relative_items() 4110 { 4111 $.get("/siteservices.asp?service=get_checkout_relative_items&lang="+currentSiteLang+"&CurrencyID="+currentCurrency, function (data) 4112 { 4113 $("#checkout_relative_items").html(data); 4114 dependonwidget(); 4115 }); 4116 } 4117 4118 function ShowAllCarts() 4119 { 4120 4121 if ($('#SlidingCart').length) 4122 { 4123 $('#SlidingCart').show(); 4124 } 4125 4126 if ($("#sidebarcart").length || $("#checkout_fullcart").length || '' == '1' || '' == '' ) 4127 { 4128 RenderAllCarts(); 4129 } 4130 else 4131 { 4132 4133 4134 $("#mobile_smallcart_items_counter").html('0'); 4135 $("#miniCart #cartQuantity").html('0'); 4136 4137 if ( $(".smallcart").length >0 ) 4138 { 4139 //console.log('0'); 4140 if( 0 >0 ) 4141 { 4142 4143 $(".smallcart #cartEmptyTR").hide(); 4144 $(".smallcart #cartPriceTR").show(); 4145 $(".smallcart #cartPrice").html(''); 4146 $(".smallcart #cartQuantity").html('0'); 4147 4148 } 4149 else 4150 { 4151 $(".smallcart #cartEmptyTR").show(); 4152 $(".smallcart #cartPriceTR").hide(); 4153 } 4154 } 4155 setcustomscroller(); 4156 4157 if ($('#SlidingCart').length) 4158 { 4159 if( 0 > 0 ) 4160 { 4161 $("#SlidingCart #CartIcon").removeClass('empty'); 4162 $("#floatingcart-total").html('0'); 4163 } 4164 else 4165 { 4166 $("#SlidingCart #CartIcon").addClass('empty'); 4167 $("#floatingcart-total").html(''); 4168 } 4169 } 4170 } 4171 } 4172 4173 4174 function dependonwidget() { 4175 $(".dependonwidget").each(function () { 4176 4177 // Get the target designbox ID from the attribute" 4178 var dependonwidgetid = $(this).attr("dependonwidgetid");
4179 var $target = $("#designbox_" + dependonwidgetid); 4180 4181 // Safety check: if no such element exists, skip 4182 if (!$target.length) { 4183 return; 4184 } 4185 4186 // Check only the actual content, without script tags 4187 var $content = $target.find('.content'); 4188 4189 // Check if there are products 4190 var hasProducts = $content.find('ul.productBoxes li').length > 0; 4191 4192 // Check if there are images 4193 var hasImages = $content.find('img').length > 0; 4194 4195 // Check if there is real text 4196 var hasText = $.trim($content.text()) !== ""; 4197 4198 if (hasProducts || hasImages || hasText) { 4199 $(this).removeClass("hide-v"); 4200 } else { 4201 $(this).addClass("hide-v"); 4202 } 4203 }); 4204} 4205 4206 4207function get_cart_quantity(){ 4208 $.get("/services/CartServices.asp?service=get_cart_quantity", function(data) 4209 { 4210 4211 }); 4212} 4213 4214 function RenderAllCarts(render_sonquan) 4215{ 4216 4217 if (render_sonquan == undefined ) 4218 { 4219 render_sonquan=0; 4220 } 4221 if ( $("#sidebarcartdiv").length ) 4222 { 4223 render_sonquan=1; 4224 } 4225 4226 try { 4227 var add_js_cartid = '' 4228 if (js_cartid != '') 4229 { 4230 add_js_cartid = "&cartid="+js_cartid+"&lang="+currentSiteLang+"&CurrencyID="+currentCurrency 4231 //add_js_cartid = "&cartid="+js_cartid 4232 4233 4234 } 4235 4236 if ($(".page-checkout").length >0) 4237 { 4238 add_js_cartid = add_js_cartid + "&checkout=1" 4239 $.get("/services/CartServices.asp?service=cartdeliverydelete" + add_js_cartid , function(data) 4240 {}); 4241 4242 } 4243 4244 $.get('/services/cartservices.asp?service=getcart'+add_js_cartid+"&n=1", function (data) 4245 { 4246 4247 $("#minicartdiv #minicartdiv_container").html(data); 4248 $("#minicartdiv #minicartdiv_total").empty(); 4249 $("#minicartdiv .minicartbottom").appendTo('#minicartdiv_total'); 4250 4251 $("#mobile_minicart #mobile_minicart_container").html( data ); 4252 $("#mobile_minicart #mobile_minicart_total").empty(); 4253 $("#mobile_minicart .minicartbottom").appendTo('#mobile_minicart_total'); 4254 4255 if ( ! $("#mobile_minicart .close-icon").length ) 4256 { 4257 $("#mobile_minicart").append('<i class="fa fa-times close-icon" aria-hidden="true"></i>'); 4258 } 4259 4260 4261 4262 $("#sidebarcart").html(data); 4263 4264 $("#shoppingcart").html(data); 4265 4266 4267 if ($('#SlidingCart').length) 4268 { 4269 $(".FlyingCartDivWrap").html(data); 4270 if( $("#minicartproductcount").val() >0 ) 4271 { 4272 $("#SlidingCart #CartIcon").removeClass('empty'); 4273 $("#floatingcart-total").html($("#minicartproductcount").val()); 4274 } 4275 else 4276 { 4277 $("#SlidingCart #CartIcon").addClass('empty'); 4278 $("#floatingcart-total").html('0'); 4279 } 4280 4281 if ( $("#SlidingCart .promotion_notice.success").length ){ 4282 startConfetti(); 4283 } 4284 4285 if ( $("#SlidingCart .promotions-carousel").length ){ 4286 4287 if ( $("#SlidingCart .promotion-item").length > 1 ) { 4288 4289 4290 4291 4292 } 4293 4294 }; 4295 4296 if ( $("#SlidingCart #promotionsoffers").length ){ 4297 if ( $("#SlidingCart #promotionsoffers .promotionsofferitemsul li ").length > 1 ) { 4298 4299 } 4300 } ; 4301 4302 4303 if ( $("#SlidingCart .cart-relatives-carousel").length ){ 4304 if ( $("#SlidingCart .cart-relatives-carousel .relatives-carousel .relative-item").length > 1 ) { 4305 4306 } 4307 } 4308 4309 const $cartDiv = $('#SlidingCart'); // The parent container 4310 const $cartItems = $('#SlidingCart .cart_items_ul'); // The list element 4311 const $bottomDiv = $('#SlidingCart .minicartbottom'); // The bottom section 4312 const $cartHeader = $('#SlidingCart .cart_header'); // The progress bar 4313 4314 // Calculate the height of other elements 4315 const otherElementsHeight =
4316 $bottomDiv.outerHeight(true) + 4317 $cartHeader.outerHeight(true) + 4318 15; // Adjust for additional padding or margins if needed 4319 4320 // Calculate the available height for the cart items 4321 const availableHeight = $cartDiv.outerHeight() - otherElementsHeight; 4322 4323 // Set the max-height of the cart items 4324 $cartItems.css({ 4325 'max-height': `${availableHeight}px`, 4326 'overflow-y': 'auto' 4327 }); 4328 4329 } 4330 4331 4332 $("#mobile_smallcart_items_counter").html($("#minicartproductcount").val()); 4333 $("#miniCart #cartQuantity").html($("#minicartproductcount").val()); 4334 4335 4336 if ($(".checkout_fullcart").length >0) 4337 { 4338 $(".checkout_fullcart .cart").html(data); 4339 if ($(".checkout_fullcart .cart #minicarttotalquantity").val()==0) 4340 { 4341 location.reload(); 4342 } 4343 else 4344 { 4345 4346 try { 4347 4348 get_checkout_relative_items(); 4349 get_checkout_payments(); 4350 get_checkout_shipping(); 4351 setTimeout(function() {calculateordertotal()}, 500); 4352 4353 } 4354 catch (err) 4355 { } 4356 4357 //console.log('calculateordertotal'); 4358 } 4359 } 4360 4361 4362 if ( $(".smallcart").length >0 ) 4363 { 4364 //$(".smallcart #cartQuantity").html("<div id='smallcartdata' style='display:none'>"+data+"</div>"); 4365 if( $("#minicartproductcount").val() >0 ) 4366 { 4367 4368 $(".smallcart #cartEmptyTR").hide(); 4369 $(".smallcart #cartPriceTR").show(); 4370 $(".smallcart #cartPrice").html($("#minicarttotal").val()); 4371 $(".smallcart #cartQuantity").html($("#minicartproductcount").val()); 4372 4373 } 4374 else 4375 { 4376 $(".smallcart #cartEmptyTR").show(); 4377 $(".smallcart #cartPriceTR").hide(); 4378 } 4379 } 4380 4381 if (render_sonquan=="1") 4382 { 4383 setproductsonquantity(); 4384 } 4385 setcustomscroller(); 4386 4387 ViewFloatingCart(); 4388 4389 4390 if ( $("#minicartproductcount").val() == "0" ) 4391 { 4392 $(".cart-link").each( function() 4393 { 4394 $(this).attr("href","#"); 4395 }); 4396 } 4397 else 4398 { 4399 $(".cart-link").each( function() { 4400 $(this).attr("href","/cart.asp"); 4401 }); 4402 } 4403 4404 4405 4406 4407 $("#minicartdiv .cart_dimension_type").each( function ( index ){ 4408 var temp_attr_name = $(this).attr("name"); 4409 $(this).attr("name", temp_attr_name + "mc" ); 4410 var attr = $(this).attr('checked'); 4411 if (typeof attr !== typeof undefined && attr !== false) { 4412 $(this).prop("checked", true); 4413 } 4414 }); 4415 4416 $("#sidebarcartdiv .cart_dimension_type").each( function ( index ){ 4417 var temp_attr_name = $(this).attr("name"); 4418 $(this).attr("name", temp_attr_name + "sb" ); 4419 var attr = $(this).attr('checked'); 4420 if (typeof attr !== typeof undefined && attr !== false) { 4421 $(this).prop("checked", true); 4422 } 4423 }); 4424 4425 4426 if ( $("#cart-points").length > 0 ) 4427 { 4428 $.get('/siteservices.asp?service=points_cart_get', function(data) 4429 { 4430 $("#cart-points span").html(data); 4431 4432 }); 4433 } 4434 4435 4436 4437 }) ; 4438} 4439catch (err) 4440 { } 4441 4442} 4443 4444 var cartmobilepopuptimer = ""; 4445 4446function mobile_minicart_toggle(num) 4447{ 4448 // console.log("mobile_minicart_toggle = " + num); 4449 $("#mobile_minicart").toggle(); 4450} 4451 4452function Ajax_updateCartInfo() 4453{ 4454 4455 RenderAllCarts(); 4456 4457 try { 4458 4459 clearTimeout(cartmobilepopuptimer); 4460 4461 if ( !$("#mobile_minicart").is(':visible') ) 4462 { 4463 //$("#mobile_header .header_smallcart").trigger("click"); 4464 mobile_minicart_toggle("6"); 4465 } 4466 4467 cartmobilepopuptimer = setTimeout(function() { 4468 //$("#mobile_header .header_smallcart").trigger("click"); 4469 mobile_minicart_toggle("7"); 4470 }, 6000 ); 4471 4472 4473 } 4474 catch (err) 4475 { } 4476 4477 if ($('#SlidingCart').length) 4478 {
4479 OpenFloatingCart(); 4480 } 4481 else 4482 { 4483 OpenSmallCart(); 4484 } 4485 4486 cart_opened = true; 4487 4488} 4489 4490 4491 4492 4493 4494function AddToCartAjaxDivNote(xml, p, t) 4495{ 4496 4497 4498 try { removeAjaxDivNote(); } 4499 catch (e) { } 4500 4501 var e 4502 if(window.ActiveXObject){ 4503 // *** IE 4504 var xmlDom = getDOMObject(); 4505 xmlDom.loadXML(xml); 4506 p = xmlDom.getElementsByTagName("PRICE")[0].text; 4507 t = xmlDom.getElementsByTagName("QUANTITY")[0].text; 4508 } 4509 else if (document.implementation && document.implementation.createDocument) 4510 { 4511 // *** Mozilla 4512 var oParser = new DOMParser(); 4513 var xmlDom = oParser.parseFromString(xml,'text/xml'); 4514 p = xmlDom.getElementsByTagName("PRICE")[0].textContent; 4515 t = xmlDom.getElementsByTagName("QUANTITY")[0].textContent; 4516 } 4517 4518 if (p != "" && t != "" && p != "undefined" && t != "undefined") { 4519 try { 4520 var ni = document.getElementById('MainWrapDiv'); 4521 var newdiv = document.createElement('div'); 4522 var divIdName = 'AddToCartAjaxDivNote'; 4523 newdiv.setAttribute('id', divIdName); 4524 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>"; 4525 ni.appendChild(newdiv); 4526 showdeadcenterdiv("AddToCartAjaxDivNote"); 4527 } 4528 catch (e) { } 4529 } 4530 } 4531 4532 4533var ObjName; 4534var tempval; 4535var templateSubCatOffset=0; 4536 4537function IsEmptyStr(objName){ 4538 if (eval(objName+".value")==""){ 4539 return true; 4540 } 4541 else{ 4542 tempval = new String(eval(objName+".value")) 4543 for (y=0;y<tempval.length;y++){ 4544 if (tempval.substring(y,y+1) != " "){ 4545 tempval=tempval.slice(y,tempval.length); 4546 y = tempval.length; 4547 eval(objName+".value = tempval") 4548 } 4549 else { 4550 if (y == tempval.length-1){ 4551 eval(objName+".value = ''") 4552 return true; 4553 } 4554 } 4555 } 4556 } 4557 tempval = new String(eval(objName+".value")) 4558 for (y=tempval.length;y>0;y--){ 4559 if (tempval.substring(y-1,y) != " "){ 4560 tempval = tempval.slice(0,y); 4561 y=0; 4562 eval(objName+".value = tempval") 4563 } 4564 } 4565 return false; 4566} 4567 4568 4569function Cat_mouseover(cate1,num){ 4570if (cate1 != glbl_int_cat1_menu_num){ 4571glbl_int_cat1_menu_num = cate1; 4572 4573var start_div = ""; 4574var mid_div = ""; 4575var end_div = ""; 4576var found_cat2 = 0; 4577eval("cat2array = cat1_"+cate1+"_cat2array") 4578// document.body.scrollLeft = 150; 4579 4580 winW2 = (document.layers)? window.innerWidth-16 : document.body.offsetWidth-20 4581 winW1 = 960 4582 winW = (winW2-winW1)/2 + winW1 4583 4584 my = (document.layers)? e.layerY:event.y; 4585 mx = (document.layers)? e.layerX:event.x; 4586 my_off = event.offsetY 4587 mx_off = event.offsetX 4588 my_dsTOP = document.body.scrollTop 4589 my_dsLFT = document.body.scrollLeft 4590 4591 4592 document.getElementById("Cat2lay").style.top = my-20+my_dsTOP; 4593 if (langdir == "rtl" ){ 4594 document.getElementById("Cat2lay").style.left = winW-235+my_dsLFT+templateSubCatOffset;} 4595 else { 4596 4597 document.getElementById("Cat2lay").style.left = 229; 4598 4599 } 4600 4601 if (num > 0){ 4602 tbl_mover = "onmouseover=document.all.df"+num+".style.backgroundColor='#FFFFFF'" 4603 tbl_mout = "onmouseout=document.all.df"+num+".style.backgroundColor=''" 4604 } 4605 else{ 4606 tbl_mover = "" 4607 tbl_mout = "" 4608 } 4609 4610 start_div = "<table cellpadding=4 cellspacing=1 border=0 bgcolor='black' width=120 "+tbl_mover+" "+tbl_mout+" style='cursor:hand'>"; 4611 for (i=0;i < cat2array.length;i++){ 4612 if (cat2array[i][0]==cate1){ 4613 //products_href = "products.asp?Cat2Cat1ID="+cat2array[i][0]+"&Cat2ID="+cat2array[i][1]; 4614 var products_href = "items~"+cat2array[i][0]+"~"+cat2array[i][1]+".htm"; 4615 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>"; 4616 } 4617 } 4618 4619 end_div = "<\/table>"; 4620 document.getElementById("Cat2lay").innerHTML = start_div+mid_div+end_div; 4621 document.getElementById("Cat2lay").style.display = 'block' 4622 4623} 4624} 4625 4626 4627function Cat_mouseout(){ 4628 if (document.getElementById("Cat2lay").style.display == 'block') 4629 var timer = setTimeout('close_menus()',2500); 4630} 4631 4632function close_menus(){ 4633 if (glbl_bln_oncat2 == 0){ 4634 document.getElementById("Cat2lay").style.display = 'none'
4635 glbl_int_cat1_menu_num = -1; 4636 } 4637} 4638 4639 4640function Cat2_mouseover(i){ 4641 glbl_bln_oncat2 = 1; 4642 eval("document.all.cat2mo"+i+".style.backgroundColor='#898989'") 4643 eval("document.all.cat2mo"+i+".style.color='white'") 4644} 4645 4646function Cat2_mouseout(i){ 4647 glbl_bln_oncat2 = 0; 4648 eval("document.all.cat2mo"+i+".style.backgroundColor='#898989'") 4649 eval("document.all.cat2mo"+i+".style.color='#000000'") 4650} 4651 4652function opendiv(cat1id){ 4653 if (eval("document.all.tbl_"+cat1id+".style.display") == 'none'){ 4654 eval("document.all.pic_"+cat1id+".src = 'images/minus.gif'") 4655 eval("document.all.tbl_"+cat1id+".style.display = 'block'") 4656 } 4657 else{ 4658 eval("document.all.pic_"+cat1id+".src = 'images/plus.gif'") 4659 eval("document.all.tbl_"+cat1id+".style.display = 'none'") 4660 } 4661 4662} 4663 4664function directcat1(cid){ 4665 eval("cat2array = cat1_"+cid+"_cat2array") 4666 found_cat2 = 0; 4667 for (i=0;i < cat2array.length;i++){ 4668 if (cat2array[i][0] == cid){ 4669 found_cat2 = cat2array[i][1] 4670 break 4671 } 4672 } 4673 if (found_cat2 == 0){ 4674 //document.location='products.asp?Cat2Cat1ID='+cid; 4675 document.location='items~'+cid+'.htm'; 4676 } 4677 else{ 4678 //document.location='products.asp?Cat2Cat1ID='+cid+'&Cat2ID='+found_cat2; 4679 document.location='items~'+cid+'~'+found_cat2+'.htm'; 4680 } 4681} 4682 4683function subserach(){ 4684 if ((IsEmptyStr('document.all.srch_str.value')) || (document.all.srch_str.value.length > 1) || document.all.srch_manufact.value != ""){ 4685 document.quicksearch.qsearch.value = document.all.srch_str.value 4686 document.quicksearch.qmanufact.value = document.all.srch_manufact.value 4687 document.quicksearch.submit() 4688 } 4689} 4690 4691function chkchr(){ 4692 if (window.event.keyCode == 13) 4693 subserach() 4694} 4695 4696 4697function setCartInfo(xml,p,t){ 4698 4699 var e 4700 4701 var cartarray = xml.split("{|}"); 4702 var p = cartarray[1]; 4703 var t = cartarray[2]; 4704 4705 //var p = $(xml).find('PRICE').text(); 4706 //var t = $(xml).find('QUANTITY').text(); 4707 4708 if (p != "" && t != "" && p != "undefined" && t != "undefined"){ 4709 try 4710 { 4711 $("#cartQuantity").html(t); 4712 $("#cartPrice").html(p); 4713 //var cartp = document.getElementById("cartPrice"); 4714 //var cartq = document.getElementById("cartQuantity"); 4715 var cartpTR = document.getElementById("cartPriceTR"); 4716 var cartqTR = document.getElementById("cartQuantityTR"); 4717 var carteTR = document.getElementById("cartEmptyTR"); 4718 carteTR.style.display = 'none'; 4719 //cartp.innerHTML = p; 4720 //cartq.innerHTML = t; 4721 cartpTR.style.display = ''; 4722 cartqTR.style.display = ''; 4723 } 4724 catch(e){}; 4725 } 4726 else{ 4727 try 4728 { 4729 var carteTR = document.getElementById("cartEmptyTR"); 4730 carteTR.style.display = ''; 4731 } 4732 catch(e){} 4733 } 4734} 4735 4736// Floating banners // 4737var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1 4738 4739function positionit(pos,div,w,h,ho,vo){ 4740 //ho = HorizontalOffset //vo = VerticalOffset; 4741 var bannerObj=ie? eval("document.all."+div) : document.getElementById? document.getElementById(div) : eval("document."+div) 4742 var dsocleft=ie? document.body.scrollLeft : pageXOffset 4743 var dsoctop=ie? document.body.scrollTop : pageYOffset 4744 var window_width=ie? document.body.clientWidth : window.innerWidth-20 4745 4746 if (ie||document.getElementById){ 4747 if(pos == "L") 4748 bannerObj.style.left=parseInt(dsocleft)+5+ho 4749 else 4750 bannerObj.style.left=parseInt(dsocleft)+parseInt(window_width)-w-ho 4751 bannerObj.style.top=parseInt(dsoctop)+5+vo 4752 } 4753 else if (document.layers){ 4754 if(pos == "L"){ 4755 bannerObj.left=dsocleft+5+ho 4756 bannerObj.top=dsoctop+5+vo 4757 } 4758 else{ 4759 bannerObj.left=dsocleft+window_width-ho-w 4760 bannerObj.top=dsoctop+window_height+5+vo 4761 } 4762 } 4763} 4764 4765function beingFloatingBanners(){ 4766 var window_width=ie? document.body.clientWidth : window.innerWidth-20 4767 4768 if(window_width > 1100){ 4769 if (document.getElementById("FloatBNRight").innerHTML.length > 20 ){ 4770 document.getElementById("FloatBNRight").style.display='block'; 4771 setInterval("positionit('R','FloatBNRight',80,200,25,0)",50); 4772 } 4773 if (document.getElementById("FloatBNLeft").innerHTML.length > 20 ){ 4774 document.getElementById("FloatBNLeft").style.display='block'; 4775 setInterval("positionit('L','FloatBNLeft',80,200,2,0)",50); 4776 } 4777 } 4778 4779} 4780</script>
4780 4781 4782 4783 4784 4785 4786 4787 4788
4788<script> 4789 4790 4791 4792 4793 4794$( document ).ready(function() { 4795 4796 4797 4798 $( ".first_layer" ).delegate( "*", "focus blur", function() { 4799 var elem = $( this ); 4800 if(elem.is(":focus") == true ){ 4801 elem.parent().addClass( "active" ); 4802 } 4803 else { 4804 elem.parent().removeClass( "active" ); 4805 } 4806 }); 4807 4808 4809 4810 $("body").on( "click", ".product_add_to_cart_button", function(){ 4811 4812 var product_ids =''; 4813 $(".item_checkbox_input:checked").each( function(){ 4814 if ( $(this).parents(".boxItem").find(".product_son").length ) { 4815 product_ids = product_ids + $(this).parents(".boxItem").find(".product_son:checked").val()+ ", "; 4816 } 4817 else 4818 { 4819 if ( $(this).val() != '' ){ 4820 product_ids = product_ids + $(this).val() + ", "; 4821 } 4822 } 4823 }); 4824 4825 if ( product_ids != '' ){ 4826 product_ids = product_ids.substring(0, product_ids.length - 2); 4827 4828 $.post( "/cartLogic.asp?ajax=1", { pid:product_ids } ).done(function( data ) { 4829 RenderAllCarts(); 4830 OpenSmallCart(); 4831 }); 4832 } 4833 return false; 4834 }); 4835 4836 4837 4838 4839 $("body").on( "click", "#product_multi_checkbox", function(){ 4840 4841 if ( $(this).is(":checked") ) 4842 { 4843 $(".item_checkbox_input").each (function(){ 4844 $(this).prop("checked",true); 4845 }); 4846 } 4847 else 4848 { 4849 $(".item_checkbox_input").each (function(){ 4850 $(this).prop("checked",false); 4851 }); 4852 } 4853 4854 }); 4855 4856 }); 4857 4858 $(document).ready(function() { 4859 4860 4861 // Hide the div when clicking the close icon 4862 $(document).on('click', '.close-icon', function() { 4863 $(this).parent().hide(); 4864 }); 4865 4866 // Hide the div when clicking outside of it 4867 $(document).click(function(event) { 4868 var $target = $(event.target); 4869 if(!$target.closest('.mobile_search_form').length && $('.mobile_search_form').is(":visible")) { 4870 $('.mobile_search_form').hide(); 4871 } 4872 4873 if(!$target.closest('#mobile_minicart').length && $('#mobile_minicart').is(":visible")) { 4874 $('#mobile_minicart').hide(); 4875 } 4876 }); 4877 4878 4879}); 4880 4881 4882(() => { 4883 const prefix = 'animate__'; 4884 4885 function play(el, anim) { 4886 const trimmedAnim = anim.trim(); 4887 const cls = `${prefix}${trimmedAnim}`; 4888 el.classList.add(`${prefix}animated`, cls); 4889 el.addEventListener('animationend', () => { 4890 el.classList.remove(cls); 4891 }, { once: true }); 4892 } 4893 4894 function stripAnimate(el) { 4895 // remove any animate.css classes that might have been pre-added 4896 el.className = el.className.replace(/\banimate__\S+/g, '').trim(); 4897 } 4898 4899 let io = null; 4900 4901 function getObserver() { 4902 if (io) return io; 4903 const prefersReduced = matchMedia('(prefers-reduced-motion: reduce)').matches; 4904 4905 // If your items scroll inside a container, set root to that container 4906 // const rootEl = document.querySelector('.your-scrollable-wrapper'); 4907 4908 io = new IntersectionObserver((entries, obs) => { 4909 entries.forEach(entry => { 4910 if (!entry.isIntersecting || entry.intersectionRatio < 0.01) return; 4911 4912 const el = entry.target; 4913 const anim = el.getAttribute('data-animation'); 4914 4915 if (prefersReduced) { 4916 el.classList.add(`${prefix}animated`); // reveal without motion 4917 } else { 4918 play(el, anim); 4919 } 4920 4921 obs.unobserve(el); // animate once 4922 }); 4923 }, { 4924 root: null, // change to rootEl if not window scrolling 4925 threshold: 0.01, 4926 rootMargin: '0px 0px -5% 0px' 4927 }); 4928 return io; 4929 } 4930 4931 // Observe every element that declares data-animation inside `root` (root itself included). 4932 // Runs once on DOM ready and again for every node injected later (infinite scroll, 4933 // lazyscroll blocks, ajax popups) - otherwise those stay at opacity:0 forever because 4934 // nothing ever adds animate__animated to them. 4935 function observeAnimations(root) { 4936 const scope = root || document; 4937 const items = Array.prototype.slice.call(scope.querySelectorAll('[data-animation]')); 4938 if (scope.nodeType === 1 && scope.hasAttribute('data-animation')) items.unshift(scope); 4939 if (!items.length) return; 4940 4941 const obs = getObserver();
4942 items.forEach(el => { 4943 if (el.dataset.esAnimObserved === '1') return; // already handled (or already played) 4944 el.dataset.esAnimObserved = '1'; 4945 stripAnimate(el); 4946 obs.observe(el); 4947 }); 4948 } 4949 4950 function bootAnimations() { 4951 observeAnimations(document); 4952 if (!window.MutationObserver || !document.body) return; 4953 if (window.__esAnimObserver) return; 4954 window.__esAnimObserver = new MutationObserver(mutations => { 4955 mutations.forEach(mutation => { 4956 mutation.addedNodes.forEach(node => { 4957 if (node.nodeType === 1) observeAnimations(node); 4958 }); 4959 }); 4960 }); 4961 window.__esAnimObserver.observe(document.body, { childList: true, subtree: true }); 4962 } 4963 4964 window.es_observe_animations = observeAnimations; 4965 4966 if (document.readyState === 'loading') { 4967 document.addEventListener('DOMContentLoaded', bootAnimations); 4968 } else { 4969 bootAnimations(); 4970 } 4971})(); 4972 4973(function() { 4974 function clearHaClasses(el) { 4975 el.classList.remove('es-ha-in', 'es-ha-out'); 4976 } 4977 4978 function bindHoverAnim(el) { 4979 if (el.dataset.esHaBound === '1') return; 4980 el.dataset.esHaBound = '1'; 4981 4982 el.addEventListener('mouseenter', function() { 4983 clearHaClasses(el); 4984 void el.offsetWidth; 4985 el.classList.add('es-ha-in'); 4986 }); 4987 4988 el.addEventListener('mouseleave', function() { 4989 clearHaClasses(el); 4990 void el.offsetWidth; 4991 el.classList.add('es-ha-out'); 4992 var onEnd = function(e) { 4993 if (e.target !== el || e.animationName === 'none') return; 4994 el.classList.remove('es-ha-out'); 4995 el.removeEventListener('animationend', onEnd); 4996 }; 4997 el.addEventListener('animationend', onEnd); 4998 }); 4999 } 5000 5001 function initEsHoverAnims(root) { 5002 var scope = root || document; 5003 var boxes = scope.querySelectorAll('[id^="designbox_"]'); 5004 boxes.forEach(function(box) { 5005 var candidates = [box].concat(Array.prototype.slice.call(box.querySelectorAll('*'))); 5006 candidates.forEach(function(el) { 5007 try { 5008 if (getComputedStyle(el).getPropertyValue('--es-ha').trim()) { 5009 bindHoverAnim(el); 5010 } 5011 } catch (e) {} 5012 }); 5013 }); 5014 } 5015 5016 function bootEsHoverAnims() { 5017 initEsHoverAnims(document); 5018 if (!window.MutationObserver || !document.body) return; 5019 if (window.__esHoverAnimObserver) return; 5020 window.__esHoverAnimObserver = new MutationObserver(function(mutations) { 5021 mutations.forEach(function(mutation) { 5022 mutation.addedNodes.forEach(function(node) { 5023 if (node.nodeType === 1) initEsHoverAnims(node); 5024 }); 5025 }); 5026 }); 5027 window.__esHoverAnimObserver.observe(document.body, { childList: true, subtree: true }); 5028 } 5029 5030 if (document.readyState === 'loading') { 5031 document.addEventListener('DOMContentLoaded', bootEsHoverAnims); 5032 } else { 5033 bootEsHoverAnims(); 5034 } 5035})(); 5036 5037 5038</script>
5038 5039 5040 5041 5042 5043</head> 5044 5045<body class="page-product he _270 is_desktop " > 5046 5047 5048<div id="fb-root"></div> 5049<div id="pl_web_page"> 5050 <div id="pl_web_page_wrap"> 5051 5052 <div id="scroll-all" style="position: fixed; right: 10px; bottom: 10%; z-index: 100; display: block;z-index: 99999;"> 5053 <div id="scroll-full"></div> 5054 <div id="scroll-bottom"></div> 5055 </div> 5056 5057 5058 <div id="FloatBNLeft" style="display:none;float:left" > 5059 5060 </div> 5061 5062 <div id="FloatBNRight" style="display:none;float:right" > 5063 5064 </div> 5065 5066 <div id="SlidingCart" style="display:none"> 5067 <div id="FlyingCartDiv"> 5068 <div class="confetti-wrapper"></div> 5069 <div id="InnerCartDiv"> 5070 <div class="FlyingCartDivWrap"><div class="emptycart text">èåòï òâìä àðà äîúï...</div></div></div> 5071 5072 <div class="cart_content"> 5073 5074 5075 <div id="cart_add_order_comment" class="cart_content_panel"> 5076 <i class="fal fa-times close"></i> 5077 <h3 class="mb-4">äåñôú äòøä ìäæîðä</h3> 5078 <div class="form-group"> 5079 <textarea class="form-control" aria-label="äåñéôå äòøåú îéåçãåú ìäæîðä (ëîå äðçéåú ìùìéç)" placeholder="äåñéôå äòøåú îéåçãåú ìäæîðä (ëîå äðçéåú ìùìéç)"></textarea> 5080 </div> 5081 <button class="btn btn-block btn-primary" id="save_cart_order_comment">ùîéøú äòøä</button> 5082 </div> 5083 5084 <!-- Content for "Coupon Code" --> 5085 <div id="cart_choose_coupons" class="cart_content_panel"> 5086 <i class="fal fa-times"></i> 5087 <div class="loader" style="display: none;"> 5088 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" style="width:120px; height:120px;"> 5089 <defs> 5090 <linearGradient id="a1" x1="0%" y1="0%" x2="100%"> 5091 <stop offset="0%" stop-color="#000000" stop-opacity="1"></stop> 5092 <stop offset="100%" stop-color="#333333" stop-opacity="1"></stop> 5093 </linearGradient> 5094 </defs> 5095 <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"> 5096 <animateTransform type="rotate" attributeName="transform" calcMode="spline" dur="0.7s" values="360;0" keyTimes="0;1" keySplines="0 0 1 1" repeatCount="indefinite"></animateTransform> 5097 </circle> 5098 <circle transform-origin="center" fill="none" opacity=".2" stroke="black" stroke-width="1.62" stroke-linecap="round" cx="100" cy="100" r="70"></circle> 5099 </svg> 5100 </div> 5101 <div class="panel_content"></div> 5102 5103 <h3 class="mt-4">éù ìê ÷åã ÷åôåï?</h3> 5104 <div class="form-group"> 5105 <input type="text" value="" placeholder="÷åã ÷åôåï" aria-label="÷åã ÷åôåï" class="form-control" name="cart_coupon_code" id="cart_coupon_code"> 5106 <span id="cart_coupon_code_error" class="error"></span> 5107 </div> 5108 <button class="btn btn-block btn-primary" id="apply_cart_coupon">äçì ÷åôåï</button> 5109 </div> 5110 5111 <!-- Content for "Delivery Details" --> 5112 <div id="cart_delivery_details" class="cart_content_panel"> 5113 5114 <i class="fal fa-times"></i> 5115 <h3>ôøèé äîùìåç</h3> 5116 <div class="loader" style="display: none;"> 5117 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" style="width:120px; height:120px;"> 5118 <defs> 5119 <linearGradient id="a1" x1="0%" y1="0%" x2="100%"> 5120 <stop offset="0%" stop-color="#000000" stop-opacity="1"></stop> 5121 <stop offset="100%" stop-color="#333333" stop-opacity="1"></stop> 5122 </linearGradient> 5123 </defs> 5124 <circle transform-origin="center" fill="none" stroke="url
5124(#a1)" stroke-width="7" stroke-linecap="round" stroke-dasharray="200 1000" stroke-dashoffset="0" cx="100" cy="100" r="70"> 5125 <animateTransform type="rotate" attributeName="transform" calcMode="spline" dur="0.7s" values="360;0" keyTimes="0;1" keySplines="0 0 1 1" repeatCount="indefinite"></animateTransform> 5126 </circle> 5127 <circle transform-origin="center" fill="none" opacity=".2" stroke="black" stroke-width="1.62" stroke-linecap="round" cx="100" cy="100" r="70"></circle> 5128 </svg> 5129 </div> 5130 <div class="panel_content"></div> 5131 5132 </div> 5133 5134 5135 </div> 5136 5137
5137<script> 5138 5139 function startConfetti() { 5140 const confettiWrapper = document.querySelector('.confetti-wrapper'); 5141 5142 // Clear any existing confetti 5143 confettiWrapper.innerHTML = ''; 5144 5145 // Show the confetti wrapper 5146 confettiWrapper.style.display = 'block'; 5147 5148 const totalConfetti = 150; // Total number of confetti pieces 5149 let completedConfetti = 0; // Track completed animations 5150 5151 for (let i = 0; i < totalConfetti; i++) { 5152 const confetti = document.createElement('div'); 5153 confetti.classList.add('confetti-piece'); 5154 5155 // Random position, size, and animation duration 5156 confetti.style.left = `${Math.random() * 100}%`; 5157 confetti.style.setProperty('--fall-duration', `${Math.random() * 2 + 1}s`); 5158 confetti.style.setProperty('--confetti-color', getRandomColor()); 5159 5160 // Randomly create rectangles or arcs 5161 if (Math.random() > 0.5) { 5162 const isSmall = Math.random() > 0.7; 5163 const width = isSmall ? `${Math.random() * 5 + 2}px` : `${Math.random() * 10 + 5}px`; 5164 const height = isSmall ? `${Math.random() * 10 + 5}px` : `${Math.random() * 20 + 10}px`; 5165 confetti.style.width = width; 5166 confetti.style.height = height; 5167 } else { 5168 confetti.classList.add('confetti-arc'); 5169 const size = `${Math.random() * 6 + 3}px`; 5170 confetti.style.width = size; 5171 confetti.style.height = size; 5172 confetti.style.setProperty('--arc-rotation', `${Math.random() * 360}deg`); 5173 } 5174 5175 // Add confetti with staggered delays 5176 setTimeout(() => { 5177 confettiWrapper.appendChild(confetti); 5178 5179 // Remove confetti when animation ends 5180 confetti.addEventListener('animationend', () => { 5181 confetti.remove(); 5182 completedConfetti++; 5183 5184 // Hide the wrapper when all confetti is done 5185 if (completedConfetti === totalConfetti) { 5186 confettiWrapper.style.display = 'none'; 5187 } 5188 }); 5189 }, Math.random() * 1000); // Staggered start 5190 } 5191 } 5192 5193 function getRandomColor() { 5194 const colors = [ 5195 '#ff6347', '#ffa500', '#32cd32', '#1e90ff', '#ff69b4', 5196 '#9400d3', '#00ced1', '#f4a460', '#7fff00', '#ff4500' 5197 ]; 5198 return colors[Math.floor(Math.random() * colors.length)]; 5199 } 5200 5201 5202$(document).ready(function () { 5203 5204 $("body").on("click", "#SlidingCart .coupon_box" , function(){ 5205 var current_coupon = $(this).find(".code").text(); 5206 $("#cart_coupon_code").val(current_coupon); 5207 5208 }); 5209 $("#apply_cart_coupon").on("click",function(){ 5210 let coupon_is_valid = true; 5211 const cart_coupon_code = $("#cart_coupon_code"); 5212 if (!cart_coupon_code.val()) { 5213 coupon_is_valid = false; 5214 cart_coupon_code.css("border", "1px solid red"); 5215 $("#cart_coupon_code_error").text("Type coupon code"); // Show error 5216 } else { 5217 cart_coupon_code.css("border", ""); 5218 $("#cart_coupon_code_error").text(""); // Clear error 5219 } 5220 if (coupon_is_valid){ 5221 5222 5223 $.get("/services/CartServices.asp?service=setcoupon&CouponCode=" + cart_coupon_code.val(), function (data) 5224 { 5225 answer = data.split("|"); 5226 if (answer[0] == "1") 5227 { 5228 RenderAllCarts(); 5229 $(".cart_content_panel").removeClass("active"); 5230 $(".FlyingCartDivWrap").removeClass("opacity"); 5231 startConfetti(); 5232 } 5233 else 5234 { 5235 if (answer[1] != "") 5236 { 5237 $("#cart_coupon_code_error").text(answer[1]); // Show error 5238 } 5239 return false;
5240 } 5241 5242 }); 5243 } 5244 }); 5245 5246 // Save the comment to localStorage on button click 5247 $("#save_cart_order_comment").on("click", function () { 5248 const commentTextarea = $("#cart_add_order_comment textarea"); 5249 const comment = commentTextarea.val().trim(); // Get the value of the textarea 5250 5251 if (comment) { 5252 localStorage.setItem("order_comment", comment); // Save to localStorage 5253 commentTextarea.val(comment); // Clear the textarea after saving 5254 } else { 5255 5256 } 5257 $(".cart_content_panel").removeClass("active"); 5258 $(".cart_content").removeClass("active"); 5259 $(".FlyingCartDivWrap").removeClass("opacity"); 5260 }); 5261 5262 // Optional: Load saved comment on page load 5263 const savedComment = localStorage.getItem("order_comment"); 5264 if (savedComment) { 5265 $("#cart_add_order_comment textarea").val(savedComment); // Populate the textarea with the saved comment 5266 } 5267 5268 // Handle tab clicks to open panels 5269 $("body").on( "click", ".cart_tab", function (e) { 5270 5271 $(".FlyingCartDivWrap").addClass("opacity"); 5272 const targetid = $(this).attr("data-target"); 5273 const targetPanel = $($(this).data("target")); 5274 5275 // Check if the target panel exists 5276 if (targetPanel.length) { 5277 // Show the loader if the panel is empty 5278 const loader = targetPanel.find(".loader"); 5279 const panelContent = targetPanel.find(".panel_content"); 5280 5281 if (targetid == "#cart_choose_coupons"){ 5282 var url = "/siteservices.asp?service=get_cart_tab¶ms=cart_choose_coupons" ; 5283 } 5284 5285 if (targetid == "#cart_delivery_details"){ 5286 var url = "/siteservices.asp?service=get_cart_tab¶ms=cart_delivery_details" ; 5287 } 5288 5289 if ( targetid != "#cart_add_order_comment" ) { 5290 if (!panelContent.html().trim() ) { 5291 loader.show(); // Show the loader 5292 5293 $.ajax({ 5294 url: url , // Replace with your endpoint URL 5295 method: "GET", 5296 dataType: "html", 5297 success: function (response) { 5298 panelContent.html(response); // Insert the HTML content 5299 loader.hide(); // Hide the loader 5300 }, 5301 error: function () { 5302 loader.hide(); // Hide the loader on error 5303 }, 5304 }); 5305 5306 } 5307 } 5308 5309 $(".cart_content_panel").removeClass("active"); 5310 // Close all panels and open the current one 5311 $(".content_panel").removeClass("active"); 5312 targetPanel.addClass("active"); 5313 $(".cart_content").addClass("active"); 5314 5315 } 5316 5317 return false; 5318 }); 5319 5320 5321 // Handle clicking outside to close panels 5322 $(document).on("click", function (e) { 5323 if ( 5324 !$(e.target).closest(".cart_tabs").length && 5325 !$(e.target).closest(".cart_content").length 5326 ) { 5327 $(".cart_content_panel").removeClass("active"); 5328 $(".cart_content").removeClass("active"); 5329 $(".FlyingCartDivWrap").removeClass("opacity"); 5330 } 5331 }); 5332 5333 // Handle "fa-times" click to close the specific panel 5334 $(".fal.fa-times").on("click", function (e) { 5335 e.stopPropagation(); // Prevent triggering the document click listener 5336 const parentPanel = $(this).closest(".cart_content_panel"); 5337 if (parentPanel.length) { 5338 parentPanel.removeClass("active"); 5339 $(".cart_content").removeClass("active"); 5340 $(".FlyingCartDivWrap").removeClass("opacity"); 5341 } 5342 }); 5343}); 5344 </script>
5344 5345 5346 <div class="empty" id="CartIcon"> 5347 <span id="floatingcart-total"></span> 5348 <i class="fal fa-shopping-cart icon " aria-hidden="true"></i> 5349 </div> 5350 </div> 5351 5352 </div> 5353 5354 5355 <div id="Cat2lay"></div> 5356 5357 5358 <div align="center" id="MainWrapDiv" > 5359 <div align="center" id="MainContentDiv" > 5360 5361 5362 <!--[ header start ]--> 5363 5364 5365 5366 5367 <div id="header" class="header"> 5368 5369 5370 <div class="header_wrap"> 5371 <div class="container_16 wrap " > 5372 <!--[ start_userbar_6 ]--> 5373 <div class=" lazyload designbox header_userbar" id="designbox_6" > 5374 5375 </div><!--[ end_userbar_6 ]--><!--[ start_menu_7 ]--> 5376 <div class=" designbox header_menu" id="designbox_7" > 5377 5378 5379 <div class="block menu grid_16" > 5380 5381 <div class="content "> 5382 5383 <ul class="dropdown-menu "> 5384 5385 <li class=" first parent"> 5386 <a class="" href="/" ><span>øàùé</span></a> 5387 </li> 5388 <li class=" parent"> 5389 <a class="" href="/infopage.asp?page=183" ><span>àåãåúéðå</span></a> 5390 </li> 5391 <li class=" parent"> 5392 <a class="" href="/infopage.asp?page=216" ><span>ú÷ðåï </span></a> 5393 </li> 5394 <li class=" parent"> 5395 <a class="" href="/infopage.asp?page=190" ><span>á÷øåá</span></a> 5396 5397 <ul> 5398 <li class=""><a class="" href="/infopage.asp?page=198" ><span>îàîø øàùåï</span></a> 5399 5400 5401 5402 </li><li class=""><a class="" href="/infopage.asp?page=199" ><span>îàîø ùðé</span></a> 5403 5404 5405 5406 </li><li class=""><a class="" href="/infopage.asp?page=200" ><span>îàîø ùìéùé</span></a> 5407 5408 5409 5410 </li> 5411 </ul> 5412 5413 </li> 5414 <li class=" parent"> 5415 <a class="" href="contact.asp?page=184" ><span>öåø ÷ùø</span></a> 5416 </li> 5417 </ul> 5418 </div></div> 5419 5420 5421
5421<script type="text/javascript" > 5422 $(document).ready(function(){ 5423 5424 5425 $("ul.dropdown-menu").supersubs({ 5426 minWidth: 12, 5427 maxWidth: 27, 5428 delay: 0, 5429 extraWidth: 1 5430 }).superfish(); 5431 5432 }); 5433 </script>
5433 5434 </div><!--[ end_menu_7 ]--><!--[ start_header_banner1_12 ]--> 5435 <div class=" designbox header_header_banner1" id="designbox_12" > 5436 5437 5438 <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> 5439 </div><!--[ end_header_banner1_12 ]--><!--[ start_header_banner2_13 ]--> 5440 <div class=" designbox header_header_banner2" id="designbox_13" > 5441 5442 5443 <div class="header-banner2 banner-div" ></div> 5444 </div><!--[ end_header_banner2_13 ]--><!--[ start_breadcrumb_33 ]--> 5445 <div class=" lazyload designbox header_breadcrumb" id="designbox_33" > 5446 5447 </div><!--[ end_breadcrumb_33 ]--><!--[ start_header_banner3_14 ]--> 5448 <div class=" designbox header_header_banner3" id="designbox_14" > 5449 5450 5451 <div class="header-banner3 banner-div" ></div> 5452 </div><!--[ end_header_banner3_14 ]--><!--[ start_header_banner4_15 ]--> 5453 <div class=" designbox header_header_banner4" id="designbox_15" > 5454 5455 5456 <div class="header-banner4 banner-div" ></div> 5457 </div><!--[ end_header_banner4_15 ]--> 5458 </div> 5459 </div> 5460 5461 </div> 5462 5463 <!--[ header end ]--> 5464 <div id='mobile_header_holder'></div> 5465 <!--[ content start ]--> 5466 5467<div class="maindivCenter container_16 page-columns-2 "> 5468<div class="maindivCenter-wrap"> 5469 5470 5471 <table cellpadding="0" cellspacing="0" class="tlb_main" > 5472 <tr> 5473 <td valign="top"> 5474 5475 </td> 5476 <td valign="top" class = "mainTD" align="center" > 5477 <div class = "mainTDWrap grid_12" > 5478 <div class = "mainTDcontainer" > 5479 5480 5481 5482 <div class="AllPagesContent_banner banner-div"></div> 5483 5484 5485 5486<table cellpadding=0 cellspacing=0 border=0 width=98% height=100%> 5487<tr> 5488<td valign="top" width=100%> 5489 5490<table cellpadding=0 cellspacing=0 border=0 width=100% onmouseover="Cat_mouseout()"> 5491 5492<tr> 5493 <td><img src="images/transparent.gif" class="transparent-img" width="1" height="4" border="0" alt=""></td> 5494</tr> 5495 5496<tr> 5497 <td><img src="images/transparent.gif" class="transparent-img" width="380" height="10" border="0" alt=""></td> 5498</tr> 5499 5500 <tr> 5501 <td> 5502 5503 <div class="Specific_Product banner-div"></div> 5504 5505 </td> 5506 </tr> 5507 5508<table cellspacing="0" cellpadding="0" border="0" class="ProductPageTbl" > 5509 <tr> 5510 <td> 5511 5512 <div ee_product_id="270" ee_product_itemident="270" ee_product_brand="Pocketbook" ee_product_name="÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 " ee_product_category="÷åøàé ñôøéí àì÷èøåðéí Pocketbook" quan_base="1" quan_multiply="1" itemscope itemtype="http://schema.org/Product" class="ProductPageSection "> 5513 <div class="wrap"> 5514 <div class="content"> 5515 <div itemprop="url" style='display:none'>https://www.medicon.co.il/pl_product~270~2~0.htm</div> 5516 5517 5518 <div class=product_header_wrap> 5519 <div class="item-name" tabindex="0"><h1 itemprop="name">÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </h1></div> 5520 5521 <div class="product-images grid_6 alpha "> 5522 5523 5524 <div id="imgBigDIV" class="image targetarea " > 5525 5526 <img id="multizoom1" data-zoom-image="/images/itempics/270_200720220205431.jpg" 5527 title="÷åøà ñôøéí àì÷èøåðé PocketBook E
5527RA Lite PB710 " alt="÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 " itemprop="image" src='/images/itempics/270_200720220205431_large.jpg' /> 5528 5529 </div> 5530 5531 <div id="enlargeIcon"> 5532 <a href="#" rel = "nofollow" onclick="$.prettyPhoto.open(['/images/itempics/270_200720220205431.jpg','/images/itempics/270_200720220205432.jpg'],['','',''],['','','']); return false;"><span>ìçõ ìäâãìä</span></a> 5533 </div> 5534 5535 <input type="hidden" name="imgbigNum" id="imgbigNum" /> 5536 5537 5538 5539 <div id="product-thumbnails" class="product-thumbnails multizoom1 thumbs "> 5540 <ul> 5541 5542 5543 <li> 5544 <a data-lens="true" data-image="/images/itempics/270_200720220205431_large.jpg" data-zoom-image="/images/itempics/270_200720220205431.jpg" class="image" data-large="/images/itempics/270_200720220205431.jpg" href="/images/itempics/270_200720220205431_large.jpg" ><span></span><img src="/images/itempics/270_200720220205431_small160.jpg" alt="÷åøà ñôøéí àì÷èøåðé Pocketbook Era øåñéú, òáøéú, àðâìéú áîìàé îééãé" /></a> 5545 </li> 5546 5547 <li> 5548 <a data-lens="true" data-image="/images/itempics/270_200720220205432_large.jpg" data-zoom-image="/images/itempics/270_200720220205432.jpg" class="image" data-large="/images/itempics/270_200720220205432.jpg" href="/images/itempics/270_200720220205432_large.jpg" ><span></span><img src="/images/itempics/270_200720220205432_small160.jpg" alt="÷åøà ñôøéí àì÷èøåðé Pocketbook Era øåñéú, òáøéú, àðâìéú áîìàé îééãé" /></a> 5549 </li> 5550 5551 </ul> 5552 </div> 5553 5554
5554<script type="text/javascript" > 5555 $(document).ready(function() 5556 { 5557 enlargeIcon(); 5558 5559 $('#multizoom1').addimagezoom({ 5560 speed: 1500, 5561 descpos: true, 5562 imagevertcenter: true, 5563 magvertcenter: true, 5564 zoomrange: [2, 3], 5565 magnifiersize: [450,450], 5566 magnifierpos: 'right', 5567 cursorshadecolor: '#fdffd5', 5568 cursorshade: true 5569 }); 5570 5571 5572 5573 }); 5574 5575 var enlargetxt = "<span>ìçõ ìäâãìä</span>" ; 5576 5577 5578 $(".product-thumbnails li:first-child .image").addClass("current"); 5579 5580 5581 5582 clickcounter=0; 5583 $("body").on("click",".product-thumbnails .image",function() 5584 { 5585 //console.log("clickcounter=" + clickcounter); 5586 $(".product-thumbnails .image").removeClass("current"); 5587 $(this).addClass("current"); 5588 5589 if ( !$(this).hasClass("youtube") ) 5590 { 5591 5592 5593 5594 enlargeIcon(); 5595 5596 5597 5598 5599 } 5600 else 5601 { 5602 // $("#imgBigDIV").html("<iframe height='"+$("#imgBigDIV").height() +"' src='"+$(this).attr("href")+"&rel=1&autoplay=1' frameborder='0' allowfullscreen width='"+$("#imgBigDIV").width() +"' ></iframe>"); 5603 // var height = $("#imgBigDIV").height() - 5 *1 5604 // var width = $("#imgBigDIV").width() - 5 *1 5605 // var src = $(this).attr("href") 5606 // $("#imgBigDIV").html("<iframe width='"+ width +"' height='"+height+"' src='" + src + "&rel=1&autoplay=1' frameborder='0' allowfullscreen></iframe>"); 5607 // $("#imgBigDIV iframe").attr("src",$(this).attr("href")+"&rel=1&autoplay=1"); 5608 } 5609 5610 if (cookieconsent == true) { 5611 5612 } 5613 clickcounter = clickcounter + 1; 5614 return false; 5615 }); 5616 5617 5618 5619 function enlargeIcon() 5620 { 5621 if ( $(".product-thumbnails .image").hasClass("current") ) 5622 { 5623 var current_thumb = $(".product-thumbnails .image.current"); 5624 5625 var currentimg = $(current_thumb).attr("data-large"); 5626 var imagesstring = "['" + currentimg + "'" ; 5627 $(".product-thumbnails .image").each(function() 5628 { 5629 if ( !$(this).hasClass("youtube") ) 5630 { 5631 if ($(this).attr("data-large") != currentimg) 5632 { 5633 imagesstring = imagesstring + ",'" + $(this).attr("data-large") + "'" 5634 } 5635 } 5636 }); 5637 5638 imagesstring = imagesstring + "]" 5639 5640 $("#enlargeIcon").html("<a rel = 'nofollow' href='#' onclick=\"$.prettyPhoto.open("+imagesstring+",['','',''],['','','']);return false;\" >"+enlargetxt+"</a>"); 5641 5642 } 5643 5644 } 5645 function fw_changeImg(imgId) 5646 { return false; 5647 var enlargetxt = "<span>ìçõ ìäâãìä</span>" ; 5648 if (imgId == 1) 5649 { 5650 5651 document.getElementById("enlargeIcon").innerHTML = "<a rel = 'nofollow' href='#' onclick=\"$.prettyPhoto.open(['/images/itempics/270_200720220205431.jpg','/images/itempics/270_200720220205432.jpg'],['','',''],['','','']);return false;\" >"+enlargetxt+"</a>"; 5652 } 5653 if (imgId == 2) 5654 { 5655 5656 document.getElementById("enlargeIcon").innerHTML = "<a rel = 'nofollow' href='#' onclick=\"$.prettyPhoto.open(['/images/itempics/270_200720220205432.jpg','/images/itempics/270_200720220205431.jpg'],['','',''],['','','']);return false;\" >"+enlargetxt+"</a>"; 5657 } 5658 if (imgId == 3) 5659 { 5660 5661 document.getElementById("enlargeIcon").innerHTML = "<a rel = 'nofollow' href='#' onclick=\"$.prettyPhoto.open(,['','',''],['','','']);return false;\" >"+enlargetxt+"</a>"; 5662 } 5663 return false; 5664 } 5665 </script>
5665 5666 5667 <div class="product-icons grid_6 omega "> 5668 5669 </div> 5670 5671 5672 5673 5674 5675 </div> 5676 5677 <div itemprop="description" class="product-short-desc grid_6 omega " tabindex="0">îñê E Ink Carta 1300 äçãù áâåãì 7 àéðõ' îùôø àú ðéâåãéåú äúîåðä á-15% åîùôø àú æîï äúâåáä ùì îñê äîâò á-20%.</div> 5678 5679 <div class="product-details regular grid_6 omega"> 5680 <style> 5681 ul.row.product-details-ul>li .details_wrap:hover{ 5682 5683 5684 background: !important; 5685 color: ; 5686 } 5687 .page-product .qtip-light{ 5688 background: !important; 5689 color: ; 5690 } 5691 5692 5693 5694 </style><ul class=" product-details-ul "> 5695 <li class="manufact " itemprop="brand" itemscope itemtype="http://schema.org/Brand"> 5696 <div class="details_wrap" tabindex="0" style="border-color:;background:; box-shadow: !important; color: ; font-size: ; font-weight: ;"> 5697 5698 <div class="label_wrap" > 5699 <span class="name">éöøï: </span> 5700 <span class="value" itemprop="name"><a rel='nofollow' target='_blank' href='https://pocketbook.ch/en-ch/catalog/e-readers/pocketbook-era-lite-ch'>Pocketbook</a></span> 5701 </div> 5702 5703 </div> 5704 </li> 5705 5706 <li class="model "> 5707 <div class="details_wrap" tabindex="0" style="border-color:;background:; box-shadow: !important; color: ; font-size: ; font-weight: ;"> 5708 5709 <div class="label_wrap"> 5710 <span class="name">î÷è:</span> 5711 <span class="value">270</span> 5712 </div> 5713 5714 </div> 5715 </li> 5716 5717 5718 <li class="supplier "> 5719 <div class="details_wrap" tabindex="0" style="border-color:;background:; box-shadow: !important;"> 5720 5721 <div class="label_wrap"> 5722 <span class="name">ñô÷:</span> 5723 <span class="value">Jetracom</span> 5724 </div> 5725 5726 </div> 5727 </li> 5728 </ul> 5729 5730
5730<script> 5731 5732 5733 5734 $(".delivery-price-toggle").each(function() 5735 { 5736 // $(this).html("¤0 - ¤50.00"); 5737 $(this).html("ìçõ ëàï"); 5738 }); 5739 5740 5741 5742 </script>
5742 5743 5744 </div> 5745 5746 <div class="properties property_name_show" > 5747 5748 </div> 5749 5750 5751 5752 <div id="product-prices-div" class="product-prices grid_6 omega "> 5753 <div class="prices-box" > 5754 5755 <strike class="reg-price" tabindex="0"> 5756 5757 <span class="name">øâéì</span> 5758 <span class="sr-only">øâéì</span> 5759 <span class="value"><em>¤</em><span price="930.00" id="total_regularprice" class="toal_regularprice_view">930.00</span></span> 5760 </strike> 5761 5762 5763 <p class="sale-price" > 5764 5765 <span class="name">îáöò </span> 5766 <span class="value" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 5767 <em>¤</em> 5768 5769 <span itemprop="price" class='toal_saleprice_view' tabindex="0" price="859.00" content="859.00" id="total" class="toal_saleprice_view"> 5770 859.00 5771 </span> 5772 5773 5774 <span style='display:none' itemprop="priceCurrency">ILS</span> 5775 <span style='display:none' itemprop="priceValidUntil">2027-09-29</span> 5776 5777 5778 <span style="display:none"><link itemprop="availability" href="http://schema.org/InStock" />In stock</span> 5779 5780 5781 <span itemprop="url" style='display:none'>https://www.medicon.co.il/pl_product~270~2~0.htm</span> 5782 5783 </span> 5784 5785 5786 <span itemprop="brand" itemscope itemtype="http://schema.org/Brand" style='display:none'>Pocketbook 270</span> 5787 <span itemprop="sku" style='display:none'>270</span> 5788 </p> 5789 5790 </div> 5791 5792 <input type="hidden" size="3" name="quant" id="quant" value="1" /> 5793 5794 <div class="order-button " > 5795 5796 5797 <a href="#" rel = "nofollow" class="add-to-cart btn-primary btn-link" onclick="addme_cart('270',0,$('#quant').val(),'','','','','0');return false;" ><span>÷ðä òëùéå</span></a> 5798 5799 5800 5801 </div> 5802 5803 5804 <div id="Product_AddToCart_message" class="hide" ></div> 5805 </div> 5806 5807 <div class="product-details buywithus grid_6 omega"> 5808 <h3>îãåò ì÷ðåú àöìðå?</h3> 5809 <p>ùéøåú ì÷åçåú î÷öåòé, îçéøéí àèø÷èéáééí åæîðé àñô÷ä îäéøéí!</p> 5810 5811 <ul class="product-details-ul"> 5812 <li class="warranty"> 5813 <span class="name">àçøéåú:</span> 5814 <span class="value">24çåãùéí</span> 5815 </li> 5816 5817 <li class="warrantytext"> 5818 <span class="name">àçøéåú:</span> 5819 <span class="value"> ò"é äéáåàï Jetracom </span> 5820 </li> 5821 5822 <li class="payments"> 5823 <span class="name">îñôø úùìåîéí ììà øéáéú: </span> 5824 <span class="value">12</span> 5825 </li> 5826 5827 <li class="delivery"> 5828 <span class="name">æîï àñô÷ä:</span> 5829 <span class="value">òã<em>2</em>éîé òñ÷éí</span> 5830 </li> 5831 </ul> 5832 5833 5834 <div id="checkout-icons" class="footer"> 5835 <span id="checkout-icons-credits"> 5836 5837 <img alt='visa' src='/images/visa.png'><img alt='isracard' src='/images/isracard.png'><img alt='mastercard' src='/images/mastercard.png'> 5838 <img src='/images/paypalcard.png'> 5839 5840 5841 </span> 5842 5843 </div> 5844 </div> 5845 5846 <div class="facebook-buttons default_layout"> 5847 <div class="fb-like" data-href="https://www.medicon.co.il/pl_product~270~2~0.htm" data-layout="button" data-action="like" data-show-faces="false" data-share="true"></div></div> 5848<div class="product-tools grid_8 omega "> 5849 <ul class="product-tools-ul"> 5850 <li class="add-this-widget"></li> 5851 5852 5853 <li class="print"> 5854 <a href="#" rel="nofollow" class="name" onclick="window.open('/print.asp?pid=270',null,'menubar=yes,scrollbars=yes,width=650,height=768');return false;" aria-label='äãôñ îôøè îåöø'><span class="value">äãôñ îôøè îåöø</span></a> 5855 </li> 5856 5857 5858 5859 <li class="send-to-friend"> 5860 <a rel="nofollow" class="fancybox iframe name" target = "_blank" href="https://www.medicon.co.il/sendtofriend.asp?isiframe=1&i=270" aria-label='ùìç ìçáø'><span class="value">ùìç ìçáø</span></a> 5861 </li> 5862 5863 <li class="contact"> 5864 <a target="_blank" class="fancybox iframe name" rel="nofollow" href="https://www.medicon.co.il/contact.asp?isiframe=1" aria-label='öåø ÷ùø'><span class="value">öåø ÷ùø</span></a> 5865 </li> 5866 5867 5868 5869 <li class="alert-price"> 5870 <a target="_blank" rel="nofollow" class="fancybox iframe name" href="https://www.medicon.co.il/product_alert.asp?AlertType=1&itemident=270" aria-label='äúøàú îçéø'><span class="value">äúøàú îçéø</span></a> 5871 </li> 5872 5873 5874 <li class="payments" > 5875 <a href="#" class="name" rel="nofollow" onclick="return OpenPaymentsWindow();" aria-label='èáìú úùìåîéí'><span class="value">èáìú úùìåîéí</span></a> 5876 </li> 5877 5878 </ul> 5879 </div> 5880 5881
5881<script> 5882 $("body").on("mouseover", ".product-tools-ul .name", function (event) { 5883 var obj = this; 5884 $(this).qtip({ 5885 overwrite: false, 5886 position: { 5887 5888 my: "bottom center", 5889 at: "top center" 5890 5891 }, 5892 style: { 5893 classes: "qtip-light qtip-rounded " + $(obj).attr("tooltipclass") 5894 }, 5895 content: { 5896 text: function (event, api) { return $(this).find("span.value").html(); } 5897 }, 5898 show: { 5899 ready: true 5900 } 5901 }); 5902 }); 5903 </script>
5903 5904<div class="product_banner3 banner-div"></div></div> 5905
5905<script> 5906 5907 function bundleaddtocart() 5908 { 5909 bundle_added = true; 5910 var relativepid = ''; 5911 var relativequan = ''; 5912 5913 if ( $(".bundlecheckbox.main").length == 0 ) 5914 { 5915 var mainitem = $("#bundle-sons-select option:selected").val(); 5916 } 5917 else 5918 { 5919 var mainitem = $("#bundlesale .bundlecheckbox.main").val(); 5920 } 5921 5922 5923 var checkeditems = $("#bundlesale .bundlecheckbox").filter(":checked").length ; 5924 if (checkeditems == 0) 5925 { 5926 alert("áçø ìôçåú îåöø àçã"); 5927 return false; 5928 } 5929 5930 $("#bundlesale .bundlecheckbox.relative:checked").each(function() 5931 { 5932 relativepid = relativepid + ', '+ $(this).val() ; 5933 relativequan = relativequan + ', 1'; 5934 $("#bundlepid").val(relativepid); 5935 $("#bundlequan").val(relativequan); 5936 }); 5937 5938 // add product sons if exist 5939 if ( $( "#productsonsimgbox" ).length > 0 && $("#bundle-sons-select").length == 0 ) 5940 { 5941 if ( $("#productsonsimgbox .productlink").length > 0 ) 5942 { 5943 if ( $("#productsonsimgbox .productlink.current").length == 0 ) 5944 { 5945 alert( "áçø îàôééï" ); 5946 return false; 5947 } 5948 } 5949 5950 if ( $("#productsonsimgbox .productlink.current").length > 0 ) 5951 { 5952 var tmpitemid = $("#productsonsimgbox .productlink.current").attr("itemid"); 5953 var allow = $("#productsonsimgbox .productlink.current").attr("allow"); 5954 if (allow == "0") 5955 { 5956 5957 alert("äîåöø àéðå áîìàé") 5958 5959 5960 5961 return false; 5962 } 5963 5964 return addme_cart(tmpitemid,0,$('#quant').val(),'','','1','','1'); 5965 } 5966 } 5967 else 5968 { 5969 return addme_cart(mainitem,0,$('#quant').val(),'','','1','','1'); 5970 } 5971 5972 5973 } 5974 5975 5976 function bundlesaleview() 5977 { 5978 5979 $("#bundlesaleview").html(""); 5980 var counter = 0; 5981 $("#bundlesale .bundlecheckbox:checked").each(function() 5982 { 5983 var rl_price = $(this).attr("price"); 5984 var rl_itemid = $(this).val(); 5985 var rl_image = $(this).attr("img"); 5986 $("#bundlesaleview").append("<span class='plus num_"+counter+"'>+</span><div class='bundlesaleviewbox image'><span></span>"+rl_image+"</div>" ); 5987 counter = counter + 1; 5988 }); 5989 5990 change_total("bundle"); 5991 } 5992 5993 $(document).ready(function() 5994 { 5995 5996 5997 5998 $("#bundlesale .bundlecheckbox").click(function() 5999 { 6000 $("#bundlepid").val(""); 6001 $("#bundlequan").val(""); 6002 bundlesaleview(); 6003 }); 6004 6005 6006 $(".bundleselectbox").change(function() 6007 { 6008 $(this).parent("li").find(".bundlecheckbox").attr("img", $('option:selected', this).attr('img')); 6009 $(this).parent("li").find(".bundlecheckbox").attr("price", $('option:selected', this).attr('price')); 6010 $(this).parent("li").find(".bundlecheckbox").attr("regprice", $('option:selected', this).attr('regprice')); 6011 $(this).parent("li").find(".bundlecheckbox").attr("link", $('option:selected', this).attr('link')); 6012 $(this).parent("li").find(".bundlecheckbox").attr("rebateprice", $('option:selected', this).attr('rebateprice')); 6013 $(this).parent("li").find(".bundlecheckbox").attr("value", $('option:selected', this).attr('value')); 6014 6015 $(this).parent("li").find(".bundlerebatediv").html($('option:selected', this).attr('rebatehtml'));
6016 6017 6018 $("#bundlepid").val(""); 6019 $("#bundlequan").val(""); 6020 6021 bundlesaleview(); 6022 }) ; 6023 6024 $("#bundle-sons-select").change(function() 6025 { 6026 var bundlesonsvalue = $('option:selected', this).attr('value'); 6027 var bundlesonsprice = $('option:selected', this).attr('price'); 6028 $(this).parent("li").find(".bundlecheckbox").attr("price",bundlesonsprice); 6029 $(this).parent("li").find(".bundlecheckbox").attr("value",bundlesonsvalue); 6030 $("#bundlepid").val(""); 6031 $("#bundlequan").val(""); 6032 bundlesaleview(); 6033 6034 6035 }); 6036 6037 $(".bundleselectbox").each(function(){ 6038 $(this).trigger("change"); 6039 6040 }); 6041 6042 bundlesaleview() 6043 6044 }); 6045 </script>
6045 6046 6047 6048 <div id="bundlesale" class="bundlesale"> 6049 <div class="wrap"> 6050 6051 <h2>çáéìä îåîìöú òáåø ÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </h2> 6052 6053 <div id="bundlesaleview"></div> 6054 <form name="relativeitemsfrm" class="relativeitemsfrm" onsubmit="return checkrelativefrm();" method="post" action="https://www.medicon.co.il/CartLogic.asp"> 6055 <input type="hidden" name="M" value="2" /> 6056<input type="hidden" name="IsPostback" value="true"/> 6057 <input type="hidden" id="bundlepid" name="bundlepid" value="" /> 6058 <input type="hidden" id="bundlequan" name="bundlequan" value="" /> 6059 <div class="bundlesaleprices"> 6060 6061 6062 <span class="totallabel">îçéø: </span><span class="prices" ><em>¤</em><span id="bundleprice"></span></span> 6063 6064 <a href="#" class="add-to-cart btn-link btn-primary" onclick="bundleaddtocart();return false;" ><span>÷ðä òëùéå</span></a> 6065 6066 6067 <p class="bundlesavepricetext" style="display:none;">çñëú: <em>¤</em><span id="bundlesaveprice"></span></p> 6068 6069 6070 </div> 6071 <ul> 6072 <li class='current'> 6073 6074 6075 <input type = "checkbox" disabled checked parent="0" class = "bundlecheckbox main" price="859.00" img="<img src='https://www.medicon.co.il/images/itempics/270_200720220205431_small160.jpg' title='÷åøà ñôøéí àì÷èøåðé Pocketbook Era øåñéú, òáøéú, àðâìéú áîìàé îééãé' alt='÷åøà ñôøéí àì÷èøåðé Pocketbook Era øåñéú, òáøéú, àðâìéú áîìàé îééãé' border='0' class='llink' />" name = "PID" value = "270" /> 6076 <span class = "itemname"><b>îåöø ðåëçé:</b> ÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </span> 6077 <span class = "price"><em>¤</em>859.00</span> 6078 6079 6080 6081 </li> 6082 6083 <li> 6084 6085 <input checked type = "checkbox" parent="1" class = "bundlecheckbox relative" link="/pl_product~271~3~4.htm?1=1" img="<a target='_blank' href='/pl_product~271~3~4.htm?1=1' rel='nofollow'><img src='https://www.medicon.co.il/images/itempics/271_200720220248381_small160.jpg' alt='ðøúé÷ SHELL àôåø áäéø òáåø PocketBook Era' align='middle' border='0' /></a>" regprice ="130.00" rebateprice="25" price="94.00" name = "PID" value = "271" /> 6086 6087 <a target ="_blank" href = "/pl_product~271~3~4.htm?1=1" rel="nofollow"><span class="itemname">ðøúé÷ SHELL ùçåø òáåø PocketBook Era</span></a> 6088 6089 6090 <div class="bundlerebatediv" style=" display:inline-block"> 6091 6092 <strike><em>¤</em>130.00</strike> 6093 6094 <span class="price"> 6095 6096 <span>îçéø áçáéìä:</span> 6097 6098 <em>¤</em>94.00 6099 </span> 6100 6101 </div> 6102 </li> 6103 6104 </ul> 6105 6106 </form> 6107 6108 </div> 6109 </div> 6110 <div class=relativeitems_wrap> 6111 6112 <div class="item-relativeitems regular icons_right"> 6113 6114 <h3 class="tab" id="product_tab_relativeitems"><a href="#" onclick="return false;">îåöøéí ðéìååéí</a></h3> 6115 6116 6117 <div class="content content_relativeitems"><div class="content-wrap"><div class="content-html"> 6118 6119
6119<script> 6120 $(document).ready(function() 6121 { 6122 6123 6124 $(".relativecheckbox").change(function() 6125 { 6126 if($(this).is(":checked")) 6127 { 6128 $(this).parents(".boxItem").addClass("active"); 6129 } 6130 else{$(this).parents(".boxItem").removeClass("active");} 6131 6132 change_total(); 6133 }); 6134 }); 6135 6136 function checkrelativefrm() 6137 { 6138 var checkeditems = $(".relativecheckbox").filter(":checked").length ; 6139 if (checkeditems == 0) 6140 { 6141 alert("áçø ìôçåú îåöø àçã"); 6142 return false; 6143 } 6144 6145 return true; 6146 } 6147 6148 function checkrelativeitems(type) 6149 { 6150 6151 var checkeditems = $(".relativecheckbox").filter(":checked").length ; 6152 if (checkeditems == 0 && type!='1') 6153 { 6154 alert("áçø ìôçåú îåöø àçã"); 6155 return false; 6156 } 6157 6158 6159 var temp_item_id = "270"; 6160 6161 6162 if ( $(".product-sons-links .productlink").length > 0 ) 6163 { 6164 temp_item_id = $(".productlink.current").attr("itemid"); 6165 } 6166 6167 if ( $("#product-sons-select").length > 0 ) 6168 { 6169 temp_item_id = $("#product-sons-select").val(); 6170 if (temp_item_id == "") 6171 { 6172 $("#product-sons-select").focus(); 6173 alert("áçø îåöø"); 6174 return false; 6175 } 6176 } 6177 6178 if ( $("#its_information .its_sku").length > 0 ) { 6179 if ( $("#its_information .its_sku").html() != "" ) { 6180 temp_item_id = $("#its_information .its_sku").html(); 6181 } 6182 } 6183 6184 if ( $("#item-relativeitems-popup").hasClass("removemainitem") ) 6185 { 6186 temp_item_id = ""; 6187 } 6188 6189 6190 6191 if ( type == '1' ) 6192 { 6193 addme_cart(temp_item_id,0,$('#quant').val(),'','','','',1) ; 6194 } 6195 else 6196 { 6197 addme_cart(temp_item_id,0,$('#quant').val() ) ; 6198 } 6199 6200 6201 return false; 6202 } 6203 </script>
6203 6204 6205 6206 <form name="relativeitemsfrm" class="relativeitemsfrm" method="post" action="https://www.medicon.co.il/CartLogic.asp"> 6207 <input type="hidden" name="M" value="2" /> 6208<input type="hidden" name="IsPostback" value="true"/> 6209 6210 <div class="relativeitemsheader"> 6211 ñîï àú äîåöøéí ùáøöåðê ìäåñéó åìçõ òì ëôúåø 6212 <button type = "button" onclick="return checkrelativeitems(0);" class="button btn-link btn-primary""><span><span>÷ðä òëùéå</span></span></button> 6213 </div> 6214 6215 6216 <div class="relativeitemscenter ee_list " ee_list_category_name = "÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 " ee_list_event_label='product_name' ee_list_event_action="÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 " ee_list_event_category='Relative Product' ee_list_name = "Relative Product-÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 " > 6217 <ul class="productBoxes "> 6218 6219 <li itemident="297" class="boxItem auto-height ee_list_item first grid_4 " quan_base="1" quan_multiply="1"> 6220 <div class="boxItem-wrap"> 6221 6222 <div class="boxPicture" aria-hidden=true> 6223 6224 <a class="image pic-160 grid_3 ee_product_click" aria-hidden=true href='/pl_product~297~3~4.htm?1=1' ><span></span><img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src='https://www.medicon.co.il/images/itempics/297_090820231515051_small.jpg' alt="ðøúé÷ SHELL çåí òáåø PocketBook Era" align='middle' border="0" /></a> 6225 6226 6227 </div> 6228 6229 6230 <div class="item-name"><a class="ee_product_click" href='/pl_product~297~3~4.htm?1=1' ee_list_itembrand="Pocketbook" ee_list_itemident="297" ee_list_itemid="297" ee_list_category="ðøúé÷éí ì÷åøàé ñôøéí àì÷èøåðéí/ðøúé÷éí ì÷åøàé ñôøéí Pocketbook" ee_list_itemprice="125.00" ee_list_itemname="ðøúé÷ SHELL çåí òáåø PocketBook Era">ðøúé÷ SHELL çåí òáåø PocketBook Era</a></div> 6231 6232 <div class="product-box-prices"> 6233 6234 6235 <strike class="reg-price"><span class="name">øâéì </span><span class="value"><span id="totalreg297">130.00</span><em>¤</em></span></strike> 6236 6237 <p class="sale-price spaciel"> 6238 <span class="name">îçéø îéåçã</span> 6239 <span><em>¤</em><span >94.00</span></span> 6240 </p> 6241 6242 </div> 6243 6244 <div class="itemquickpreview" style="display:none" >ðøúé÷ SHELL çåí òáåø PocketBook Era</div> 6245 6246 6247 <div class="ProductBoxBtn "> 6248 6249 6250 <a class="more-info btn-secondary ee_product_click btn-link " href="/pl_product~297~3~4.htm?1=1" ><span>ìîéãò ðåñó</span></a> 6251 6252 <input type = "hidden" name = "Quan" value = "1" /> 6253 <sp
6253an class='addtocartcheckbox '> 6254 <input type = "checkbox" class = "relativecheckbox " name = "PID" price="94.00" id="checkitem_297" value = "297" /> 6255 <span for="checkitem_297" > 6256 ÷ðä òëùéå 6257 </span> 6258 </span> 6259 6260 6261 </div> 6262 6263 6264 </div> 6265 </li> 6266 6267 </ul> 6268 </div> 6269 6270 6271 6272 </form> 6273 6274 </div></div></div> 6275 </div> 6276 </div><div class="product_banner1 banner-div"></div><div class="product_categories_banner banner-div"></div> 6277 <div class="product_banner2 banner-div"></div> 6278 <div class="product-tabs-vertical"></div> 6279 <div class="product-tabs-horizontal"><ul class="ui-tabs-nav"><li class="li-2"><a class='eventtracking' tabindex="0" track_category='Product Tabs' track_label='îéãò ðåñó' href="#product-tabs-horizontal-0">îéãò ðåñó</a></li></ul><div class="description tabs-block editorcss" tabindex="0" id="product-tabs-horizontal-0"> 6280 <div class="tabs-content-wrap"> 6281 <table border="0" cellpadding="0" cellspacing="0" width="765"> 6282 <tbody> 6283 <tr> 6284 <td width="193"> 6285 <p>Display</p> 6286 </td> 6287 <td width="572"> 6288 <p align="right">7'' (17.8 cm) E Ink Carta™ 1300 1264 × 1680 300 DPI</p> 6289 </td> 6290 </tr> 6291 <tr> 6292 <td width="193"> 6293 <p>Colour depth</p> 6294 </td> 6295 <td width="572"> 6296 <p align="right">16 levels of greyscale</p> 6297 </td> 6298 </tr> 6299 <tr> 6300 <td width="193"> 6301 <p>Touchscreen</p> 6302 </td> 6303 <td width="572"> 6304 <p align="right">Capacitive (multisensor)</p> 6305 </td> 6306 </tr> 6307 <tr> 6308 <td width="193"> 6309 <p>Frontlight</p> 6310 </td> 6311 <td width="572"> 6312 <p align="right">Yes (SMARTlight)</p> 6313 </td> 6314 </tr> 6315 <tr> 6316 <td width="193"> 6317 <p>Processor</p> 6318 </td> 6319 <td width="572"> 6320 <p align="right">Dual Core (2×1 GHz)</p> 6321 </td> 6322 </tr> 6323 <tr> 6324 <td width="193"> 6325 <p>RAM</p> 6326 </td> 6327 <td width="572"> 6328 <p align="right">1 GB</p> 6329 </td> 6330 </tr> 6331 <tr> 6332 <td width="193"> 6333 <p>Internal storage</p> 6334 </td> 6335 <td width="572"> 6336 <p align="right">16 GB</p> 6337 </td> 6338 </tr> 6339 <tr> 6340 <td width="193"> 6341 <p>Battery</p> 6342 </td> 6343 <td width="572"> 6344 <p align="right">1700 mAh (Li-Ion Polymer). Up to one month of battery life (may vary depending on usage mode, connectivity and settings).</p> 6345 </td> 6346 </tr> 6347 <tr> 6348 <td width="193"> 6349 <p>G-sensor</p> 6350 </td> 6351 <td width="572"> 6352 <p align="right">Yes</p> 6353 </td> 6354 </tr> 6355 <tr> 6356 <td width="193"> 6357 <p>Cover sensor</p> 6358 </td> 6359 <td width="572"> 6360 <p align="right">Yes</p> 6361 </td> 6362 </tr> 6363 <tr> 6364 <td width="193"> 6365 <p>Wi-Fi</p> 6366 </td> 6367 <td width="572"> 6368 <p align="right">Yes</p> 6369 </td> 6370 </tr> 6371 <tr> 6372 <td width="193"> 6373 <p>Bluetooth</p> 6374 </td> 6375 <td width="572"> 6376 <p align="right">Yes</p> 6377 </td> 6378 </tr> 6379 <tr> 6380 <td width="193"> 6381 <p>USB output</p> 6382 </td> 6383 <td width="572"> 6384 <p align="right">USB Type-C</p> 6385 </td> 6386 </tr> 6387 <tr> 6388 <td width="193"> 6389 <p> </p> 6390 </td> 6391 <td width="572"> 6392 <p align="right"> </p> 6393 </td> 6394 </tr> 6395 <tr> 6396 <td width="193"> 6397 <p>Platform (OS)</p> 6398 </td> 6399 <td width="572"> 6400 <p align="right">Linux 3.10.65</p> 6401 </td> 6402 </tr> 6403 <tr> 6404 <td width="193"> 6405 <p>E-book formats</p> 6406 </td> 6407 <td width="572"> 6408 <p align="right">ACSM, CBR, CBZ, CHM, DJVU, DOC, DOCX, EPUB, EPUB(DRM), FB2, FB2.ZIP, HTM, HTML, MOBI, PDF, PDF (DRM), PRC, RTF, TXT</p> 6409 </td> 6410 </tr> 6411 <tr> 6412 <td width="193"> 6413 <p>Image formats</p> 6414 </td> 6415 <td width="572"> 6416 <p align="right">JPEG, BMP, PNG, TIFF</p> 6417 </td> 6418 </tr> 6419 <tr> 6420 <td width="193"> 6421 <p>Audiobook formats</p> 6422 </td> 6423 <td width="572"> 6424 <p align="right">M4A, M4B, OGG, OGG.ZIP, MP3, MP3.ZIP</p> 6425 </td> 6426 </tr> 6427 <tr> 6428 <td width="193"> 6429 <p>Text-to-Speech</p> 6430 </td> 6431 <td width="572"> 6432 <p align="right">English (25 additional languages available for free download on pocketbook.ch)</p> 6433 </td> 6434 </tr> 6435 <tr> 6436 <td width="193"> 6437 <p>Online services</p> 6438 </td> 6439 <td width="572"> 6440 <p align="right">PocketBook Cloud, ReadRate, Dropbox, Send-to-PocketBook</p> 6441 </td> 6442 </tr> 6443 <tr> 6444 <td width="193"> 6445 <p>Dimensions</p> 6446 </td> 6447 <td width="572"> 6448 <p align="right">134,3 × 155 × 7,8 mm</p> 6449 </td> 6450 </tr> 6451 <tr> 6452 <td width="193"> 6453 <p>Weight</p> 6454 </td> 6455 <td width="572"> 6456 <p align="right">205 g</p> 6457 </td> 6458 </tr> 6459 <tr> 6460 <td width="193"> 6461 <p>Water protection</p> 6462 </td> 6463 <td width="572"> 6464 <p align="right">Water resistant (IPX4)</p> 6465 </td> 6466 </tr> 6467 </tbody> 6468</table> 6469 6470 </div></div></div> 6471 6472
6472<script> 6473 $(function() { 6474 $(".product-tabs-horizontal").tabs(); 6475 }); 6476 </script>
6476 6477 6478 <div class="product-contact-form AuthCode" > 6479 6480 6481 6482 <div class="title"><strong><span>çæøå àìé á÷ùø ìîåöø æä</span></strong></div> 6483 6484 6485 <form name="pr_contctfrm" id="pr_contctfrm" method="post" action="/SiteServices.asp?service=contact" onsubmit="return pr_checkcontactform(this);"> 6486 <div class="content"> 6487 <input type="hidden" name="IsPostback" value="true"/> 6488 <input type="hidden" name="formFields" value="itemid,item,ContactPerson,Subject,Phone,content,email" /> 6489 <input type="hidden" name="item" value="÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 " /> 6490 <input type="hidden" name="itemident" value="270" /> 6491 <input type="hidden" name="itemid" value=" î÷è 270" /> 6492 6493 <p class="pr_ContactPerson "> 6494 6495 <label for="pr_ContactPerson">*ùí:</label> 6496 6497 <input type="text" class="text" dir="rtl" name="ContactPerson" id="pr_ContactPerson" value="" /> 6498 <input type="hidden" name="ContactPerson_HE" value="ùí îìà" aria-label="ùí îìà"> 6499 6500 </p> 6501 6502 <p class="pr_Phone "> 6503 6504 <label for="pr_Phone">*èìôåï:</label> 6505 6506 <input type="text" class="text" name="Phone" id="pr_Phone" value="" /> 6507 <input type="hidden" name="Phone_HE" value="èìôåï" aria-label="èìôåï"> 6508 </p> 6509 6510 <p class="pr_email "> 6511 6512 6513 <label for="pr_email">*ãåàø àì÷èøåðé:</label> 6514 6515 6516 <input type="text" class="text" name="email" id="pr_email" value="" /> 6517 <input type="hidden" name="email_HE" value="ãåàø àì÷èøåðé" aria-label="ãåàø àì÷èøåðé"> 6518 </p> 6519 6520 <p class='subject '> 6521 6522 <label for="pr_Subject">úåëï:</label> 6523 6524 6525 <input type="text" class="text" name="Subject" id="pr_Subject" value="" /> 6526 <input type="hidden" name="Subject_HE" value="ðåùà" aria-label="ðåùà"> 6527 </p> 6528 6529 <p class='AuthCode ' > 6530 6531 <label for="pr_AuthCode">ëîä æä 8 + 4?</label> 6532 6533 <input type="text" class="text" id="pr_AuthCode" name="AuthCode" size="15" maxlength="2" dir="rtl" value=""> 6534 <input type="hidden" id="Hidden1" name="CapachaAnswer" value="12" /> 6535 </p> 6536 6537 <button class="button btn-primary" title="ùìç" type="submit"><span><span>ùìç</span></span></button> 6538 6539 <p class = "club "> 6540 <input type="checkbox" name="club" value="1" aria-label="áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø" checked />
6541 áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø 6542 6543 </p> 6544 6545 <p class = "club "> 6546 <input type="checkbox" class="custom-control-input" name="privacy" value="1" > 6547 6548 àðé îñëéí/ä ìúðàéí, ääâáìåú, ì-îãéðéåú ôøèéåú åîàùø/ú éöéøú ÷ùø îàúø medicon.co.il. 6549 6550 </p> 6551 6552 6553 </div> 6554 </form> 6555 </div> 6556 6557
6557<script type="text/javascript"> 6558 function pr_ContactCheckEmail(CurMail) 6559 { 6560 if (CurMail.length != 0) 6561 { 6562 var i=CurMail.indexOf("@") 6563 var i2=CurMail.indexOf("@",i+1) 6564 var j=CurMail.indexOf(".",i) 6565 var k=CurMail.indexOf(",") 6566 var kk=CurMail.indexOf(" ") 6567 var jj=CurMail.lastIndexOf(".") + 1 6568 var leng = CurMail.length 6569 6570 if ((i>0)&&(j>(i+1))&&(k==-1)&&(kk==-1)&&(leng-jj >= 2)&&(leng-jj <= 3)&&(i2==-1)) 6571 { 6572 return true; 6573 } 6574 else 6575 { 6576 return false; 6577 } 6578 } 6579 else{ 6580 return false; 6581 } 6582 } 6583 6584 function pr_checkcontactform(formobject) 6585 { 6586 6587 $("#pr_contctfrm input[name=itemid]").val( $(".ProductPageSection").attr( "ee_product_id" ) ); 6588 $("#pr_contctfrm input[name=itemident]").val( $(".ProductPageSection").attr( "ee_product_itemident" ) ); 6589 $("#pr_contctfrm input[name=item_he]").val( $(".ProductPageSection").attr( "ee_product_name" ) ); 6590 $("#pr_contctfrm input[name=item]").val( $(".ProductPageSection").attr( "ee_product_name" ) ); 6591 6592 6593 if (formobject.ContactPerson.value == "") 6594 { 6595 alert("äëðñ ùí îìà"); 6596 formobject.ContactPerson.focus(); 6597 return false; 6598 } 6599 6600 if (formobject.Phone.value == "") 6601 { 6602 alert("ìà äåæï èìôåï"); 6603 formobject.Phone.focus(); 6604 return false; 6605 } 6606 6607 6608 if( !pr_ContactCheckEmail(formobject.email.value) ) 6609 { 6610 alert("ëúåáú äîééì ùâåéä"); 6611 formobject.email.focus(); 6612 return false; 6613 } 6614 6615 6616 /* 6617 if (document.formobject.Subject.value == "") 6618 { 6619 alert("àðà îìà ðåùà"); 6620 document.formobject.Subject.focus(); 6621 return false; 6622 } 6623 */ 6624 6625 if (formobject.AuthCode.value == "") 6626 { 6627 alert("éù ìôúåø àú äúøâéì ðëåï"); 6628 formobject.AuthCode.focus(); 6629 return false; 6630 } 6631 if (formobject.AuthCode.value != formobject.CapachaAnswer.value) 6632 { 6633 alert("éù ìôúåø àú äúøâéì ðëåï"); 6634 formobject.AuthCode.focus(); 6635 return false; 6636 } 6637 6638 if (!formobject.privacy.checked) { 6639 alert("éù ìñîï àú äúéáä ëãé ìàùø àú äúðàéí åäîãéðéåú."); 6640 formobject.privacy.focus(); 6641 return false; 6642 } 6643 6644 6645 var url = $(formobject).attr("action"); 6646 $(formobject).hide(); 6647 6648 $.post(url, $(formobject).serialize(), function (data) 6649 { 6650 var dataarray = data.split("|"); 6651 if (dataarray[0] == "1" ) 6652 { 6653 $(formobject).replaceWith("<div class='success'>ãåàø àì÷èøåðé ðùìç áäöìçä</div>") 6654 6655 if (cookieconsent == true) { 6656 6657 6658 6659 } 6660 6661 } 6662 else 6663 { 6664 $(formobject).replaceWith("<div class='error'>÷åã æéäåé ùâåé, àðà ðñä ùåá</div>") 6665 } 6666 6667 }); 6668 return false; 6669 } 6670 </script>
vendor: 2 bytes, line 6670
6670
6671<script> 6672 $("body").on("click",".closeit",function(){ 6673 $("#item-relativeitems-popup .closeit").parent().parent().hide(); 6674 6675 }); 6676 </script>
6676 6677 6678 6679 <!--[Dynamic Product Page Modules]--> 6680 </div> 6681 </div> 6682 </div> 6683 6684 6685 6686 6687 6688 6689 6690 6691
6692<script> 6693 var lastImgName = ''; 6694 var isflag = '0'; 6695 var total = "859.00"; 6696 var globaltotal = 859; 6697 var total1 = 0; 6698 var payments = "12"; 6699 var PaymentRibit = "0"; 6700 var start_price, total; 6701 var reviewformdivbtnclicked = false; 6702 var cartlogic_url = ""; 6703 var param_cartlogic_url = ""; 6704 var param_Ajax = ""; 6705 var param_pid = ""; 6706 var param_pip_str = ""; 6707 var param_pip_prices = ""; 6708 var param_pip_ids = ""; 6709 var param_quan = ""; 6710 var param_RequestGiftInfo = ""; 6711 var param_m = ""; 6712 var param_BuildComputerItems = ""; 6713 6714 6715 function redirectToElement(elementId) { 6716 var element = document.getElementById(elementId); 6717 if (!element) { 6718 return false; 6719 } 6720 6721 var elementPosition = element.getBoundingClientRect().top + window.pageYOffset; 6722 6723 // Check for sticky header 6724 var stickyHeader = document.getElementById("sticky_header"); 6725 if (stickyHeader && getComputedStyle(stickyHeader).display !== 'none') { 6726 elementPosition -= stickyHeader.offsetHeight; 6727 } 6728 6729 // Check for slide from top elements 6730 var slideElements = document.getElementsByClassName('slidefromtop'); 6731 for (var i = 0; i < slideElements.length; i++) { 6732 if (slideElements[i] && getComputedStyle(slideElements[i]).display !== 'none') { 6733 elementPosition -= slideElements[i].offsetHeight; 6734 } 6735 } 6736 6737 // Adjust for elements with 'fixed-top' class if they are visible 6738 var fixedTopElements = document.querySelectorAll("#header.fixed-top, #header .fixed-top"); 6739 fixedTopElements.forEach(function(el) { 6740 if (getComputedStyle(el).display !== 'none') { 6741 elementPosition -= el.offsetHeight; 6742 } 6743 }); 6744 6745 // Adjust for mobile header if it is visible 6746 var mobileHeader = document.getElementById("mobile_header"); 6747 if (mobileHeader && getComputedStyle(mobileHeader).display !== 'none') { 6748 elementPosition -= mobileHeader.offsetHeight; 6749 } 6750 6751 window.scrollTo({ 6752 top: elementPosition-30, 6753 behavior: 'smooth' 6754 }); 6755 6756 element.focus(); 6757} 6758 6759 6760 function OpenDivPic(ImgName, ImgDivId) { 6761 var BigImgSrc = "<img src='/images/itempics/" + ImgName + "_small50.jpg' alt='' />"; 6762 if (lastImgName != ImgName || (document.getElementById("ViewIPPBigimg" + ImgDivId).style.display == 'none')) { 6763 document.getElementById("ViewIPPBigimg" + ImgDivId).innerHTML = BigImgSrc; 6764 document.getElementById("ViewIPPBigimg" + ImgDivId).style.display = ''; 6765 } 6766 else 6767 { 6768 document.getElementById("ViewIPPBigimg" + ImgDivId).innerHTML = ''; 6769 document.getElementById("ViewIPPBigimg" + ImgDivId).style.display = 'none'; 6770 } 6771 lastImgName = ImgName 6772 } 6773 var enlargetxt = "<span>ìçõ ìäâãìä</span>" ; 6774 6775</script>
6775 6776
6776<script type="text/javascript"> 6777 let bundle_added = false; 6778 6779 function encodeEmojis(str) { 6780 var result = ''; 6781 for (var i = 0; i < str.length; i++) { 6782 var code = str.charCodeAt(i); 6783 if (code >= 0xD800 && code <= 0xDBFF && i + 1 < str.length) { 6784 var low = str.charCodeAt(i + 1); 6785 if (low >= 0xDC00 && low <= 0xDFFF) { 6786 var fullCode = ((code - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000; 6787 result += '&#x' + fullCode.toString(16).toUpperCase() + ';'; 6788 i++; 6789 continue; 6790 } 6791 } 6792 if (code > 0xFF && (code < 0x590 || code > 0x5FF)) { 6793 result += '&#x' + code.toString(16).toUpperCase() + ';'; 6794 } else { 6795 result += str.charAt(i); 6796 } 6797 } 6798 return result; 6799 } 6800 6801 function OpenPaymentsWindow(obj) { 6802 $.get("/payments.asp?sum=" + total + "&ni=12&m=12", function(data) 6803 { 6804 lightpopup (data,'product_payments') ; 6805 }); 6806 return false; 6807 } 6808 6809 function getCheckedValue(radioObj) { 6810 if(!radioObj) 6811 return ""; 6812 var radioLength = radioObj.length; 6813 if(radioLength == undefined) 6814 if(radioObj.checked) 6815 return radioObj.value; 6816 else 6817 return ""; 6818 for(var i = 0; i < radioLength; i++) { 6819 if(radioObj[i].checked) { 6820 return radioObj[i].value; 6821 } 6822 } 6823 return ""; 6824 } 6825 6826 function calculate_package_items() 6827 { 6828 var pi_counter = 0; 6829 $(".packagelist .value").each(function(){ 6830 pi_counter = pi_counter + parseInt ( $(this).val() ); 6831 }); 6832 $(".packagelist #product_counter").html(pi_counter); 6833 } 6834 6835 6836 function parseDate(str) { 6837 var mdy = str.split('/'); 6838 var str = mdy[2] + '-' + mdy[1] + '-' + mdy[0]; 6839 return new Date( str ); 6840 } 6841 6842 function calculate_date_range_quantity () { 6843 const oneDay = 24 * 60 * 60 * 1000; // hours*minutes*seconds*milliseconds 6844 $(".property-date-range-quantity").each(function(){ 6845 6846 6847 var property_id = $(this).find(".property-datepicker").eq(0).attr("propertyid"); 6848 var property_selector = $(this).find(".property-datepicker").eq(0).attr("connectid"); 6849 var property_value = $(this).find(".property-datepicker").eq(0).attr("property_value"); 6850 6851 $("#" + property_id ).val(""); 6852 6853 var firstDate = $(this).find(".property-datepicker").eq(0).val() ; 6854 var secondDate = $(this).find(".property-datepicker").eq(1).val() ; 6855 6856 if ( firstDate != "" && secondDate != "" ) { 6857 6858 $("#" + property_selector ).val( '||' + property_id + '{=}{addtext}' + firstDate + ' - ' + secondDate ); 6859 6860 var firstDate = parseDate( firstDate ); 6861 var secondDate = parseDate( secondDate ); 6862 6863 const diffInMs = new Date(secondDate) - new Date(firstDate) 6864 const diffInDays = diffInMs / (1000 * 60 * 60 * 24); 6865 $("#quant").val(diffInDays); 6866 $("#quant").trigger("change"); 6867 6868 } 6869 }); 6870 } 6871 $(document).ready(function() 6872 { 6873 6874 $(".property-date-range-quantity .property-datepicker").datepicker({ 6875 showOn: "button", 6876 buttonImage: "/template_inc/eshopstoresframework/images/calendar_select.png", 6877 buttonImageOnly: false, 6878 onSelect: function(dateText) 6879 { 6880 calculate_date_range_quantity(); 6881 }, 6882 6883 }); 6884 6885 $("body").on("change", ".property-date-range-quantity .property-datepicker" , function(){ 6886 console.log("ssdasdasd") 6887 }); 6888 6889 6890 6891 6892 $("body").on("click", ".packagelist .quantity .quan_btn", function() { 6893 var $input = $(this).parent().find(".value"); 6894 var $action = $(this).attr("action"); 6895 var num = parseInt($input.val()); 6896 var max = parseInt($input.attr("data-max")); 6897 6898 if ($action == "odd") { 6899 // Increment the value, but don't exceed the max limit (if max > 0) 6900 if (max > 0 && num < max) { 6901 $input.val((num + 1) * 1); 6902 } else if (max <= 0) { 6903 $input.val((num + 1) * 1); 6904 } 6905 } else { 6906 // Decrement the value, but don't go below 0 6907 if (num > 0) { 6908 $input.val((num - 1) * 1); 6909 } 6910 } 6911 calculate_package_items(); 6912 return false;
6913 }); 6914 6915 6916 6917 $("body").on("click",".Product_Sons_list .prs_buttons a",function() 6918 { 6919 var obj = this ; 6920 var quan_multiply = 1; 6921 var quan_base = 1; 6922 var quan_input = $(this).parent().find(".quantityInput") ; 6923 quan_multiply = $(quan_input).attr('quan_multiply'); 6924 quan_base = $(quan_input).attr('quan_base'); 6925 6926 6927 6928 if ( $(obj).hasClass("minus") ) 6929 { 6930 if ( $(quan_input).html() > 0) 6931 { 6932 $(quan_input).html(( $(quan_input).html()-quan_multiply*1)*1).formatCurrency({ 6933 groupDigits: true , symbol: '', 6934 roundToDecimalPlace: 3 6935 }); 6936 } 6937 6938 if ( $(quan_input).html() < quan_base) 6939 { 6940 $(quan_input).html(quan_base) ; 6941 } 6942 6943 } 6944 else 6945 { 6946 $(quan_input).html(( $(quan_input).html() *1) + (quan_multiply * 1)).formatCurrency({ 6947 groupDigits: true , symbol: '', 6948 roundToDecimalPlace: 3 6949 }); 6950 } 6951 6952 6953 var quantity = $(quan_input).html() 6954 $("#_quantity_" + $(quan_input).attr('son_id') ).val(quantity); 6955 // update price 6956 var Num_After_dot = "2"; 6957 var temp_dropDecimals = 0; 6958 if (Num_After_dot == "1" || Num_After_dot == "2" ) 6959 { 6960 temp_dropDecimals = 2; 6961 } 6962 6963 if(!$.isNumeric(quan_base)){quan_base = 1;} 6964 if(!$.isNumeric(quantity)){quantity = 1;} 6965 6966 var newtotal = $(this).parents(".son_wrap").find(".unit_price .value").html()*quantity/quan_base; 6967 6968 6969 6970 $(this).parents(".son_wrap").find(".price .pricevalue").html(newtotal.toFixed(Num_After_dot)).formatCurrency({ 6971 groupDigits: true , symbol: '', 6972 roundToDecimalPlace: temp_dropDecimals 6973 }); 6974 6975 6976 6977 return false; 6978 }); 6979 6980 $(".property_color").click(function () { 6981 $(this).parent("div").find("a.active").each(function() 6982 { 6983 $(this).removeClass("active"); 6984 }); 6985 $(this).addClass("active"); 6986 }); 6987 6988 $(".PropertyImageHandle").click(function() 6989 { 6990 6991 $(this).parent("div").find("a.active").each(function() 6992 { 6993 $(this).removeClass("active"); 6994 }); 6995 6996 $(this).addClass("active"); 6997 var current_href = $(this).attr("href"); 6998 6999 if ($(".lSGallery").length) { 7000 var current_data_large = $(this).attr("data-large"); 7001 $(".lSGallery li" ).each(function() 7002 { 7003 if ( current_href == $(this).find("img").attr("src") ) 7004 { 7005 $light_Slider.goToSlide( $(this).index() +1 ); 7006 } 7007 }); 7008 } 7009 else { 7010 7011 } 7012 7013 }); 7014 7015 $(".properties_list_images").change(function(){ 7016 var propery_image = $('option:selected', this).attr('image'); 7017 7018 if ( $(".product-images-slider").length ) 7019 { 7020 if (propery_image != "" ) 7021 { 7022 $(".lSGallery li" ).each(function() 7023 { 7024 if ( propery_image == $(this).find("img").attr("src") ) 7025 { 7026 $light_Slider.goToSlide( $(this).index() +1 ); 7027 } 7028 }); 7029 } 7030 } 7031 else 7032 { 7033 if (propery_image != "" ) 7034 { 7035 $("#imgBigDIV").html("<span></span><img src='"+propery_image+"'>"); 7036 $("#enlargeIcon").html("<a rel = 'nofollow' href='#' onclick=\"$.prettyPhoto.open(['"+propery_image+"'],['','',''],['','','']);return false;\" >"+enlargetxt+"</a>"); 7037 7038 7039 $('#imgBigDIV img').addimagezoom({ 7040 speed: 1500, 7041 descpos: true, 7042 imagevertcenter: true, 7043 magvertcenter: true, 7044 zoomrange: [2, 3], 7045 magnifiersize: [450,450], 7046 magnifierpos: 'right', 7047 cursorshadecolor: '#fdffd5', 7048 cursorshade: true , 7049 largeimage: propery_image 7050 }) 7051 7052 7053 } 7054 } 7055 7056 }); 7057 7058 // Handler for viewtype 13 - images opening below dropdown 7059 $(".properties_list_images_below").change(function(){ 7060 var property_image = $('option:selected', this).attr('image'); 7061 var property_id = $(this).attr('id').replace('property_', ''); 7062 var image_container = $('#property_image_' + property_id); 7063 7064 if (property_image != "" && property_image != undefined) { 7065 image_container.html('<img src="' + property_image
7065+ '" class="img-fluid" alt="" style="max-width:100%; height:auto;" />'); 7066 image_container.fadeIn(300); 7067 } else { 7068 image_container.fadeOut(300, function() { 7069 $(this).html(''); 7070 }); 7071 } 7072 }); 7073 7074 // Handler for IPP layout 4 - images opening below dropdown 7075 $(".ipp_list_images_below").change(function(){ 7076 var ipp_image = $('option:selected', this).attr('image'); 7077 var ipp_id = $(this).attr('id').replace('property_', ''); 7078 var image_container = $('#ipp_image_' + ipp_id); 7079 7080 if (ipp_image != "" && ipp_image != undefined) { 7081 image_container.html('<img src="' + ipp_image + '" class="img-fluid" alt="" style="max-width:100%; height:auto;" />'); 7082 image_container.fadeIn(300); 7083 } else { 7084 image_container.fadeOut(300, function() { 7085 $(this).html(''); 7086 }); 7087 } 7088 }); 7089 7090 7091 }); 7092 7093 7094 7095 function PropertyImageHandle(PropertyId,ImageId,PropertValue) 7096 { 7097 UpdSelectedTxt('SelectedTxt'+PropertyId,PropertValue,'property_'+PropertyId); 7098 document.getElementById('property_'+PropertyId).value = PropertValue; 7099 7100 return false; 7101 } 7102 7103 7104 7105 function PropertyCheckboxHandle(PropertyId,ImageId,PropertValue,obj) 7106 { 7107 var properties = ''; 7108 7109 7110 7111 $(obj).parents(".li-property-checkbox").find(".properties").val(""); 7112 $(obj).parents(".li-property-checkbox").find("input[type=checkbox]").each(function(){ 7113 if ( $(this).is(":checked") ) 7114 { 7115 properties = properties + $(this).attr("property_value") + "~"; 7116 } 7117 }); 7118 $(obj).parents(".li-property-checkbox").find(".properties").val(properties); 7119 7120 7121 return false; 7122 } 7123 7124 function PropertyLinkHandle(PropertyId,ImageId,PropertValue,obj) 7125 { 7126 $(obj).parents(".ProperyLinkDiv").find("a").removeClass('current'); 7127 $(obj).parents(".ProperyLinkDiv").find("a").removeClass('active'); 7128 $(obj).parent().parent().find("p").removeClass('selected'); 7129 $(obj).addClass("current"); 7130 $(obj).addClass("active"); 7131 $(obj).parents(".ProperyLinkDiv").addClass('selected'); 7132 document.getElementById('property_'+PropertyId).value = PropertValue; 7133 return false; 7134 } 7135 7136 function change_total_hook() 7137 {} 7138 7139 function change_total(valu) 7140 { 7141 7142 var quan_base = $(".ProductPageSection").attr("quan_base"); 7143 if ( quan_base == "" ) 7144 { 7145 quan_base = 1; 7146 } 7147 var tax = 1.18; 7148 7149 var quantity = quan_base; 7150 if($("#quant").length > 0) { 7151 quantity = $("#quant").val(); 7152 } 7153 if(!$.isNumeric(quantity)) 7154 { 7155 quantity = quan_base; 7156 $("#quant").val(quantity); 7157 } 7158 if(quantity=="0") 7159 { 7160 quantity = quan_base; 7161 $("#quant").val(quantity); 7162 } 7163 7164 var quantity_clc = quantity / quan_base; 7165 7166 start_regularprice = 930*quantity_clc*1; 7167 start_price = 859*quantity_clc*1; 7168 start_price = start_price*1+0*1; 7169 total = start_price; 7170 total1 = total; 7171 7172 7173 if ( $(".product_dimension").length > 0 ) 7174 { 7175 var dimension = $(".product_dimension").find("input:checked"); 7176 start_price = dimension.attr("price"); 7177 total = start_price * quantity; 7178 total1 = total; 7179 } 7180 7181 7182 if ( $("select#product-sons-select").length > 0 ) 7183 { 7184 if ($("select#product-sons-select") != "") 7185 { 7186 start_price = $("select#product-sons-select option:selected").attr("price"); 7187 total = start_price * quantity; 7188 total1 = total; 7189 } 7190 if (typeof (start_price) == "undefined") 7191 { 7192 start_price = $("#total").attr("price"); 7193 total = start_price * quantity; 7194 total1 = total; 7195 } 7196 } 7197 7198 7199 7200 7201 7202 if ( valu == "bundle" ) 7203 { 7204 if ( $("#bundle-sons-select").length > 0 ) 7205 { 7206 if ( $(".bundlecheckbox.main").length == 0 ) 7207 { 7208 7209 start_price = $('#bundle-sons-select option:selected').attr('price'); 7210 7211 } 7212 else 7213 { 7214 start_price = $(".bundlecheckbox.main").attr("price"); 7215 } 7216 7217 start_price = start_price*1+0*1; 7218 total = start_price; 7219 total1 = total; 7220 } 7221 } 7222 7223 if ( valu == "bundlepopup" ) 7224 { 7225 if ( $("#bundle-sons-select_popup").length > 0 ) 7226 { 7227 if ( $("#bundlesale_popup .bundlecheckbox.main").length == 0 ) 7228 { 7229 7230 start_price = $('#bundle-sons-select_popup option:selected').attr('price'); 7231 7232 } 7233 else 7234 { 7235 start_price = $("#bundlesale_popup .bundlecheckbox.main").attr("price"); 7236 } 7237 7238 7239 7240 start_price = start_price*1+0*1; 7241 total = start_price; 7242 total1 = total; 7243 } 7244 7245 7246 } 7247 7248 7249 //console.log('1)' + start_regularprice); 7250 7251 7252 7253 7254 if ( $("#productsonslinksbox .productlink.current").length > 0 ) 7255 { 7256 start_price = $("#productsonslinksbox .productlink.current").attr("price"); 7257 total = start_price*quantity_clc; 7258 total1 = total; 7259 start_regularprice = $("#productsonslinksbox .productlink.current").attr("reg_price"); 7260 if (start_regularprice == "") 7261 {start_regularprice=total;} 7262 else 7263 {start_regularprice=start_regularprice*quantity_clc;} 7264 7265 } 7266 7267 if ( $("#productsonsimgbox .productlink.current").length > 0 ) 7268 { 7269 start_price = $("#productsonsimgbox .productlink.current").attr("price"); 7270 total = start_price*quantity_clc; 7271 total1 = total; 7272 start_regularprice = $("#productsonsimgbox .productlink.current").attr("reg_price"); 7273 if (start_regularprice == "") 7274 {start_regularprice=total;} 7275 else 7276 {start_regularprice=start_regularprice*quantity_clc;} 7277 7278 } 7279 7280 // console.log('1)' + start_regularprice); 7281var calculatedProperties = []; 7282 7283 7284 7285 7286 7287 7288 if ( $(".properties-group-item_check").length > 0 ) 7289 { 7290 $(".properties-group-item_check:checked").each(function() 7291 { 7292 temparr = $(this).val(); 7293 arrProperty = temparr.split("|") 7294 7295 if (isNaN(arrProperty[1]) == false) 7296 { 7297 // Check if this property's ID has already been calculated 7298 7299 var propertyId = Number(arrProperty[2].split('{=}')[0]); 7300 if (!calculatedProperties.includes(propertyId)) { 7301 total = total + (Number(arrProperty[1])*quantity_clc) 7302 total1 = total.toFixed(2) 7303 start_regularprice = start_regularprice + (Number(arrProperty[1])*quantity_clc) 7304 7305 } 7306 } 7307 }); 7308 } 7309 7310 7311 7312 var relativeprice = 0 ; 7313 $(".item-relativeitems .relativecheckbox:checked").each(function() 7314 { 7315 relativeprice = $(this).attr("price"); 7316 total = total + (Number(relativeprice)*1) 7317 total1 = total.toFixed(2) 7318 start_regularprice = start_regularprice + (Number(relativeprice)*1) 7319 }); 7320 7321 7322 var rl_total = 0; 7323 var rl_regprice_total =0; 7324 var rl_isrebate= 0; 7325 $("#bundlesale .bundlecheckbox:checked").each(function() 7326 { 7327 var rl_price = $(this).attr("price"); 7328 var rl_parent = $(this).attr("parent"); 7329 var rl_regprice = $(this).attr("regprice"); 7330 7331 if (rl_parent != "0" ) 7332 { 7333 rl_total = (rl_total*1) + (rl_price.replace(",","")*1); 7334 rl_regprice_total = (rl_regprice_total*1) + (rl_regprice.replace(",","")*1); 7335 if ($(this).attr("rebateprice")>0) 7336 { 7337 rl_isrebate=1; 7338 } 7339 } 7340 7341 }); 7342 7343 7344 var rl_total_popup = 0; 7345 var rl_regprice_total_popup = 0; 7346 var rl_isrebate_popup = 0; 7347 7348 $("#bundlesale_popup .bundlecheckbox:checked").each(function() 7349 { 7350 var rl_price_popup = $(this).attr("price"); 7351 var rl_parent_popup = $(this).attr("parent"); 7352 var rl_regprice_popup = $(this).attr("regprice"); 7353 7354 if (rl_parent_popup != "0" ) 7355 { 7356 rl_total_popup = (rl_total_popup*1) + (rl_price_popup.replace(",","")*1); 7357 rl_regprice_total_popup = (rl_regprice_total_popup*1) + (rl_regprice_popup.replace(",","")*1); 7358 if ($(this).attr("rebateprice")>0) 7359 { 7360 rl_isrebate_popup=1; 7361 } 7362 } 7363 7364 }); 7365 7366 7367 if(document.all){ 7368 rightProperty="innerText"; 7369 } 7370 else{ 7371 rightProperty="textContent"; 7372 } 7373 7374 try { 7375 //eval("document.getElementById('total')."+rightProperty+" = "+total.toFixed(2)); 7376 var Num_After_dot = "2"; 7377 var temp_dropDecimals = 0; 7378 if (Num_After_dot == "1" || Num_After_dot == "2" ) 7379 { 7380 temp_dropDecimals = 2; 7381 } 7382 7383 /* $("#total").html(total.toFixed(Num_After_dot)).formatCurrency({ 7384 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7385 roundToDecimalPlace: temp_dropDecimals 7386 });*/ 7387 7388 $(".BuildComputerfooter .price span").html(total.toFixed(Num_After_dot)).formatCurrency( 7389 { 7390 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7391 roundToDecimalPlace: temp_dropDecimals 7392 }); 7393 7394 7395 7396 var bundleprice = (total*1) + (rl_total*1); 7397 var rl_total_save = 0 7398 rl_total_save = (rl_regprice_total)+(total*1)-bundleprice 7399 7400 var savetext = $(rl_regprice_total.toFixed(Num_After_dot)).formatCurrency({ 7401 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7402 roundToDecimalPlace: temp_dropDecimals 7403 7404 }); 7405 7406 $(".bundlesavepricetext").hide(); 7407 $("#bundlesaveprice").html(""); 7408 if (rl_total_save>0 && rl_isrebate==1) 7409 { 7410 $(".bundlesavepricetext").show(); 7411 $("#bundlesaveprice").html(rl_total_save.toFixed(Num_After_dot)).formatCurrency({ 7412 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7413 roundToDecimalPlace: temp_dropDecimals 7414 }); 7415 } 7416 7417 7418 $("#bundleprice").html(bundleprice.toFixed(Num_After_dot)).formatCurrency({ 7419 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7420 roundToDecimalPlace: temp_dropDecimals 7421 }); 7422 7423 7424 var bundlepricepopup = (total*1) + (rl_total_popup*1); 7425 var rl_total_savepopup = 0 7426 rl_total_savepopup = (rl_regprice_total_popup)+(total*1)-bundlepricepopup 7427 7428 var savetext = $(rl_regprice_total_popup.toFixed(Num_After_dot)).formatCurrency({ 7429 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7430 roundToDecimalPlace: temp_dropDecimals 7431 7432 }); 7433 7434 $(".bundlesavepricetextpopup").hide(); 7435 $("#bundlesavepricepopup").html(""); 7436 7437 if (rl_total_savepopup > 0 && rl_isrebate_popup == 1 ) 7438 { 7439 $(".bundlesavepricetextpopup").show(); 7440 $("#bundlesavepricepopup").html(rl_total_savepopup.toFixed(Num_After_dot)).formatCurrency({ 7441 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7442 roundToDecimalPlace: temp_dropDecimals 7443 }); 7444 } 7445 7446 7447 $("#bundlepricepopup").html(bundlepricepopup.toFixed(Num_After_dot)).formatCurrency({ 7448 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7449 roundToDecimalPlace: temp_dropDecimals 7450 }); 7451 7452 $("#total_regularprice").html(start_regularprice.toFixed(Num_After_dot)).formatCurrency({ 7453 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7454 roundToDecimalPlace: temp_dropDecimals 7455 7456 }); 7457 7458 $(".toal_regularprice_view").html(start_regularprice.toFixed(Num_After_dot)).formatCurrency({ 7459 groupDigits: true , digitGroupSymbol: ',' , symbol: '', 7460 roundToDecimalPlace: temp_dropDecimals 7461 7462 }); 7463 7464 $(".toal_saleprice_view").html(total.toFixed(Num_After_dot)).formatCurrency({ 7465 groupDigits: true , symbol: '',digitGroupSymbol: ',', 7466 roundToDecimalPlace: temp_dropDecimals 7467 }); 7468 7469 7470 } 7471 catch(err) 7472 {} 7473 7474 try 7475 { 7476 7477 var NewPayment = (((PaymentRibit/100*total)+(total*1))/payments) ; 7478 try 7479 { 7480 7481 document.getElementById("Newpayments").innerHTML = NewPayment.toFixed(Num_After_dot); 7482 } 7483 catch(err) 7484 {} 7485 7486 7487 var currentprice = NewP
7487ayment * payments; 7488 // document.getElementById("total2").innerHTML = currentprice.toFixed(Num_After_dot) + ' <em>¤</em>'; 7489 $(".properties-price #total2").html(currentprice.toFixed(Num_After_dot) + ' <em>¤</em>'); 7490 7491 7492 7493 } 7494 catch(err) 7495 {} 7496 7497 try 7498 { 7499 7500 if ( $(".monthly_payments_select").length ) { 7501 $(".monthly_payments_select").attr("total", total1); 7502 $(".monthly_payments_select").trigger("change"); 7503 7504 } 7505 7506 7507 if ( $(".monthly-payments.ribit").length ) 7508 { 7509 7510 var temp_monthly_payments_ribit = $(".monthly-payments.ribit .payments").attr("ribit"); // Get the ribit attribute from the selected option 7511 7512 var temp_monthly_payments_num = $(".monthly-payments.ribit .payments").html(); 7513 //console.log(temp_monthly_payments_ribit); 7514 var temp_payment_details = loanCal(total1,temp_monthly_payments_num,temp_monthly_payments_ribit); 7515 $(".monthly-payments.ribit .value").html(temp_payment_details.monthlyPayment.toFixed(Num_After_dot)); 7516 } 7517 7518 7519 if ( $(".monthly-payments-list").length ) 7520 { 7521 $(".monthly-payments-list .monthly-payments").each(function(){ 7522 var list_payment = $(this).find(".payments").html(); 7523 7524 if ( $(this).find(".value").hasClass("withribit")) 7525 { 7526 7527 } 7528 else 7529 { 7530 $(this).find(".value").html( (total1/list_payment).toFixed(Num_After_dot) ); 7531 } 7532 7533 }); 7534 } 7535 7536 var temp_payment = $(".product-details-ul .monthly-payments .payments").html(); 7537 7538 if ($(".product-details-ul .monthly-payments .price .value").hasClass("withribit")) 7539 { 7540 7541 } 7542 else 7543 { 7544 $(".product-details-ul .monthly-payments .price .value").html( (total1/temp_payment).toFixed(Num_After_dot) ); 7545 } 7546 7547 document.builditemsprint.PropertiesStr.value = PropertiesStr; 7548 document.getElementById("AdditionalPrice").innerHTML = total1 - start_price; 7549 var CurrentPayNum = document.getElementById("maxPaymentSpan").innerHTML; 7550 CalcPaymentInt(CurrentPayNum); 7551 } 7552 catch(err) 7553 {} 7554 7555 change_total_hook(valu); 7556 } 7557 7558 function ShowImages(objstr) 7559 { 7560 7561 var objarray = objstr.split("|") 7562 if (objarray[5] == "1" ) 7563 { 7564 var PropertyId = objarray[4]; 7565 var ImageId = objarray[3]; 7566 7567 var ImgSrc = "<img src='/images/itempics/Proprties/Property_"+PropertyId+"_"+ImageId+"_m.jpg' alt=''/>"; 7568 document.getElementById("ViewIPPimg"+PropertyId).innerHTML = ImgSrc; 7569 } 7570 } 7571 7572 7573 7574 7575 7576 7577 7578 function fw_SwitchSelect(SelectName,SelectId,num) 7579 { 7580 CurrentSelect = document.getElementById(SelectName) 7581 7582 if (CurrentSelect.style.display == 'none') 7583 { 7584 document.getElementById(SelectId).style.display = '' ; 7585 CurrentSelect.style.display = ''; 7586 if (typeof num!= 'undefined') 7587 { 7588 SelectedTbl = $("#" + "dataTbl"+num ); 7589 //SelectedTbl.style.display = 'none'; 7590 $(SelectedTbl).hide(); 7591 } 7592 } 7593 else 7594 { 7595 CurrentSelect.style.display = 'none'; 7596 document.getElementById(SelectId).style.display = 'none' ; 7597 } 7598 } 7599 7600 function handle_connected_properties(selectElement) { 7601 7602} 7603 7604 function UpdSelectedTxt(SpanTxtId,InsertTxt,DivId,num) 7605 { 7606 if ( InsertTxt !="" ) 7607 { 7608 var TxtStr = InsertTxt.split("|") 7609 var ItemName = TxtStr[0].split(":") 7610 $("#" + SpanTxtId).html("" + ItemName[1]); 7611 //document.getElementById(SpanTxtId).innerHTML = "" + ItemName[1] 7612 if (typeof num!= 'undefined') 7613 { 7614 //SelectedTbl = document.getElementById("dataTbl"+num); 7615 //SelectedTbl.style.display = 'block'; 7616 SelectedTbl = $("#" + "dataTbl"+num ); 7617 //SelectedTbl.style.display = 'none'; 7618 $(SelectedTbl).show(); 7619 } 7620 } 7621 else 7622 { 7623 $("#" + SpanTxtId).html(""); 7624 //document.getElementById(SpanTxtId).innerHTML = "";} 7625 } 7626 7627 7628 try{ShowBuildComputerImages();} 7629 catch(err){} 7630 change_total(); 7631 try {UpdateForumsData();} 7632 catch(err){} 7633 7634 7635 7636 } 7637 7638 7639 7640 7641 $(document).ready(function() 7642 { 7643 7644 //reviews in tabs 7645 $("body").on("click", ".product_small_rate_div a", function () { 7646 7647 if ( $(".product_product_review").parent().hasClass("es_accordion") ) 7648 { 7649 $(".product_product_review").prev().click(); 7650 $('html, body').animate({ 7651 scrollTop: $(".es_accordion").offset().top - getScrollOffset() 7652 }, 500); 7653 } 7654 7655 if ( $(".product_product_review").parent().hasClass("es_accordion") ) 7656 { 7657 var tabcounter = 0; 7658 $(".product_product_review").parent().find(".designbox").each(function(){ 7659 if ( $(this).hasClass("product_product_review") ) 7660 { 7661 7662 $(this).parent().find(".nav-link:eq("+tabcounter+")").click(); 7663 } 7664 tabcounter = tabcounter + 1; 7665 }); 7666 } 7667 7668 if ( $(".product_product_review").parent().hasClass("tabs") ) 7669 { 7670 var tabcounter = 0; 7671 $(".product_product_review").parent().find(".designbox").each(function () { 7672 if ( $(this).hasClass("product_product_review") ) 7673 { 7674 $(this).parent().find(".nav li:eq("+tabcounter+")").find(".nav-link").click(); 7675 } 7676 tabcounter = tabcounter + 1; 7677 }); 7678 } 7679 7680 if ( $("#header").find(".fixed-top").length || $("body").hasClass("responsive") ) 7681 { 7682 $('html, body').animate({ 7683 scrollTop: $(".product_product_review").offset().top - getScrollOffset() 7684 }, 500); 7685 } 7686 }); 7687 7688 7689 7690 7691 $(".properties-package .select").on("click",function(){ 7692 7693 if ( $(this).parents(".properties-group").find(".properties-group-item_check:checked").length == 0 ) 7694 { 7695 alert("áçø îàôééï"); 7696 return false;
7697 } 7698 7699 var selected_radio = $(this).parents(".properties-group").find(".properties-group-item_check:checked"); 7700 var selected_parentid = $(this).parents(".properties-group").find(".properties-group-item_check:checked").attr("parentid") ; 7701 var selected_text = $(this).parents(".properties-group").find(".properties-group-item_check:checked").parent().find("span.label").text(); 7702 7703 7704 $(".properties-group-item_check").each(function() 7705 { 7706 if($(this).is(":checked")) 7707 { 7708 var property_parentid = $(this).attr("parentid") ; 7709 if ( property_parentid != '' && property_parentid != '0' ) 7710 { 7711 $(".properties-group-item_check").each(function() 7712 { 7713 if ( $(this).attr("parentid") == selected_parentid ) 7714 { 7715 //console.log (property_parentid); 7716 $(this).attr('checked', false); 7717 $(this).parents(".properties-package").find(".property_selected").val(""); 7718 7719 } 7720 }); 7721 } 7722 7723 } 7724 7725 }); 7726 7727 $(selected_radio).attr('checked', true); 7728 $(selected_radio).parents(".properties-package").find(".property_selected").val( $(selected_radio).val() ); 7729 $(selected_radio).parents(".properties-package").prevAll(".properyparentname:first").find(".selected_property_name").html( ' : ' + selected_text ) ; 7730 $(this).parents(".properties-package").removeClass("active"); 7731 $(this).parents(".properties-package").addClass("selected"); 7732 $(".ProductPageSection .properties-group").hide(); 7733 change_total(); 7734 return false; 7735 }); 7736 7737 $(".properties-package .cancel").on("click",function(){ 7738 7739 $(this).parents(".properties-group").find(".properties-group-item_check:checked").prop('checked', false); 7740 7741 $(this).parents(".properties-package").removeClass("active"); 7742 $(this).parents(".properties-package").removeClass("selected"); 7743 $(".ProductPageSection .properties-group").hide(); 7744 $(".property_selected").each(function(){ 7745 if ( $(this).val() != "" ) 7746 { 7747 $(this).parents(".properties-package").addClass("selected"); 7748 } 7749 }); 7750 change_total(); 7751 return false; 7752 }); 7753 7754 $(".properties-package .ProperyName").click(function(){ 7755 7756 7757 $(".properties-group-item_check").each(function() 7758 { 7759 if ( $(this).parents("li").hasClass("selected") == false ) 7760 { 7761 $(this).parents("li").removeClass("active"); 7762 $(this).parents("li").removeClass("selected"); 7763 } 7764 }); 7765 7766 var property_parentid = $(this).parents("li").find(".properties-group-item_check").attr("parentid") ; 7767 7768 if ( property_parentid != '' && property_parentid != '0' ) 7769 { 7770 $(".properties-group-item_check").each(function() 7771 { 7772 if ( $(this).attr("parentid") == property_parentid ) 7773 { 7774 $(this).parents("li").removeClass("active"); 7775 $(this).parents("li").removeClass("selected"); 7776 } 7777 }); 7778 } 7779 7780 7781 if ( $(this).parents(".properties-package").hasClass("active") ) 7782 { 7783 //$(this).parents(".properties-package").removeClass("active"); 7784 } 7785 else 7786 { 7787 $(this).parents(".properties-package").addClass("active"); 7788 $(this).parents(".properties-package").find(".properties-group").show(); 7789 } 7790 }); 7791 7792 7793 $(".properties-group-item img").on('mouseenter', function() 7794 { 7795 var prg_path = $(this).attr("bigimage"); 7796 var prg_parent = $(this).parent("div") ; 7797 7798 if ( $(prg_parent).find(".bigimage").length == 0 ) 7799 { 7800 var html = "<img class='bigimage' src='"+ prg_path +"'>" ; 7801 $(html).appendTo(prg_parent); 7802 7803 } 7804 $(prg_parent).find(".bigimage").show(); 7805 }).on('mouseleave', function(){ 7806 var prg_parent = $(this).parent("div") ; 7807 $(prg_parent).find(".bigimage").hide(); 7808 }); 7809 7810 7811 7812 7813 7814 7815 $("body").on("change", ".product_dimension input" , function(){ 7816 change_total(); 7817 $(".price_note .quantity_base").html( $(this).attr("quan_base") ); 7818 $(".price_note .dimension").html( $(this).attr("dimensionname") ); 7819 $(".price_note .price .value").html( $(this).attr("price") ); 7820 7821 }); 7822
7823 $("#quant").change(function(){ 7824 change_total(); 7825 }); 7826 7827 $(".quantplus").click(function(){ 7828 var quantity = $("#quant").val(); 7829 var quan_multiply = $(".ProductPageSection").attr("quan_multiply"); 7830 var quantity_calc = quantity * 1 + (quan_multiply * 1); 7831 7832 if ( quantity == 1 && quan_multiply > 1 ) { 7833 quantity_calc = quantity * 1 + (quan_multiply * 1) - 1; 7834 } 7835 7836 7837 7838 $("#quant").val( quantity_calc ); 7839 change_total(); 7840 }); 7841 7842 $(".quantminus").click(function(){ 7843 var quantity = $("#quant").val(); 7844 var quan_multiply = $(".ProductPageSection").attr("quan_multiply"); 7845 if( quantity > 0 ) 7846 { 7847 var quantity_calc = quantity - quan_multiply * 1; 7848 7849 7850 $("#quant").val( quantity_calc ); 7851 change_total(); 7852 } 7853 }); 7854 7855 7856 7857 7858 $('#product-deliverydate').focus(function(){ 7859 $('#datepicker').datepicker('show'); 7860 }); 7861 7862 7863 var temp = $('#product-deliverydate').val(); 7864 var dateToday = new Date(); 7865 var hour = dateToday.getHours(); 7866 var minDate = dateToday; 7867 if( dateToday.getDay() == 5 && hour > 14 ) 7868 { 7869 minDate = "+2"; 7870 } 7871 7872 7873 $("#product-deliverydate").datepicker({ 7874 showOn: "button", 7875 buttonImage: "/template_inc/eshopstoresframework/images/calendar_select.png", 7876 buttonImageOnly: false, 7877 minDate: minDate, 7878 onSelect: function(dateText) 7879 { 7880 //$("#" + $(this).attr("connectid") ).val( '||' + $(this).attr("propertyid") + 'p{addtext}' + dateText ); 7881 }, 7882 beforeShowDay: function(date) { 7883 var show = true; 7884 if( date.getDay()==6 ) { show=false } 7885 return [show]; 7886 } 7887 }); 7888 7889 7890 7891 $("#product-deliverydate").datepicker("option", "dateFormat", "dd/mm/yy"); 7892 $('#product-deliverydate').val(temp); 7893 $("#todaydate").click 7894 (function() { 7895 var today = new Date(); 7896 today.setDate(today.getDate()); 7897 cmonth = today.getMonth() + 1; 7898 var todaydate = (today.getDate()) + '/' + cmonth + '/' + today.getFullYear(); 7899 $("#product-deliverydate").val(todaydate); 7900 return false; 7901 }); 7902
7903 $("#tommorowdate").click 7904 (function() { 7905 var today = new Date(); 7906 today.setDate(today.getDate() + 1); 7907 cmonth = today.getMonth() + 1; 7908 var todaydate = (today.getDate()) + '/' + cmonth + '/' + today.getFullYear(); 7909 $("#product-deliverydate").val(todaydate); 7910 return false; 7911 }); 7912 7913 7914 $("body").on("click",".gotocheckoutbtn",function() 7915 { 7916 if ($("#item-relativeitems-popup").length > 0 ) 7917 { 7918 if ( $("#item-relativeitems-popup").is(":visible") ) 7919 { 7920 7921 } 7922 else 7923 { 7924 document.addme.pid.value = ""; 7925 7926 $("#item-relativeitems-popup .boxItem a").each(function() 7927 { 7928 $(this).click(function(){ return false;}); 7929 }); 7930 7931 $("#item-relativeitems-popup").appendTo("body"); 7932 $("#item-relativeitems-popup").show(); 7933 $("#item-relativeitems-popup").addClass("removemainitem"); 7934 $("#submitproductform").click(function(){document.addme.submit(); return false;}); 7935 return false 7936 } 7937 } 7938 else 7939 { 7940 return true; 7941 } 7942 return false; 7943 }); 7944 7945 7946 $("body").on("click","#Product_Checkout_Button",function() 7947 { 7948 if ($("#item-relativeitems-popup").length > 0 && typeof(bundleitems) == 'undefined') 7949 { 7950 if ( $("#item-relativeitems-popup").is(":visible") ) 7951 { 7952 document.addme.submit(); 7953 } 7954 else 7955 { 7956 $("#item-relativeitems-popup .boxItem a").each(function() 7957 { 7958 $(this).click(function(){ return false;}); 7959 }); 7960 7961 $("#item-relativeitems-popup").appendTo("body"); 7962 $("#item-relativeitems-popup").show(); 7963 $("#submitproductform").click(function(){document.addme.submit(); return false;}); 7964 7965 } 7966 } 7967 else 7968 { 7969 return true; 7970 } 7971 return false; 7972 7973 }); 7974 7975 7976 $("body").on("click","#Product_continue_Button",function() 7977 { 7978 $(".product-prices.grid_6.omega .prices-box").show(); 7979 $(".product-prices .order-button").show(); 7980 $(".deal-product .prices-box").show(); 7981 $(".deal-product .order-button").show(); 7982 $("#its_btn").show(); 7983 $("#Product_AddToCart_message").removeClass("show"); 7984 $("#Product_AddToCart_message").addClass("hide"); 7985 return false; 7986 }); 7987 7988 $("body").on("click","#Product_AddToCart_message .closeit",function() 7989 { 7990 $("#its_btn").show(); 7991 $(".product-prices.grid_6.omega .prices-box").show(); 7992 $(".product-prices.grid_6.omega .order-button").show(); 7993 $(".product_product_buttons .order-button").show(); 7994 $(".deal-product .prices-box").show(); 7995 $(".deal-product .order-button").show(); 7996 $("#Product_AddToCart_message").removeClass("show"); 7997 $("#Product_AddToCart_message").addClass("hide"); 7998 return false;
7999 }); 8000 8001 8002 $("body").on("click",".add-to-cart.dynamic",function() 8003 { 8004 8005 var currentbutton = $(this); 8006 8007 var tmp_quantity = $("#quant").val(); 8008 8009 var attr = $(this).attr("quantity"); 8010 if (typeof attr !== typeof undefined && attr !== false) 8011 { 8012 tmp_quantity = attr; 8013 } 8014 var product_dimension_Type = '' 8015 if ( $(".product_dimension").length > 0 ) { 8016 product_dimension_Type = $(".product_dimension").find("input:checked").attr("dimension"); 8017 } 8018 var product_itemid = $(this).attr("itemid"); 8019 calculate_package_items(); 8020 url = addme_cart($(this).attr("itemid"),0,tmp_quantity,0,'','',1,'',1); 8021 // console.log("url=" + url); 8022 if (url!="" && typeof url !== 'undefined') 8023 { 8024 8025 $(".product-prices.grid_6.omega .prices-box").hide(); 8026 $(".product-prices .order-button").hide(); 8027 $(".product_product_buttons .order-button").hide(); 8028 8029 $("#Product_AddToCart_message").removeClass("hide"); 8030 $("#Product_AddToCart_message").addClass("show"); 8031 $("#Product_AddToCart_message").html("<div class='alert alert-success' style='direction:ltr'>...àðà äîúï</div>"); 8032 8033 $.post( param_cartlogic_url, { Ajax: param_Ajax, pid: param_pid, pip_str: param_pip_str, pip_prices: param_pip_prices, pip_ids: param_pip_ids, quan: param_quan, RequestGiftInfo: param_RequestGiftInfo, m: param_m, BuildComputerItems: param_BuildComputerItems , product_dimension_Type : product_dimension_Type }).done(function( data ) { 8034 //console.log(data); 8035 8036 var data_array = data.split("|"); 8037 if (data_array[0]=="0") 8038 { 8039 $("#Product_AddToCart_message").html("<div class='alert alert-danger'><a href='#' class='closeit'>X ñâéøä</a> "+data_array[1]+"</div>"); 8040 } 8041 else 8042 { 8043 8044 $("#Product_AddToCart_message").html("<div class='alert alert-success'><a href='#' class='closeit'>X ñâéøä</a> äîåöø ðåñó ìñì <a class='add-to-cart btn-link btn-primary gotocheckoutbtn' rel='nofollow' href='/cart.asp'><span>äîùê ì÷åôä</span></a> </div>"); 8045 //location.href="#product-prices-div"; 8046 8047 try 8048 { 8049 quan = $("#miniCart #cartQuantity").html(); 8050 $("#miniCart #cartQuantity").html((quan*1) + 1); 8051 }catch(err){} 8052 8053 analytic_addtocart_event(product_itemid); 8054 8055 Ajax_updateCartInfo(); 8056 8057 } 8058 // RenderAllCarts(); 8059 }) 8060 } 8061 8062 return false; 8063 } 8064 ); 8065 8066 $(".is_desktop #item-relativeitems-popup .relativecheckbox").prop('checked',false); 8067 $(".is_desktop #item-relativeitems-popup .addtocartcheckbox span").click(function(){$(this).parent().find(".relativecheckbox").trigger("click")}); 8068 //$("#item-relativeitems-popup .addtocartcheckbox span").on('click touchstart'(function(){$(this).parent().find(".relativecheckbox").tap()}); 8069 $(".is_desktop .content_relativeitems.screen-center .boxItem").mouseenter(function() 8070 { 8071 $(this).find(".itemquickpreview").show(); 8072 8073 8074 }).mouseleave(function() 8075 { 8076 $(this).find(".itemquickpreview").hide(); 8077 8078 }); 8079 8080 8081 8082 8083 /* $("#switchpersonalsaleoffs").click(function() 8084 { 8085 $(".product-prices").show(); 8086 $("#personalsalesection").hide();
8087 $(".product-short-desc").show(); 8088 return false; 8089 });*/ 8090 8091 $("body").on("click",".link-to-personalsale",function() 8092 { 8093 $(this).parents(".product-prices").hide(); 8094 $("#personalsalesection").show(); 8095 location.href="#personalsalesection"; 8096 $(".PersonalDivFrm #UserName").focus(); 8097 $("#ps_price").focus(); 8098 $(".product-short-desc").hide(); 8099 8100 return false; 8101 }); 8102 8103 8104 8105 8106 $("input.CompItemCheck").click(function() 8107 { 8108 var minlimit = $(this).parents("li.parent").attr("minlimit") 8109 var maxlimit = $(this).parents("li.parent").attr("maxlimit") 8110 var selected = $(this).parents("li.parent").find("input.CompItemCheck:checked").length; 8111 last_bc_li = $(this).parents("li.parent").find(".CompSwithBtn").attr("id"); 8112 if (selected > maxlimit && maxlimit>0) 8113 { 8114 alert( "ìà ðéúï ìáçåø éåúø î-" + maxlimit); 8115 $(this).attr('checked', false); 8116 set_CompSectionProductsHolder(); 8117 8118 } 8119 }) ; 8120 8121 8122 8123 $(".CompSwithBtn").click(function() 8124 { 8125 8126 8127 current_bc_li = $(this).attr("id"); 8128 var str = current_bc_li; 8129 var counter = $(this).parents("li.parent").attr("counter"); 8130 var compCatID = $(this).parents("li.parent").attr("compCatID"); 8131 var compItemCatID = $(this).parents("li.parent").attr("compItemCatID"); 8132 8133 if ( $(this).parents("li.parent").find(".CompSubMenu").length == 0 ) 8134 { 8135 $.get( "/services/ProductServices.asp?service=product_sys_items&compItemCatID="+compItemCatID+"&compCatID="+compCatID+"&i="+counter , function( data ) 8136 { 8137 $("#bc-li-"+counter).append(data); 8138 switch_comp(str); 8139 }); 8140 } 8141 else 8142 { 8143 switch_comp(str); 8144 } 8145 8146 return false; 8147 }); 8148 8149 8150 8151 var temp = $('.property-datepicker').val(); 8152 $(".property-datepicker").datepicker({ 8153 showOn: "button", 8154 buttonImage: "/template_inc/eshopstoresframework/images/calendar_select.png", 8155 buttonImageOnly: false, 8156 onSelect: function(dateText) 8157 { 8158 $("#" + $(this).attr("connectid") ).val( '||' + $(this).attr("propertyid") + '{=}{addtext}' + dateText ); 8159 } 8160 }); 8161 $(".property-datepicker").datepicker("option", "dateFormat", "dd/mm/yy"); 8162 $('.property-datepicker').val(temp); 8163 8164 8165 }); 8166 8167 8168 8169 8170 $('.property-duplicates .duplicates').on('input', function() { 8171 var PropertyId = $(this).parents(".property-duplicates").attr("data-property-id"); 8172 const numberOfInputs = $(this).val(); 8173 const container = $(this).parent().find(".dynamic-input-container"); 8174 const option_label = $(this).attr("data-option") 8175 8176 container.empty(); 8177 var string = numberOfInputs ; 8178 8179 for (let i = 0; i < numberOfInputs; i++) { 8180 8181 const input = $('<input>', { 8182 type: 'text', 8183 class: 'form-control mb-2', 8184 dir: 'rtl', 8185 placeholder: option_label + ` ${i + 1}` 8186 }); 8187 container.append(input); 8188 } 8189 8190 $('#property_'+PropertyId).val('||'+PropertyId+'{=}{addtext}'+ string ); 8191 8192 }); 8193 8194 8195 $(".property-duplicates .duplicates").each(function(){ 8196 var $currentInput = $(this); 8197 var property_id = $currentInput.attr("date-validation-id"); 8198 8199 $("#property_" + property_id).off('change').on('change', function() { 8200 // Empty the $currentInput when the select element changes 8201 $currentInput.val(''); 8202 $currentInput.trigger('input'); 8203 }); 8204 }); 8205 8206 8207 $('body').on('input', '.dynamic-input-container .form-control', function() { 8208
8209 // console.log( 'property_id=' + property_id ); 8210 var $currentInput = $(this); 8211 $currentInput.parent().find('.validation-message').remove(); 8212 var property_id = $currentInput.parents(".property-duplicates").find(".duplicates").attr("date-validation-id") ; 8213 var reduce_number = $currentInput.parents(".property-duplicates").find(".duplicates").attr("data-price") ; 8214 8215 var inputString = $("#property_" + property_id + " option:selected").attr("value") ; 8216 var splitByColon = inputString.split(':'); 8217 var valuesPart = splitByColon[1]; 8218 var valuesArray = valuesPart.split('|'); 8219 var maximum_number = valuesArray[0]; 8220 8221 var PropertyId = $currentInput.parents(".property-duplicates").attr("data-property-id"); 8222 var string = $currentInput.parents(".property-duplicates").find(".duplicates").val() + ' '; 8223 var totalSum = 0; // Initialize total sum of input values 8224 8225 $currentInput.parent().find("input").each(function(){ 8226 var inputValue = parseFloat($(this).val(), 10) || 0; // Parse input value, default to 0 if NaN 8227 totalSum += inputValue; // Add input value to total sum 8228 string = string + '\n ' + $(this).attr("placeholder") + ' = ' + $(this).val()+ ' '; 8229 maximum_number = maximum_number - reduce_number; 8230 }); 8231 8232 maximum_number = (maximum_number).toFixed(2); 8233 8234 // console.log( totalSum + ' ' + maximum_number ); 8235 8236 // check if the total sum exceeds the maximum number 8237 if (totalSum > maximum_number ) { 8238 //alert("The total sum of all inputs cannot exceed " + maximum_number); 8239 $('<div class="validation-message" style="color: red;margin-top: -6px;">äñëåí äëåìì ìà éëåì ìçøåâ î- ' + maximum_number + '</div>').insertAfter($currentInput); 8240 // Take any action you see fit: disable the input, clear the last entry, show a message, etc. 8241 $currentInput.val(''); 8242 } else { 8243 // If the sum does not exceed the maximum, update the value as before 8244 $('#property_' + PropertyId).val('||' + PropertyId + '{=}{addtext}' + encodeEmojis(string) + '\n'); 8245 } 8246 8247 }); 8248 8249 8250 8251 8252 8253 8254 function PropertyTextHandle(PropertyId,obj) 8255 { 8256 var string = $(obj).val(); 8257 //string = string.replace("p", "p"); 8258 //string = string.replace("P", "P"); 8259 string = string.replace(/,/g, ","); 8260 string = string.replace(/@/g, "&at;"); 8261 string = encodeEmojis(string); 8262 8263 $('#property_'+PropertyId).val('||'+PropertyId+'{=}{addtext}'+ string ); 8264 return false; 8265 } 8266 8267 8268 </script>
8268 8269 8270 8271
8271<script type="text/javascript"> 8272 String.prototype.charRefToUnicode = function() 8273 { 8274 return this.replace( 8275 /&#(([0-9]{1,7})|(x[0-9a-f]{1,6}));?/gi, 8276 function(match, p1, p2, p3, offset, s) 8277 { 8278 return String.fromCharCode(p2 || ("0" + p3)); 8279 }); 8280 } 8281 8282 var ItemPromotionIdentStr = '';//Selected items Promotion 8283 var numOfItems=0; 8284 8285 function addtocart_hook() 8286 {return true;} 8287 8288 8289 8290 8291 8292 function analytic_addtocart_event( product_itemid ){ 8293 8294 8295 var e_item_id = '' ; 8296 var e_item_name = '' ; 8297 var e_item_brand = '' ; 8298 var e_item_category = '' ; 8299 var e_item_variant = '' ; 8300 var e_item_price = '' ; 8301 var e_item_quantity = '' ; 8302 var e_varient = '' ; 8303 8304 8305 var productArray = product_itemid.split(', '); 8306 for (var i = 0; i < productArray.length; i++) { 8307 8308 e_item_id = productArray[i] ; 8309 8310 e_item_name = '' ; 8311 e_item_brand = '' ; 8312 e_item_category = '' ; 8313 e_item_variant = '' ; 8314 e_item_price = '' ; 8315 e_item_quantity = '' ; 8316 e_varient = '' ; 8317 8318 var found = false; 8319 8320 var elements = document.querySelectorAll('[ee_product_id]'); 8321 elements.forEach(function(element) { 8322 8323 //main product 8324 if (element.getAttribute('ee_product_id') === e_item_id) { 8325 8326 found = true; 8327 if ($(".productlink.current").length > 0 ) 8328 { 8329 e_varient = $(".productlink.current").attr("itemname"); 8330 } 8331 e_item_name = $(".ProductPageSection").attr("ee_product_name") 8332 e_item_brand = $(".ProductPageSection").attr("ee_product_brand") 8333 e_item_category = $(".ProductPageSection").attr("ee_product_category") 8334 e_item_variant = e_varient; 8335 e_item_price = $("#total").text(); 8336 e_item_quantity = $("#quant").val(); 8337 return true; 8338 } 8339 8340 }); 8341 8342 if ( ! found ) { 8343 8344 var elements = document.querySelectorAll('[ee_list_itemid]'); 8345 elements.forEach(function(element) { 8346 8347 //relative button 8348 if (element.getAttribute('ee_list_itemid') === e_item_id) { 8349 found = true; 8350 e_item_name = element.getAttribute('ee_list_itemname'); 8351 e_item_brand = element.getAttribute('ee_list_itembrand'); 8352 e_item_category = element.getAttribute('ee_list_category'); 8353 e_item_variant = ""; 8354 e_item_price = element.getAttribute('ee_list_itemprice'); 8355 e_item_quantity = 1 8356 return true; 8357 } 8358 8359 }); 8360 } 8361 8362 // relative checkbox 8363 if ( ! found ) { 8364 8365 $(".relativecheckbox").each(function(){ 8366 8367 if ( $(this).val() == e_item_id ) { 8368 8369 if ( $(this).is(':checked') ){ 8370 8371 element = $(this); 8372 var item_element = element.parents(".boxItem").find(".ee_product_click"); 8373 found = true; 8374 e_item_name = item_element.attr('ee_list_itemname'); 8375 e_item_brand = item_element.attr('ee_list_itembrand'); 8376 e_item_category = item_element.attr('ee_list_category'); 8377 e_item_variant = ""; 8378 e_item_price = element.attr('price'); 8379 e_item_quantity = 1 8380 console.log( e_item_id + ' ' + e_item_name ); 8381 return true; 8382 } 8383 } 8384 8385 }); 8386 8387 } 8388 8389 if ( found ) { 8390 8391 if ( e_item_price != '' ){ e_item_price = e_item_price.replace(/[^\d\.]/g,'') } 8392 if ( e_item_quantity != '' ){ e_item_quantity = 1 } 8393 8394 8395 8396 } 8397 8398 } 8399 8400 } 8401 8402 function addme_cart(pid,is_ic,quan,numOfItems, ItemPromotionIdentStr , bundleitems,IsDynamicAddToCart,IgnorAjax,return_cartlogic_url){ 8403 calculate_package_items(); 8404 var oktosubmit= "1"; 8405 if ( return_cartlogic_url == undefined ) 8406 { 8407 return_cartlogic_url = ""; 8408 } 8409 8410 if (ItemPromotionIdentStr == undefined) 8411 {ItemPromotionIdentStr = ""; } 8412 8413 if (IsDynamicAddToCart == undefined) 8414 {IsDynamicAddToCart = ""; } 8415 8416 if (IgnorAjax == undefined) 8417 {IgnorAjax = ""; } 8418 8419 if (numOfItems == undefined) 8420 {numOfItems = 0; } 8421 8422 if (typeof(bundleitems) == "undefined") 8423 { 8424 bundleitems = "0"; 8425 } 8426 else 8427 { 8428 if (bundleitems == '') 8429 { bundleitems ='0'; } 8430 else 8431 { 8432 if ( bundleitems == '2' ) { 8433 8434 } else 8435 8436 { 8437 bundleitems = '1'; 8438 } 8439 8440 } 8441 } 8442 8443 8444 8445 document.addme.pid.value = pid; 8446 if( quan == "" || quan == undefined){ 8447 quan=1; 8448 } 8449 if (is_ic == 0) 8450 { 8451 var pip_str = "" 8452 var pip_prices = 0 8453 var pip_ids = "" 8454 var temparr = "" 8455 var isRequierd = "" 8456 var varient = ""
8457 var BuildComputerItemsInput = ''; 8458 document.addme.pip_str.value = "" 8459 document.addme.pip_prices.value = "" 8460 document.addme.pip_ids.value = "" 8461 document.addme.quan.value = quan 8462 8463 try{ 8464 8465 8466 8467 pip_str = pip_str.substr(1,pip_str.length-1) 8468 pip_ids = pip_ids.substr(1,pip_ids.length-1) 8469 document.addme.pip_str.value = pip_str; 8470 8471 if (pip_prices!='NaN'){ 8472 document.addme.pip_prices.value = pip_prices} 8473 if (pip_ids!='undefined'){ 8474 document.addme.pip_ids.value = pip_ids} 8475 8476 } 8477 catch(e){} 8478 8479 8480 8481 8482 8483 } 8484 8485 8486 //Get selected items Promotion 8487// try{ 8488 for (i=0;i<document.getElementsByName("GiftItemIdentView").length;i++) 8489 { 8490 obj=document.getElementsByName("GiftItemIdentView")[i]; 8491 if (obj.checked == true || obj.className=="GiftItemChecked"){ 8492 ItemPromotionIdentStr = ItemPromotionIdentStr + obj.value + '~';} 8493 } 8494 8495 document.addme.RequestGiftInfo.value = ItemPromotionIdentStr ; 8496 8497 // }catch (e){} 8498 8499 if ( $(".properties-group-item_check").length ){ 8500 8501 var properties_group = ''; 8502 8503 $(".properties-group-item_check:checked").each(function(){ 8504 temparr = $(this).val(); 8505 if ( temparr != '' ) { 8506 temparr = temparr.split("|") 8507 pip_str = pip_str+"/"+temparr[0].replace("'","`") 8508 pip_prices = pip_prices+Number(temparr[1]) 8509 8510 8511 if ( typeof temparr[2] != 'undefined' ){ 8512 pip_ids = pip_ids+"@"+temparr[2] 8513 properties_group = properties_group+"@"+temparr[2] 8514 } 8515 8516 } 8517 }); 8518 8519 if ( properties_group != '' ){ 8520 document.addme.pip_ids.value = document.addme.pip_ids.value + properties_group; 8521 } 8522 8523 } 8524 8525 8526 // console.log( 'pip_ids' + pip_ids ); 8527 8528 8529 var CartParamsStr = '' ; 8530 $(".CartParams").each(function() 8531 { 8532 8533 CartParamsStr = CartParamsStr + $(this).attr("id") + '{=}' + encodeEmojis($(this).val()) + '{|}' ; 8534 }); 8535 8536 if (CartParamsStr != '' ) 8537 { 8538 document.addme.CartParams.value = CartParamsStr; 8539 } 8540 8541 8542 8543 8544 var relativepid = ""; 8545 var relativequan = ""; 8546 var relativeproperties = ""; 8547 8548 //add checked relative items 8549 if ( jQuery(".relativecheckbox").length > 0 ) 8550 { 8551 8552 $(".relativecheckbox").each(function() 8553 { 8554 if ($(this).is(":checked")) 8555 { 8556 relativepid = relativepid + ', '+ $(this).val(); 8557 8558 if ( $(this).parents(".boxItem").find("input[name='quantity']").length > 0 ) 8559 { 8560 relativequan = relativequan + ', ' + $(this).parents(".boxItem").find("input[name='quantity']").val(); 8561 } 8562 else 8563 { 8564 relativequan = relativequan + ', 1'; 8565 } 8566 8567 var currrent_item_ident = $(this).parents(".boxItem").attr("itemident"); 8568 relativeproperties = relativeproperties + ', ' + $("#prop_id_hid_"+currrent_item_ident).val(); 8569 8570 $(this).parents(".boxItem").find(".required-properties").each(function(){ 8571 if ( $(this).val() == "" ){ 8572 alert( "àðà áçø " + $(this).parent().find("label").html() ); 8573 oktosubmit = 0; 8574 return false;
8575 } 8576 }); 8577 8578 if ( oktosubmit == 0 ) 8579 { 8580 return false; 8581 } 8582 8583 numOfItems = "1"; 8584 } 8585 }) 8586 8587 if (relativepid != '') 8588 { 8589 document.addme.pid.value = document.addme.pid.value + relativepid; 8590 document.addme.quan.value = document.addme.quan.value + relativequan; 8591 document.addme.pip_ids.value = document.addme.pip_ids.value + relativeproperties; 8592 } 8593 } 8594 8595 var product_package_params = ""; 8596 8597 8598 var bundlepid=''; 8599 var bundlequan=''; 8600 var bundleproperties=''; 8601 // add bundle items 8602 if (bundleitems=='1') 8603 { 8604 if ($("#bundlepid").length > 0) 8605 { 8606 if ($("#bundlepid").val() != '' && $("#bundlequan").val() != '') 8607 { 8608 document.addme.pid.value = document.addme.pid.value + $("#bundlepid").val(); 8609 document.addme.quan.value = document.addme.quan.value + $("#bundlequan").val(); 8610 bundlepid = bundlepid + $("#bundlepid").val() + ', '; 8611 bundlequan = bundlequan + $("#bundlequan").val() + ', '; 8612 bundleproperties = bundleproperties + ', '; 8613 numOfItems = "1" 8614 } 8615 } 8616 } 8617 8618 if ( bundleitems == '2' ){ 8619 if ( $("#bundlepidpopup").length > 0 ) 8620 { 8621 if ($("#bundlepidpopup").val() != '' && $("#bundlequanpopup").val() != '') 8622 { 8623 document.addme.pid.value = document.addme.pid.value + $("#bundlepidpopup").val(); 8624 document.addme.quan.value = document.addme.quan.value + $("#bundlequanpopup").val(); 8625 bundlepid = bundlepid + $("#bundlepidpopup").val() + ', '; 8626 bundlequan = bundlequan + $("#bundlequanpopup").val() + ', '; 8627 bundleproperties = bundleproperties + ', '; 8628 numOfItems = "1" 8629 } 8630 } 8631 } 8632 8633 if ($(".productlink.current").length > 0 ) 8634 { 8635 varient = varient + $(".productlink.current").attr("itemname"); 8636 } 8637 8638 8639 8640 8641 8642 if (oktosubmit=="1") 8643 { 8644 if ( addtocart_hook() == false) 8645 { 8646 return false; 8647 } 8648 8649 8650 8651 cartlogic_url = "/CartLogic.asp?Ajax=1&pid=" + pid+bundlepid+relativepid + "&pip_str=" + pip_str + "&pip_prices=" + pip_prices + "&pip_ids=" + pip_ids + "&quan=" + quan+bundlequan+relativequan + "&RequestGiftInfo=" + ItemPromotionIdentStr + "&m=" + numOfItems + "&BuildComputerItems=" + BuildComputerItemsInput + "&CartParams=" + CartParamsStr+product_package_params; 8652 param_cartlogic_url = "/CartLogic.asp?CartParams=" + CartParamsStr+product_package_params; 8653 param_Ajax = "1"; 8654 param_pid = pid+bundlepid+relativepid; 8655 param_pip_str = pip_str; 8656 param_pip_prices = pip_prices; 8657 param_pip_ids = pip_ids + bundleproperties + relativeproperties; 8658 param_quan = quan+bundlequan+relativequan; 8659 param_RequestGiftInfo = ItemPromotionIdentStr; 8660 param_m = numOfItems; 8661 param_BuildComputerItems = BuildComputerItems
8661Input; 8662 8663 8664 8665 if ( product_package_params != "" ) { 8666 $("#product_addme_form").attr( "action" , param_cartlogic_url ); 8667 } 8668 8669 8670 8671 if (IsDynamicAddToCart=="1" ) 8672 { 8673 //console.log("call CartLogic"); 8674 // return "/CartLogic.asp?Ajax=1&pid=" + pid + "&pip_str=" + pip_str + "&pip_prices=" + pip_prices + "&pip_ids=" + pip_ids + "&quan=" + quan + "&RequestGiftInfo=" + ItemPromotionIdentStr + "&m=&BuildComputerItems="+BuildComputerItemsInput; 8675 var addcarturl = cartlogic_url; //"/CartLogic.asp?Ajax=1&pid=" + pid + "&pip_str=" + pip_str + "&pip_prices=" + pip_prices + "&pip_ids=" + pip_ids + "&quan=" + quan + "&RequestGiftInfo=" + ItemPromotionIdentStr + "&m=&BuildComputerItems="+BuildComputerItemsInput; 8676 8677 if ( return_cartlogic_url == "1" ) 8678 { 8679 return addcarturl; 8680 } 8681 else 8682 { 8683 $.post( param_cartlogic_url, { Ajax: param_Ajax, pid: param_pid, pip_str: param_pip_str, pip_prices: param_pip_prices, pip_ids: param_pip_ids, quan: param_quan, RequestGiftInfo: param_RequestGiftInfo, m: param_m, BuildComputerItems: param_BuildComputerItems }).done(function( data ) { 8684 analytic_addtocart_event(param_pid); 8685 Ajax_updateCartInfo(); 8686 }); 8687 //RenderAllCarts(); 8688 return false; 8689 } 8690 8691 } 8692 else 8693 { 8694 if ( return_cartlogic_url == "1" ) 8695 { 8696 return cartlogic_url; 8697 } 8698 else 8699 { 8700 if ($("#item-relativeitems-popup").length > 0 && bundleitems=='0') 8701 { 8702 if ( $("#item-relativeitems-popup").is(":visible") ) 8703 { 8704 document.addme.submit(); 8705 } 8706 else 8707 { 8708 $("#item-relativeitems-popup .boxItem a").each(function() 8709 { 8710 $(this).click(function(){ return false;}); 8711 }); 8712 $("#item-relativeitems-popup").appendTo("body"); 8713 $("#item-relativeitems-popup").show(); 8714 $("#submitproductform").click(function(){document.addme.submit(); return false;}); 8715 } 8716 } 8717 else 8718 { 8719 document.addme.submit(); 8720 } 8721 } 8722 } 8723 8724 8725 } 8726 } 8727 8728 function openpic(id){ 8729 sw = screen.width/2 8730 sh = screen.height/2 8731 sww = screen.width-50 8732 shh = screen.height-60 8733 8734 newwin = window.open('/Pic_Pop.asp?lang=&ItemID='+id,null,'height='+shh+',width='+sww+',scrollbars=yes,resizable=yes,left=10,top=10') 8735 //newwin = window.open('Pic_Pop.asp?lang=&ItemID='+id,null,'height='+shh+',width='+sww+',scrollbars=yes,resizable=yes,left=10,top=10'); 8736 } 8737 8738 </script>
8738 8739 8740 <form name="addme" id='product_addme_form' method="post" action="https://www.medicon.co.il/CartLogic.asp"> 8741 <input type="hidden" name="pid" value="" /> 8742 <input type="hidden" name="pip_str" value="" /> 8743 <input type="hidden" name="pip_prices" value="" /> 8744 <input type="hidden" name="pip_ids" value="" /> 8745 <input type="hidden" name="quan" value="" /> 8746 <input type="hidden" name="RequestGiftInfo" value="" /> 8747 <input type="hidden" name="M" value="" /> 8748 <input type="hidden" name="BuildComputerItems" value="" /> 8749 <input type="hidden" name="TradingItem" value="" /> 8750 <input type="hidden" name="CartParams" value="" /> 8751 </form> 8752 8753</table> 8754</td> 8755</tr> 8756</table> 8757</td> 8758<td valign="top" align=right height=100%> 8759 8760<!--==== Hide Left&Topic if we are in PRINT mode ===============--> 8761 8762 <!--[ SideBar Start ]--> 8763 8764 <div id="sidebar" > 8765 <div class = "wrap"> 8766 <!--[Dynamic SideBar Modules]--> 8767 <!--[ start_smallcart_39 ]--> 8768 <div class=" designbox sidebar_smallcart" id="designbox_39" > 8769 8770 8771 <div class="block smallcart grid_4 cart_icon " > 8772 8773 <div class="title"><strong><span> 8774 òâìú ä÷ðéåú 8775 </span></strong></div> 8776 8777 <div class="content"> 8778 <p id="cartPriceTR" style="display:none" onclick="location.href='https://www.medicon.co.il/cart.asp';" > 8779 <span id="cartQuantity"></span> 8780 <span id="cartitemstext">ôøéèéí áòâìä</span> 8781 <span id="carttotaltext">ñä"ë</span> 8782 <span id="cartpricetext">¤<span id="cartPrice"></span></span> 8783 </p> 8784 <p id="cartEmptyTR" > 8785 <span>àéï îåöøéí áòâìä </span> 8786 <span id="cartQuantityTR"></span> 8787 </p> 8788 </div> 8789 </div> 8790 </div><!--[ end_smallcart_39 ]--><!--[ start_searchbox_38 ]--> 8791 <div class=" designbox sidebar_searchbox" id="designbox_38" > 8792 8793 8794 <div class="block searchbox grid_4" > 8795 8796 <div class="title"><strong><span> 8797 çéôåù áàúø</span></strong></div> 8798 8799 <div class="content ui-widget"> 8800 8801
8801<script type="text/javascript"> 8802 8803 8804 $( document ).ready(function() 8805 { 8806 8807 8808 8809 $("#right_srch_str").keydown(function(event) 8810 { 8811 if(event.keyCode == 13 && search_form_submited == false ) 8812 { 8813 event.preventDefault(); 8814 submitsearchform(); 8815 return false; 8816 } 8817 }); 8818 8819 $("#right_srch_str").autocomplete 8820 ({ 8821 delay: 700 , 8822 minLength: 3, 8823 appendTo:$("#right_srch_str").parent(), 8824 select: function(event, ui) 8825 { 8826 if (ui.item.itemid == "category") 8827 { 8828 document.location = 'https://www.medicon.co.il/' + ui.item.url ; 8829 } 8830 else if (ui.item.itemid == "") 8831 { 8832 submitsearchform(); 8833 return false; 8834 } 8835 else 8836 { 8837 8838 document.location = 'https://www.medicon.co.il/product.asp?pid='+ui.item.itemid; 8839 8840 } 8841 }, 8842 source: function(request, response) 8843 { 8844 8845 8846 $.ajax( 8847 { 8848 url: "/autocompletexml.asp?term=" + encodeURIComponent(request.term), 8849 dataType: "xml", 8850 success: function(xmlResponse) 8851 { 8852 var data = $("Item", xmlResponse).map(function() 8853 { 8854 return { 8855 label: $("Name", this).text(), 8856 value: $("Name", this).text(), 8857 id: $("Ident", this).text(), 8858 itemid: $("ItemId", this).text(), 8859 image: $("Image1", this).text(), 8860 url : $("Url", this).text(), 8861 image_name:$("Image_name", this).text() 8862 }; 8863 }); 8864 response(data); 8865 } 8866 }); 8867 8868 } 8869 }).data("autocomplete")._renderItem = function(ul, item) 8870 { 8871 if (item.image == '1') 8872 { img = '<span class="item-icon"><span><img align=absmiddle src=/images/itempics/' + item.image_name + '_small50.jpg></span></span>'; } 8873 else 8874 { img = '';} 8875 8876 if (item.url != '') 8877 { 8878 item_class = 'with_url'; 8879 } 8880 else 8881 { 8882 item_class = ''; 8883 } 8884 return $('<li class="ui-menu-item-with-icon ' + item_class + ' "></li>') 8885 .data("item.autocomplete", item) 8886 .append('<a>' + img + '<span class="item-name">' + item.label + '</span></a>') 8887 .appendTo(ul); 8888 }; 8889 8890 8891 8892 $.ui.autocomplete.prototype._renderMenu = function(ul, items) { 8893 var self = this; 8894 $.each(items, function(index, item) 8895 { 8896 if (index < 8) // here we define how many results to show 8897 { self._renderItem(ul, item); } 8898 }); 8899 } 8900 }); 8901 8902 8903
8904 function send_search_event (formObj) 8905 { 8906 8907 8908 } 8909 8910 function submitsearchbuttonform(obj){ 8911 search_form_submited = true; 8912 var submitButton = $(obj).find("button[type='submit']"); 8913 // Disable the submit button 8914 submitButton.prop("disabled", true); 8915 return true; 8916 } 8917 8918 function checkSrchFormSP(formObj) 8919 { 8920 if ( $(formObj).find("select[name=mfield]").length > 0 ) 8921 { 8922 var mFLDs =''; 8923 $(formObj).find("select[name=mfield]").each(function() 8924 { 8925 if ( $(this).val() != '' ) 8926 { 8927 mFLDs = mFLDs + $(this).val() + "-"; 8928 } 8929 }); 8930 $(formObj).find("input[name=mFLDs]").val(mFLDs); 8931 } 8932 8933 var qmanufact = $(formObj).find("select[name=qmanufact]").val(); 8934 var qsearch = $(formObj).find("input[name=Qsearch]").val(); 8935 8936 var DefaultStr = 'äëðñ îéìåú çéôåù'; 8937 if ( qsearch.length > 1 || qmanufact != "" ) 8938 { 8939 if (DefaultStr == qsearch ) 8940 {delText(DefaultStr);} 8941 8942 if ( qsearch.length > 1 || qmanufact != "") 8943 { 8944 formObj.key.value=$("#userkey").attr("userkey"); 8945 send_search_event (formObj); 8946 return submitsearchbuttonform(formObj); 8947 //return false; 8948 } 8949 else 8950 { 8951 8952 if ( $(formObj).find("select[name=Cat2Cat1ID]").length > 0 ) 8953 { 8954 if ($(formObj).find("select[name=Cat2Cat1ID]").val() != '') 8955 { 8956 send_search_event (formObj); 8957 return submitsearchbuttonform(formObj); 8958 //return false; 8959 } 8960 } 8961 8962 if ( $(formObj).find("input[name=mFLDs]").length > 0 ) 8963 { 8964 if ($(formObj).find("input[name=mFLDs]").val() != '') 8965 { 8966 send_search_event (formObj); 8967 return submitsearchbuttonform(formObj); 8968 //return false; 8969 } 8970 } 8971 8972 return false; 8973 } 8974 } 8975 else 8976 { 8977 8978 if ( $(formObj).find("select[name=Cat2Cat1ID]").length > 0 ) 8979 { 8980 if ($(formObj).find("select[name=Cat2Cat1ID]").val() != '') 8981 { 8982 send_search_event (formObj); 8983 return submitsearchbuttonform(formObj); 8984 //return false; 8985 } 8986 } 8987 8988 if ( $(formObj).find("input[name=mFLDs]").length > 0 ) 8989 { 8990 if ($(formObj).find("input[name=mFLDs]").val() != '') 8991 {
8992 send_search_event (formObj); 8993 return submitsearchbuttonform(formObj); 8994 //return false; 8995 } 8996 } 8997 8998 return false; 8999 } 9000 } 9001 9002 function delText(Text,formObj) { 9003 9004 if (formObj.Qsearch.value == Text) { 9005 formObj.Qsearch.value = ''; 9006 } 9007 } 9008 9009 function checkFormChrSP(formObj) 9010 { 9011 if (formObj == 13) 9012 { 9013 9014 9015 // $( "#right_srch_str" ).autocomplete( "destroy" ); 9016 //submitsearchform(); 9017 return false; 9018 } 9019 } 9020 9021 function showtext(Text,formObj) { 9022 if (formObj.Qsearch.value == '') 9023 { formObj.Qsearch.value = Text; } 9024 } 9025 </script>
9025 9026 9027 <form action="https://www.medicon.co.il/items.asp" method="get" name="SearchFrm" onsubmit="return checkSrchFormSP(this);"> 9028 <input type="hidden" name="IsPostback" value="true"/> 9029 <fieldset> 9030 <div class=""> 9031 9032 <label for="right_srch_str">çôù:</label> 9033 9034 <input type="text" dir="rtl" name="Qsearch" placeholder="äëðñ îéìåú çéôåù" class="text" id="right_srch_str" value="" /> 9035 <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> 9036 <input type="hidden" name="stype" value="M"/> 9037 9038 <button class="button btn-primary" title="çôù" type="submit"><span><span>çôù</span></span></button> 9039 </fieldset> 9040 <input type="hidden" value="s" name="key"> 9041 9042 </form> 9043 </div> 9044 </div> 9045 </div><!--[ end_searchbox_38 ]--><!--[ start_categories_37 ]--> 9046 <div class=" designbox sidebar_categories" id="designbox_37" > 9047 9048 9049 9050 <div class="block accordion categories grid_4"> 9051 9052 <div class="title "><strong><span> 9053 ÷èìåâ îåöøéí 9054 </span></strong></div> 9055 9056 <div class="content "> 9057 9058 9059 9060 9061 <ul class="menu "> 9062 9063 9064 <li class="parent current first li-0" > 9065 9066 <a class="Catname" href="/items~2.htm" > 9067 9068 <span>÷åøàé ñôøéí àì÷èøåðéí Pocketbook</span></a> 9069 9070 </li> 9071 9072 <li class="parent li-1" > 9073 9074 <a class="Catname" href="/items~11.htm" > 9075 9076 <span>÷åøàé ñôøéí àì÷èøåðé Kobo</span></a> 9077 9078 </li> 9079 9080 <li class="parent li-2" > 9081 9082 <a class="Catname" href="/items~6.htm" > 9083 9084 <span>÷åøàé ñôøéí àì÷èøåðéí MeeBook</span></a> 9085 9086 </li> 9087 9088 <li class="parent li-3" > 9089 9090 <a class="Catname" href="/items~9.htm" > 9091
9092 <span>÷åøàé ñôøéí àì÷èøåðéí Amazon Kindle</span></a> 9093 9094 </li> 9095 9096 <li class="parent li-4" > 9097 9098 <a class="Catname" href="/items~8.htm" > 9099 9100 <span>àáéæøéí</span></a> 9101 9102 </li> 9103 9104 <li class="parent li-5" > 9105 9106 <a class="Catname" href="/items~3.htm" > 9107 9108 <span>ðøúé÷éí ì÷åøàé ñôøéí àì÷èøåðéí</span></a> 9109 <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> 9110 </li> 9111 9112 <li class="parent li-6" > 9113 9114 <a class="Catname" href="/items~10.htm" > 9115 9116 <span>÷åøàé ñôøéí àì÷èøåðéí Onyx Boox</span></a> 9117 9118 </li> 9119 9120 <li class="parent li-7" > 9121 9122 <a class="Catname" href="/items~12.htm" > 9123 9124 <span>÷åøàé ñôøéí àì÷èøåðéí (Likebook (Boyue</span></a> 9125 9126 </li> 9127 </ul> 9128 9129 </div> 9130 </div> 9131 9132</div><!--[ end_categories_37 ]--><!--[ start_spacielitems_10 ]--> 9133 <div class=" designbox sidebar_spacielitems" id="designbox_10" > 9134 9135 9136 9137 <div class="block spacial-items grid_4" tabindex="0"> 9138 9139 9140 9141 <div class="title"><strong><span>îáöòéí îéåçãéí</span></strong> 9142 </div> 9143 9144 9145 9146 9147 9148 <div class="content jcroller"> 9149 <div class="spaciels-wrap"> 9150 9151 9152 9153 <div class="special-box" id="spaciel-items-v1-0" > 9154 9155 9156 9157 9158 <div class="item-name"><a href="https://www.medicon.co.il/pl_product~270~2~0.htm">÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </a></div> 9159 9160 <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> 9161 9162 </div> 9163 9164 <strike class="reg-price">
9165 <span class="name">øâéì:</span> 9166 <span><em>¤</em>930.00</span> 9167 9168 </strike> 9169 9170 <div class="sale-price"> 9171 <span class="name">îáöò:</span> 9172 <span><em>¤</em><span class="priceholder" id="spacial_total270" price="859.00">859.00</span></span> 9173 9174 </div> 9175 9176 <div class="buttons-box"> 9177 <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~270~2~0.htm" ><span>ìîéãò ðåñó</span></a> 9178 9179 <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> 9180 9181 9182 </div> 9183 9184 </div> 9185 9186 <div class="special-box" id="spaciel-items-v1-1" > 9187 9188 9189 9190 9191 <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> 9192 9193 <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> 9194 9195 </div> 9196 9197 <strike class="reg-price"> 9198 <span class="name">øâéì:</span> 9199 <span><em>¤</em>890.00</span> 9200 9201 </strike> 9202 9203 <div class="sale-price"> 9204 <span class="name">îáöò:</span> 9205 <span><em>¤</em><span class="priceholder" id="spacial_total324" price="779.00">779.00</span></span> 9206 9207 </div> 9208 9209 <div class="buttons-box"> 9210 <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~324~2~0.htm" ><span>ìîéãò ðåñó</span></a> 9211 9212 <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> 9213 9214 9215 </div> 9216 9217 </div> 9218 9219 <div class="special-box" id="spaciel-items-v1-2" > 9220 9221 9222 9223 9224 <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> 9225 9226 <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> 9227 9228 </div> 9229 9230 <div class="no-price">ìøëéùú îåöø æä äú÷ùøå ì÷áìú ôøèéí</div> 9231 9232 <div class="buttons-box"> 9233 <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~238~10~0.htm" ><span>ìîéãò ðåñó</span></a> 9234 9235 9236 </div> 9237 9238 </div> 9239 9240 </div> 9241 </div> 9242 </div> 9243 9244 </div><!--[ end_spacielitems_10 ]--><!--[ start_sidebar_banner_general_17 ]--> 9245 <div class=" designbox sidebar_sidebar_banner_general" id="designbox_17" > 9246 9247 9248 <div class="sidebar_banner_general banner-div grid_4" ></div> 9249 </div><!--[ end_sidebar_banner_general_17 ]--><!--[ start_sidebar_banner_categories_16 ]--> 9250 <div class=" designbox sidebar_sidebar_banner_categories" id="designbox_16" > 9251 9252 </div><!--[ end_sidebar_banner_categories_16 ]--><!--[ start_sidebar_banner_product_18 ]--> 9253 <div class=" designbox sidebar_sidebar_banner_product" id="designbox_18" > 9254 9255 9256 <div class="sidebar_banner_product banner-div grid_4" ></div> 9257 </div><!--[ end_sidebar_banner_product_18 ]--><!--[ start_sidebar_banner_homepage_19 ]--> 9258 <div class=" designbox sidebar_sidebar_banner_homepage" id="designbox_19" > 9259 9260 </div><!--[ end_sidebar_banner_homepage_19 ]--><!--[ start_newsletter_8 ]--> 9261 <div class=" designbox sidebar_newsletter" id="designbox_8" > 9262 9263 9264 <div class="block newsletter grid_4" > 9265 9266 <div class="title"> 9267 <strong>
9268 <span> 9269 øùéîú úôåöä 9270 </span> 9271 </strong> 9272 </div> 9273 9274 <div class="content"> 9275 <form action="https://www.medicon.co.il/club.asp?IsNewsleter=1" method="post" name="NewsLatterFrm" class="NewsLatterFrm" id="NewsLatterFrm" > 9276 <input type="hidden" name="IsPostback" value="true"/> 9277 9278 <h3 class="subtitle">äåñéôå àåúé ìøùéîú úôåöä</h3> 9279 9280 9281 <div class="status"></div> 9282 9283 <fieldset > 9284 9285 <p class='email_p'> 9286 9287 <label for="email" >äëðñ ëúåáú àé îééì:</label> 9288 9289 <input type="text" name="Email" class="text" id="email" maxlength="45" dir="ltr" value="" aria-label="email" /> 9290 9291 </p> 9292 9293 9294 9295 <input type="hidden" name="AuthCode" value="1" /> 9296 <input type="hidden" name="CapachaAnswer" value="1" /> 9297 <button class='checkNewsEmail btn-primary button' title="äøùí" type="submit"><span><span>äøùí</span></span></button> 9298 <div class='privacy_p custom-control custom-checkbox mt-1 mr-sm-3 '> 9299 <input type="checkbox" class="custom-control-input" name="privacy" id='privacy_8' > 9300 9301 <label class="custom-control-label " for='privacy_8' style="font-size:14px">àðé îñëéí/ä ìúðàéí, ääâáìåú, ì-îãéðéåú ôøèéåú åîàùø/ú éöéøú ÷ùø îàúø medicon.co.il.</label> 9302 9303 9304 </div> 9305 9306 9307 </fieldset> 9308 </form> 9309 </div> 9310 </div> 9311 9312 </div><!--[ end_newsletter_8 ]--><!--[ start_populartags_9 ]--> 9313 <div class=" designbox sidebar_populartags" id="designbox_9" > 9314 9315 </div><!--[ end_populartags_9 ]--><!--[ start_contactform_11 ]--> 9316 <div class=" designbox sidebar_contactform" id="designbox_11" > 9317 9318 9319 <div class="block contactform grid_4" > 9320 9321 9322 <div class="title"><strong><span>èåôñ öåø ÷ùø</span></strong> 9323 </div> 9324 9325 9326 <form name="contctfrm" id="contctfrm_11" method="post" action="https://www.medicon.co.il/contact.asp" onsubmit="return checkcontactform();"> 9327 <input type="hidden" name="IsPostback" value="true"/> 9328 <div class="content"> 9329 9330 <input type="hidden" name="formFields" value="ContactPerson,Subject,Phone,content,email" /> 9331 9332 9333 <p id="cf_fullname"> 9334 9335 <label for="ContactPerson"><em>*</em>ùí:</label> 9336 9337 <input type="text" class="text" aria-label="ùí" dir="rtl" name="ContactPerson" id="ContactPerson" value="" /> 9338 </p> 9339 9340 9341 <p id="cf_phone"> 9342 9343 <label for="cf_text_Phone"><em>*</em>èìôåï:</label> 9344 9345 <input type="text" class="text" aria-label="èìôåï" name="Phone" id="cf_text_Phone" value="" /> 9346 </p> 9347 9348 9349 <p id="cf_email"> 9350 9351 <label for="cf_text_email"><em>*</em>ãåàø àì÷èøåðé:</label> 9352 9353 <input type="text" class="text" aria-label="ãåàø àì÷èøåðé" name="email" id="cf_text_email" value="" /> 9354 </p> 9355 9356 9357 <p id="cf_subject"> 9358 9359 <label for="Subject"><em>*</em>ðåùà:</label> 9360 9361 <text type="text" class="text" aria-label="ðåùà" name="Subject" id="Subject" value="" /> 9362 </p> 9363 9364 9365 <p id="cf_content"> 9366 9367 <label for="content">úåëï:</label> 9368 9369 <textarea name="content" aria-label="úåëï" id="content"
9369cols="" rows="" ></textarea> 9370 </p> 9371 9372 9373 <p id="cf_CodeAuth"> 9374 9375 <label for="AuthCode"> 9376 ? 8 + 4 ëîä æä<em>*</em> 9377 9378 </label> 9379 9380 <input type="text" class="text" id="AuthCode" aria-label="? 8 + 4 ëîä æä" name="AuthCode" size="15" maxlength="3" dir="rtl" value="" > 9381 </p> 9382 9383 9384 <!--<p id="cf_newsletter">--> 9385 9386 9387 <p id="cf_newsletter"> 9388 <input id="checkoutNewsletter" type="checkbox" name="club" aria-label="áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø" value="1" checked /> áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø 9389 </p> 9390 9391 <input type='hidden' name='ContactPerson_HE' value='ùí îìà'> 9392 <input type='hidden' name='Phone_HE' value='èìôåï' > 9393 <input type='hidden' name='email_HE' value='ãåàø àì÷èøåðé' > 9394 <input type='hidden' name='Subject_HE' value='ðåùà' > 9395 <input type='hidden' name='content_HE' value='úåëï' > 9396 9397 9398 <button class="button btn-primary btn" aria-label="ùìç" title="ùìç" type="submit"><span><span>ùìç</span></span></button> 9399 9400 </div> 9401 </form> 9402 9403 </div> 9404 9405
9405<script type="text/javascript"> 9406 9407 9408 function ContactCheckEmail(CurMail) 9409 { 9410 if (CurMail.length != 0) 9411 { 9412 var i=CurMail.indexOf("@") 9413 var i2=CurMail.indexOf("@",i+1) 9414 var j=CurMail.indexOf(".",i) 9415 var k=CurMail.indexOf(",") 9416 var kk=CurMail.indexOf(" ") 9417 var jj=CurMail.lastIndexOf(".") + 1 9418 var leng = CurMail.length 9419 9420 if ((i>0)&&(j>(i+1))&&(k==-1)&&(kk==-1)&&(leng-jj >= 2)&&(leng-jj <= 3)&&(i2==-1)) 9421 { 9422 return true; 9423 } 9424 else 9425 { 9426 return false; 9427 } 9428 } 9429 else{ 9430 return false; 9431 } 9432 } 9433 9434 function checkcontactform() 9435 { 9436 9437 if (document.contctfrm.ContactPerson.value == "") 9438 { 9439 alert("äëðñ ùí îìà"); 9440 document.contctfrm.ContactPerson.focus(); 9441 return false; 9442 } 9443 9444 9445 if (document.contctfrm.Phone.value == "") 9446 { 9447 alert("ìà äåæï èìôåï"); 9448 document.contctfrm.Phone.focus(); 9449 return false; 9450 } 9451 if (document.contctfrm.email.value == "") 9452 { 9453 alert("ëúåáú äîééì ùâåéä"); 9454 document.contctfrm.email.focus(); 9455 return false; 9456 } 9457 9458 if( !ContactCheckEmail(document.contctfrm.email.value) ) 9459 { 9460 alert("ëúåáú äîééì ùâåéä"); 9461 document.contctfrm.email.focus(); 9462 return false; 9463 } 9464 9465 9466 if (document.contctfrm.AuthCode.value == "") 9467 { 9468 alert("ôúåø ðëåï àú äúøâéì"); 9469 document.contctfrm.AuthCode.focus(); 9470 return false; 9471 } 9472 9473 9474 9475 9476 9477 if (document.contctfrm.Subject.value == "") 9478 { 9479 alert("àðà îìà ðåùà"); 9480 document.contctfrm.Subject.focus(); 9481 return false; 9482 } 9483 9484 9485 9486 9487 return true; 9488 } 9489 </script>
9489 9490</div><!--[ end_contactform_11 ]--> 9491 </div> 9492 </div> 9493 <!--[ SideBar end ]--> 9494 9495</tr> 9496</table> 9497 </td> 9498</tr> 9499</table> 9500 9501 9502<!-- Cookie Consent Check - Add this to every page --> 9503
9504<script> 9505// Check if cookie consent exists on page load 9506(function() { 9507 function getCookie(name) { 9508 var nameEQ = name + "="; 9509 var ca = document.cookie.split(';'); 9510 for(var i = 0; i < ca.length; i++) { 9511 var c = ca[i]; 9512 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 9513 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); 9514 } 9515 return null; 9516 } 9517 9518 // Check if consent cookie exists 9519 9520 if (!getCookie('cookieconsentapproved')) { 9521 9522 // Show popup if no consent 9523 window.addEventListener('load', function() { 9524 var popup = document.getElementById('cookie-consent-popup'); 9525 if (popup) { 9526 popup.style.display = 'block'; 9527 // Add animation class after a small delay 9528 setTimeout(function() { 9529 popup.classList.add('show'); 9530 }, 100); 9531 } 9532 }); 9533 } 9534 9535 // Pages restored from the back/forward cache (mostly mobile) keep the DOM 9536 // snapshot with the popup still visible even after consent was given on 9537 // another page - scripts do not re-run on restore, so re-check the cookie 9538 // and hide the stale popup on pageshow / tab return 9539 function syncCookieConsentPopup() { 9540 if (getCookie('cookieconsentapproved')) { 9541 var popup = document.getElementById('cookie-consent-popup'); 9542 if (popup) { 9543 popup.classList.remove('show'); 9544 popup.style.display = 'none'; 9545 } 9546 } 9547 } 9548 window.addEventListener('pageshow', syncCookieConsentPopup); 9549 document.addEventListener('visibilitychange', function() { 9550 if (!document.hidden) syncCookieConsentPopup(); 9551 }); 9552})(); 9553</script>
9553 9554 9555 </td> 9556 </tr> 9557 </table> 9558 9559 9560 </div> 9561 </div> 9562 9563 </div> 9564</div> 9565 9566 9567 9568 <!--[ content end ]--> 9569 9570 9571 <!--[ footer start ]--> 9572 9573 <div id="footer"> 9574 9575 <div class="footer_wrap"> 9576 <div class="container_16 " > 9577 9578 <!--[Dynamic Footer Modules]--> 9579 <!--[ start_manufactoreslogos_1 ]--> 9580 <div class=" designbox footer_manufactoreslogos" id="designbox_1" > 9581 9582 9583 <div class="manufactores_logos block manufactores logos width-920 jcarousel " > 9584 <div class="sr-only"><span>éöøðéí</span></div> 9585 9586 <div class="content"> 9587 9588 <ul class=""> 9589 9590 <li class=""> 9591 9592 9593 9594 <a class="image" href="/items.asp?qsearch=&qmanufact=27"><span></span> 9595 9596 9597 9598 9599 </a> 9600 <span class="name">Anker</span> 9601 9602 9603 9604 </li> 9605 9606 <li class=""> 9607 9608 9609 9610 <a class="image" href="/items.asp?qsearch=&qmanufact=26"><span></span> 9611 9612 9613 9614 9615 </a> 9616 <span class="name">Fintie</span> 9617 9618 9619 9620 </li> 9621 9622 <li class=""> 9623 9624 9625 9626 <a class="image" href="/items.asp?qsearch=&qmanufact=25"><span></span> 9627 9628 9629 9630 9631 </a> 9632 <span class="name">ShenZhen Boyue Technology</span> 9633 9634 9635 9636 </li> 9637 9638 <li class=""> 9639 9640 9641 9642 <a class="image" href="/items.asp?qsearch=&qmanufact=18"><span></span> 9643 9644 9645 <img alt='Amazon' src='/images/itempics/manufact_18.jpg?20170312111616' > 9646 9647 </a> 9648 <span class="name">Amazon</span> 9649 9650 9651 9652 </li> 9653 9654 <li class=""> 9655 9656 9657 9658 <a class="image" href="/items.asp?qsearch=&qmanufact=8"><span></span> 9659 9660 9661 <img alt='Pocketbook' src='/images/itempics/manufact_8.jpg?20170312111616' > 9662 9663 </a>
9664 <span class="name">Pocketbook</span> 9665 9666 9667 9668 </li> 9669 9670 <li class=""> 9671 9672 9673 9674 <a class="image" href="/items.asp?qsearch=&qmanufact=14"><span></span> 9675 9676 9677 <img alt='Onyx international Inc.' src='/images/itempics/manufact_14.jpg?20170312111616' > 9678 9679 </a> 9680 <span class="name">Onyx international Inc.</span> 9681 9682 9683 9684 </li> 9685 9686 <li class=""> 9687 9688 9689 9690 <a class="image" href="/items.asp?qsearch=&qmanufact=9"><span></span> 9691 9692 9693 <img alt='Barnes&Noble' src='/images/itempics/manufact_9.jpg?20170312111616' > 9694 9695 </a> 9696 <span class="name">Barnes&Noble</span> 9697 9698 9699 9700 </li> 9701 9702 <li class=""> 9703 9704 9705 9706 <a class="image" href="/items.asp?qsearch=&qmanufact=17"><span></span> 9707 9708 9709 9710 9711 </a> 9712 <span class="name">Cine</span> 9713 9714 9715 9716 </li> 9717 9718 <li class=""> 9719 9720 9721 9722 <a class="image" href="/items.asp?qsearch=&qmanufact=23"><span></span> 9723 9724 9725 9726 9727 </a> 9728 <span class="name">GP</span> 9729 9730 9731 9732 </li> 9733 9734 <li class=""> 9735 9736 9737 9738 <a class="image" href="/items.asp?qsearch=&qmanufact=24"><span></span> 9739 9740 9741 9742 9743 </a>
9744 <span class="name">Kobo</span> 9745 9746 9747 9748 </li> 9749 9750 </ul> 9751 9752 </div> 9753 </div> 9754 </div><!--[ end_manufactoreslogos_1 ]--><!--[ start_footer_banner1_69 ]--> 9755 <div class=" designbox footer_footer_banner1" id="designbox_69" > 9756 9757 9758 <div class="footer_banner1 banner-div"></div> 9759 </div><!--[ end_footer_banner1_69 ]--><!--[ start_footer_banner2_70 ]--> 9760 <div class=" designbox footer_footer_banner2" id="designbox_70" > 9761 9762 9763 <div class="footer_banner2 banner-div"></div> 9764 </div><!--[ end_footer_banner2_70 ]--><!--[ start_footer_banner3_71 ]--> 9765 <div class=" designbox footer_footer_banner3" id="designbox_71" > 9766 9767 9768 <div class="footer_banner3 banner-div"></div> 9769 </div><!--[ end_footer_banner3_71 ]--><!--[ start_footer_banner4_72 ]--> 9770 <div class=" designbox footer_footer_banner4" id="designbox_72" > 9771 9772 9773 <div class="footer_banner4 banner-div"></div> 9774 </div><!--[ end_footer_banner4_72 ]--> 9775 </div> 9776 </div> 9777 9778 </div> 9779 9780 <!--[ footer end ]--> 9781 9782 9783 <form name="s_addme" method="post" action="/CartLogic.asp"> 9784 <input type="hidden" name="pid"/> 9785 <input type="hidden" name="pip_str"/> 9786 <input type="hidden" name="pip_prices"/> 9787 <input type="hidden" name="pip_ids"/> 9788 <input type="hidden" name="quan"/> 9789 <input type="hidden" name="M" value=""/> 9790 <input type="hidden" name="RequestGiftInfo" /> 9791 </form> 9792 9793 9794<div> 9795 <div> 9796 9797<div id="eshop-footer" class=""> 9798<div id="eshop-footer-wrap"> 9799<div id="eshop-footer-pages"><table></table></div> 9800 9801 9802 9803<div id="eshop-footer-credit"> 9804 9805 <span class="powered-by-holder"><a class="powered-by-link" href="https://www.e-shop.co.il" rel="nofollow" target="_blank"> 9806 9807 <img src="https://www.medicon.co.il/images/e-shop-powerd-by-black.png" height="33" width="201" alt="àéùåô çðåú åéøèåàìéú" /> 9808 9809 </a></span> 9810 </div> 9811 <div id="eshop-footer-text"></div> 9812</div> 9813</div> 9814 9815 9816<form name="quicksearch" action="https://www.medicon.co.il/search.asp" method="get"> 9817 <input type='hidden' name='IsPostback' value='true'/> 9818 <input type="hidden" name="qsearch"/> 9819 <input type="hidden" name="qmanufact"/> 9820</form> 9821
9822<script type="text/javascript"> 9823<!-- 9824self.name = 'hps'; 9825 9826try 9827{ 9828if (ie||document.getElementById||document.layers) 9829 { 9830 9831 } 9832 9833} 9834catch(err){} 9835 9836 9837 9838 9839//form tags to omit in NS6+: 9840var omitformtags=["input", "textarea", "select"] 9841 9842omitformtags=omitformtags.join("|") 9843 9844function disableselect(e){ 9845if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) 9846return false 9847} 9848 9849function reEnable(){ 9850return true 9851} 9852 9853if (typeof document.onselectstart!="undefined") 9854document.onselectstart=new Function ("return false") 9855else{ 9856document.onmousedown=disableselect 9857document.onmouseup=reEnable 9858} 9859 9860//Disable right click script III- By Renigade ([email protected]) 9861//For full source code, visit http://www.dynamicdrive.com 9862 9863var message=""; 9864/////////////////////////////////// 9865function clickIE() {if (document.all) {(message);return false;}} 9866function clickNS(e) {if 9867(document.layers||(document.getElementById&&!document.all)) { 9868if (e.which==2||e.which==3) {(message);return false;}}} 9869if (document.layers) 9870{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 9871else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 9872 9873document.oncontextmenu=new Function("return false") 9874 9875// --> 9876</script>
9876 9877 9878 </div></div> 9879 9880 9881 9882 9883</div> 9884</div> 9885 9886 9887 9888<div id="userkey" userkey="key114491778612135"></div> 9889 9890 9891
9891<script> 9892 function fireAnalyticsEvents() { 9893 9894 9895 } 9896 9897 $(window).on("load" , function () 9898 { 9899 if (cookieconsent == true) { 9900 fireAnalyticsEvents(); 9901 } 9902 }); 9903 </script>
9903 9904 9905 9906 9907 9908
9908<script> 9909 $("#mobile_footer_newsletter button").detach().appendTo("#mobile_footer_newsletter .email_p"); 9910 </script>
9910 9911 9912
9912<script type="text/javascript" defer="defer"> 9913 (function() { 9914 var scr = document.createElement('script'); 9915 if ('https:' == document.location.protocol) { 9916 scr.src = '/ajaxUtil/logstat.asp?c1=&c2=&pid=270&aid=0&gsid=0&sct=/product.asp&aff='; 9917 } else { 9918 scr.src = '/ajaxUtil/logstat.asp?c1=&c2=&pid=270&aid=0&gsid=0&sct=/product.asp&aff='; 9919 } 9920 scr.type = 'text/javascript'; 9921 //scr.type = 'text/html'; 9922 scr.async = true; 9923 scr.setAttribute('defer', 'defer'); 9924 document.getElementsByTagName('head')[0].appendChild(scr); 9925 } ()); 9926 </script>
9926 9927 9928
9928<script type="text/javascript" defer="defer"> 9929 9930 (function() { 9931 var scr = document.createElement('script'); 9932 if ('https:' == document.location.protocol) { 9933 scr.src = '/statsjs.asp?v=4.7.13'; 9934 } else { 9935 scr.src = '/statsjs.asp?v=4.7.13'; 9936 } 9937 scr.type = 'text/javascript'; 9938 //scr.type = 'text/html'; 9939 9940 scr.async = true; 9941 scr.setAttribute('defer', 'defer'); 9942 document.getElementsByTagName('head')[0].appendChild(scr); 9943 } ()); 9944 9945 </script>
9945 9946 9947 9948
9948<script type="text/javascript"> 9949 $.get( "/siteservices.asp?service=get_popup&Cat2Cat1ID=2&Cat2ID=0&SV_SCRIPT_NAME=/product.asp&itemid=270&pageid=", function( data ) { 9950 $( "body" ).append( data ); 9951 }); 9952 </script>
9952 9953 9954
9954<script type="text/javascript"> 9955 $.get( "/siteservices.asp?service=get_campaigns&Cat2Cat1ID=2&Cat2ID=0&SV_SCRIPT_NAME=/product.asp&itemident=270&pageid=", function( data ) { 9956 $( "body" ).append( data ); 9957 }); 9958 </script>
9958 9959
9960<script type="text/javascript"> 9961 $(document).ready(function () { 9962 ShowAllCarts(); 9963 }); 9964 9965 9966 window.onpageshow = function(event) { 9967 if (event.persisted) { 9968 //back event 9969 ShowAllCarts(); 9970 9971 } 9972 9973}; 9974 9975</script>
9975 9976 9977 9978 9979 9980 9981</body> 9982</html> 9983 9984 9985 9986<!--============= add gtin to product page=================-->
9987<script> 9988 9989 var google_gtin = "" ; 9990if (google_gtin != "") 9991{ 9992 9993 google_gtin = "" ; 9994 9995} 9996</script>
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.