Vai al contenuto

Carrello

Il tuo carrello è vuoto

var countryprimeb = 'primebadgecountry'; var primebexistingScript = document.getElementById('primebPopper'); var countryprimeb = 'primebadgecountry'; if (!primebexistingScript) { var country = 'primebadgecountry'; var primebcountryName = ''; // const scriptpopperb = document.createElement('script'); // scriptpopperb.src = 'https://unpkg.com/popper.js@1'; // scriptpopperb.id = 'primebPopper'; // document.body.appendChild(scriptpopperb); setTimeout(function(){ checkprimebjquery(); }, 1000); } function getCountryCode() { console.log("4"); if(thaliacustomercountry == ''){ thaliaCustomerCookie(); thaliacustomercountry = thaliaGetCookie("thaliacustomercountry"); getCName(thaliacustomercountry); }else{ getCName(thaliacustomercountry); } } function getCName(countryCode) { var country_data = "AF,Afghanistan|AL,Albania|DZ,Algeria|AD,Andorra|AO,Angola|AI,Anguilla|AQ,Antarctica|AG,Antigua and Barbuda|AR,Argentina|AM,Armenia|AW,Aruba|AU,Australia|AT,Austria|AZ,Azerbaijan|BS,Bahamas|BH,Bahrain|BD,Bangladesh|BB,Barbados|BY,Belarus|BE,Belgium|BZ,Belize|BJ,Benin|BM,Bermuda|BT,Bhutan|BO,Bolivia|BQ,Bonaire,Sint Eustatius and Saba|BA,Bosnia and Herzegovina|BW,Botswana|BV,Bouvet Island|BR,Brazil|IO,British Indian Ocean Territory|BN,Brunei Darussalam|BG,Bulgaria|BF,Burkina Faso|BI,Burundi|CV,Cabo Verde|KH,Cambodia|CM,Cameroon|CA,Canada|KY,Cayman Islands|CF,Central African Republic|TD,Chad|CL,Chile|CN,China|CX,Christmas Island|CC,Cocos (Keeling) Islands|CO,Colombia|KM,Comoros|CG,Congo|CD,Congo,Democratic Republic of the|CK,Cook Islands|CR,Costa Rica|CI,Côte d'Ivoire|HR,Croatia|CU,Cuba|CW,Curaçao|CY,Cyprus|CZ,Czech Republic|DK,Denmark|DJ,Djibouti|DM,Dominica|DO,Dominican Republic|EC,Ecuador|EG,Egypt|SV,El Salvador|GQ,Equatorial Guinea|ER,Eritrea|EE,Estonia|SZ,Eswatini|ET,Ethiopia|FK,Falkland Islands (Malvinas)|FO,Faroe Islands|FJ,Fiji|FI,Finland|FR,France|GF,French Guiana|PF,French Polynesia|TF,French Southern Territories|GA,Gabon|GM,Gambia|GE,Georgia|DE,Germany|GH,Ghana|GI,Gibraltar|GR,Greece|GL,Greenland|GD,Grenada|GP,Guadeloupe|GU,Guam|GT,Guatemala|GG,Guernsey|GN,Guinea|GW,Guinea-Bissau|GY,Guyana|HT,Haiti|HM,Heard Island and McDonald Islands|VA,Holy See|HN,Honduras|HK,Hong Kong|HU,Hungary|IS,Iceland|IN,India|ID,Indonesia|IR,Iran|IQ,Iraq|IE,Ireland|IM,Isle of Man|IL,Israel|IT,Italy|JM,Jamaica|JP,Japan|JE,Jersey|JO,Jordan|KZ,Kazakhstan|KE,Kenya|KI,Kiribati|KP,Korea|KR,Korea|KW,Kuwait|KG,Kyrgyzstan|LA,Lao People's Democratic Republic|LV,Latvia|LB,Lebanon|LS,Lesotho|LR,Liberia|LY,Libya|LI,Liechtenstein|LT,Lithuania|LU,Luxembourg|MO,Macao|MG,Madagascar|MW,Malawi|MY,Malaysia|MV,Maldives|ML,Mali|MT,Malta|MH,Marshall Islands|MQ,Martinique|MR,Mauritania|MU,Mauritius|YT,Mayotte|MX,Mexico|FM,Micronesia|MD,Moldova|MC,Monaco|MN,Mongolia|ME,Montenegro|MS,Montserrat|MA,Morocco|MZ,Mozambique|MM,Myanmar|NA,Namibia|NR,Nauru|NP,Nepal|NL,Netherlands|NC,New Caledonia|NZ,New Zealand|NI,Nicaragua|NE,Niger|NG,Nigeria|NU,Niue|NF,Norfolk Island|MK,North Macedonia|MP, Northern Mariana Islands|NO,Norway|OM,Oman|PK,Pakistan|PW,Palau|PS,Palestine|PA,Panama|PG,Papua New Guinea|PY,Paraguay|PE,Peru|PH,Philippines|PN,Pitcairn|PL,Poland|PT,Portugal|PR,Puerto Rico|QA,Qatar|RE,Réunion|RO,Romania|RU,Russian Federation|RW,Rwanda|BL,Saint Barthélemy|SH,Saint Helena|KN,Saint Kitts and Nevis|LC,Saint Lucia|MF,Saint Martin (French part)|PM,Saint Pierre and Miquelon|VC,Saint Vincent and the Grenadines|WS,Samoa|SM,San Marino|ST,Sao Tome and Principe|SA,Saudi Arabia|SN,Senegal|RS,Serbia|SC,Seychelles|SL,Sierra Leone|SG,Singapore|SX,Sint Maarten (Dutch part)|SK,Slovakia|SI,Slovenia|SB,Solomon Islands|SO,Somalia|ZA,South Africa|GS,South Georgia and the South Sandwich Islands|SS,South Sudan|ES,Spain|LK,Sri Lanka|SD,Sudan|SR,Suriname|SJ,Svalbard and Jan Mayen|SE,Sweden|CH,Switzerland|SY,Syrian Arab Republic|TW,Taiwan|TJ,Tajikistan|TZ,Tanzania|TH,Thailand|TL,Timor-Leste|TG,Togo|TK,Tokelau|TO,Tonga|TT,Trinidad and Tobago|TN,Tunisia|TR,Turkey|TM,Turkmenistan|TC,Turks and Caicos Islands|TV,Tuvalu|UG,Uganda|UA,Ukraine|AE,United Arab Emirates|GB,United Kingdom|US,United States|UM,United States Minor Outlying Islands|UY,Uruguay|UZ,Uzbekistan|VU,Vanuatu|VE,Venezuela|VN,Viet Nam|VG,Virgin Islands|VI,Virgin Islands|WF,Wallis and Futuna|EH,Western Sahara|YE,Yemen|ZM,Zambia|ZW,Zimbabwe"; var countries = country_data.split("|"); for (var i = 0; i < countries.length; i++) { var country = countries[i].split(","); var countryCodedata = country[0]; var Visitorcountry = country[1]; if(countryCode== countryCodedata) { var VisitorCountryName=Visitorcountry; } } var visitorclass = document.getElementsByClassName('primebVisitorCountry'); for (var i = 0; i < visitorclass.length; i++) { var issetvisitorcountryrule = visitorclass[i].getAttribute('visitorcountryrule'); var secondChild = visitorclass[i].querySelector('div:nth-child(1)'); var thirdChild = secondChild.querySelector('div:nth-child(1)'); if( issetvisitorcountryrule == '1'){ var elements = document.querySelectorAll('.primebVisitorCountryName'); elements.forEach(function(element) { element.textContent = VisitorCountryName; }); } } } function checkprimebjquery() { console.log("1"); if (window.jQuery) { //checkVariantInventory("NEUTRO / S","first"); if(userid==9711) { var productTitle = "NEUTRO / S"; var decodedTitle = productTitle.replace(/"/g, '"'); checkVariantInventory(decodedTitle,"first"); } else { checkVariantInventory("NEUTRO / S","first"); } $(document).on("click", ".variants-ui__option-value-name", function() { var optionMap = []; if(optionMap.length == 0){ setTimeout(function(){ optionMap = $('.variants-ui__option-values').attr("data-variant-option-chosen-value"); checkVariantInventory(optionMap,"first"); }, 100); } }); $(document).on("click", ".t4s-swatch__list", function () { var optionMap = []; if (optionMap.length === 0) { $(".t4s-dropdown__content").each(function (key) { const selectedElement = $(this).find(".t4s-swatch__item.is--selected"); if (selectedElement.length > 0) { optionMap.push(selectedElement.data("value")); } else { console.log(`No selected item found in dropdown ${key}`); } }); checkVariantInventory(optionMap); } }); $(document).on("change", ".select2-hidden-accessible", function() { var optionMap = []; if(optionMap.length == 0){ $(".select2-hidden-accessible").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $('select[name="option1"]').on('change', function(){ var optionMap = []; optionMap[0] = $(this).val(); checkVariantInventory(optionMap); }); $(document).on("click", ".bls__color-dropdown", function() { var optionMap = []; if(optionMap.length == 0){ $("span.bls__color-dropdown-value").each(function(key) { optionMap[key] = $(this).text(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".single-option-selector", function() { var optionMap = []; if(optionMap.length == 0){ $(".single-option-selector").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".ProductForm__Option select", function() { var optionMap = []; if(optionMap.length == 0){ $(".ProductForm__Option select").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".tt-options-swatch li", function() { var optionMap = []; if(optionMap.length == 0){ $(".tt-options-swatch li").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".swatch-element", function() { var optionMap = []; if(optionMap.length == 0){ $(".swatch-element").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".form__input--select", function() { var optionMap = []; if(optionMap.length == 0){ $(".form__input--select").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".product-form__input select", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-form__input select").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".vario-variant", function() { var dataArray = new Array(); $('.vario-variants .sv_active').each(function(){ var dataValue = $(this).data('value'); dataArray.push(dataValue); }); setTimeout(function() { checkVariantInventory(dataArray); }, 2000); }); $(document).on("change", ".sgl-opt-selector-product-template", function() { var optionMap = []; if(optionMap.length == 0){ $(".sgl-opt-selector-product-template").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".tt-options-swatch li", function() { var optionMap = []; if(optionMap.length == 0){ $(".tt-options-swatch li").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".product-option-value-item", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-option-value-item").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".clickyboxes a", function() { var optionMap = []; if(optionMap.length == 0){ $(".clickyboxes a").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", "[data-product-options-container] .form-field-input", function() { var optionMap = []; if(optionMap.length == 0){ $("[data-product-options-container] .form-field-input").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", "#data-product-option-0", function() { var optionMap = []; if(optionMap.length == 0){ $("#data-product-option-0").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".product-options__section .active", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-options__section .active").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".product-options__value", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-options__value").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".variant-input", function() { var optionMap = []; if(optionMap.length == 0){ $(".variant-input").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); if(userid == 2662) { $(document).on("click", ".block-swatch input", function() { var optionMap = []; if(optionMap.length == 0){ $(".block-swatch input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); }else{ $(document).on("click", ".product-form__single-selector", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-form__single-selector input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); } $(document).on("change", ".product-form__single-selector", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-form__single-selector").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".gt_swatches--select.gf_active", function() { var optionMap = []; if(optionMap.length == 0){ $(".gt_swatches--select.gf_active").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".nt-swatch", function() { var optionMap = []; if(optionMap.length == 0){ $(".nt-swatch").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".disclosure--input", function() { var optionMap = []; if(optionMap.length == 0){ $(".disclosure--input").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".options-selection__option-value", function() { var optionMap = []; if(optionMap.length == 0){ $(".options-selection__option-value input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".form-field-select-wrapper select", function() { var optionMap = []; if(optionMap.length == 0){ $(".form-field-select-wrapper select").each(function(key) { optionMap[key] = $(this).find("option:selected").val(); }); $(".option-swatch-value").each(function() { var swatchValue = $(this).text(); optionMap.push(swatchValue); optionMap = optionMap.filter(function(value) { return value !== '1'; }); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".option-value-input", function() { var optionMap = []; if(optionMap.length == 0){ $(".option-value-input input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".variant-input-wrap", function() { var optionMap = []; if(optionMap.length == 0){ setTimeout(function() { $(".variant-input-wrap input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }, 600); }); setTimeout(function() { checkVariantInventory(optionMap); }, 600); } }); $(document).on("click", ".option-selector__btns input", function() { var optionMap = []; if(optionMap.length == 0){ $(".option-selector__btns input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); if(userid == 9630) { $('.product-form__input input').on('click', function(){ var optionMap = []; optionMap[0] = $(this).val(); checkVariantInventory(optionMap); }); } else { $(document).on("click", ".product-form__input input", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-form__input input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); } $(document).on("click", ".options-selection__input-select-wrapper select", function() { var optionMap = []; if(optionMap.length == 0){ $(".options-selection__input-select-wrapper select").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".swatch-container input", function() { var optionMap = []; if(optionMap.length == 0){ $(".swatch-container input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); }else{ setTimeout(function() { checkprimebjquery() }, 2000); } } // document.addEventListener('DOMContentLoaded', (event) => { // primebCountdownTimer(); // resizeFunction(); // document.getElementById("prime-modal-close").onclick = function() {mymodalprimeb()}; // window.onclick = function(event) { // if (event.target.classList[1] == 'prime-modal-open') { // mymodalprimeb(); // } // } // }); window.addEventListener('load', (event) => { primebCountdownTimer(); //getCountryCode(); setTimeout(function(){ getCountryCode(); },1000); document.getElementById("prime-modal-close").onclick = function() {mymodalprimeb()}; window.onclick = function(event) { if (event.target.classList[1] == 'prime-modal-open') { mymodalprimeb(); } } }); // Function to be invoked when the element becomes visible function handleVisibleElement(entries, observer) { entries.forEach((entry) => { if (entry.isIntersecting) { // Element is visible, perform desired actions here // Call your function here primebCountdownTimer(); //getCountryCode(); setTimeout(function(){ getCountryCode(); },1000); // Stop observing the target element observer.unobserve(entry.target); } }); } // Target element with the class 'product-recommendations' const targetElement = document.querySelector('.product-recommendations'); if(targetElement) { // Create a new Intersection Observer instance const observer = new IntersectionObserver( (entries) => { // Use a debounce function to limit the number of function invocations debounce(handleVisibleElement, 100)(entries, observer); }, { root: null, // Viewport threshold: 0.5, // 50% of the element must be visible to trigger the callback } ); observer.observe(targetElement); } // Debounce function to limit the rate of function invocations function debounce(func, delay) { let timeoutId; return function (...args) { clearTimeout(timeoutId); timeoutId = setTimeout(() => { func.apply(this, args); }, delay); }; } function expdeliverydate(value,count) { var weekdays = '6,0'; var dateformatselected = 'dddd, MMMM D'; var datelang = 'en'; var primebTextdate = document.getElementsByClassName('primebText'); var realvalue = value; var pos = realvalue.indexOf("[[today"); var pos2 = realvalue.indexOf("]]"); var startres = realvalue.slice(pos+8, pos2); realvalue = realvalue.replace("[[today,", "" ); realvalue = realvalue.replace("]]", "" ); var pos3 = realvalue.indexOf("[[today"); var pos4 = realvalue.indexOf("]]"); var endres = realvalue.slice(pos3+8, pos4); realvalue = realvalue.replace("[[today,", "" ); realvalue = realvalue.replace("]]", "" ); var getlang = startres.split(","); var wrongdays = weekdays.split(","); // var days = {sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}; var startDate = new Date(new Date().getTime()+(parseInt(startres)*24*60*60*1000)); var today = new Date(new Date().getTime()); var firstinc=0; while (today <= startDate) { var getday = String(today.getDay()); if(wrongdays.indexOf(getday) != -1){ startDate.setDate(startDate.getDate() + 1); firstinc++; } today.setDate(today.getDate() + 1); } var setlang = 'en'; if(getlang.length > 1){ setlang = getlang[1]; } moment.locale(setlang); value = value.replace("[[today,"+startres+"]]", moment(startDate).locale(setlang).format(dateformatselected)); // value = value.replace("[[today,"+startres+"]]", moment(startDate).format(dateformatselected)); var extradays = firstinc+parseInt(endres); var endDate = new Date(new Date().getTime()+(extradays*24*60*60*1000)); var todayend = startDate; var secinc=0; while (todayend <= endDate) { var getday = String(todayend.getDay()); if(wrongdays.indexOf(getday) != -1){ endDate.setDate(endDate.getDate() + 1); secinc++; } todayend.setDate(todayend.getDate() + 1); } value = value.replace("[[today,"+endres+"]]", moment(endDate).locale(setlang).format(dateformatselected)); // value = value.replace("[[today,"+endres+"]]", moment(endDate).format(dateformatselected)); primebTextdate[count].innerHTML = value; var getchild = primebTextdate[count].getElementsByClassName('prime-counter'); if(getchild[0]){ getchild[0].classList.remove("prime-counter"); } } function checkVariantInventory(optionMap,myfirstone='') { resizeFunction(); var productname = 'eco-pelliccia-oversize-2'; var variantproductid = '9168031908168'; var mydomclass = document.getElementsByClassName('primebVariantInventory'); if(mydomclass.length > 0){ if(optionMap.length > 0){ var realval = ''; if(myfirstone == "first"){ realval = optionMap; }else{ for(var i = 0; i < optionMap.length; i++){ var spaces = ' / '; if(i == 0){ spaces = ''; } realval += spaces+optionMap[i]; } } var primeBadgesAll = document.getElementsByClassName('primeBadges'); for (var i = 0; i < primeBadgesAll.length; i++) { var primebOuterClass = primeBadgesAll[i].getAttribute('data-primebOuterClass'); var primebOuterStyle = primeBadgesAll[i].getAttribute('data-primebOuterStyle'); var primebInnerClass = primeBadgesAll[i].getAttribute('data-primebInnerClass'); var primebInnerStyle = primeBadgesAll[i].getAttribute('data-primebInnerStyle'); var primebGroup = primeBadgesAll[i].getAttribute('data-primebGroup'); var primebProductId = primeBadgesAll[i].getAttribute('data-primeproductsid'); var primebMaxDisplayBadge=parseInt(primeBadgesAll[i].getAttribute('data-primebMaxDisplayBadge')); if(primebProductId == variantproductid){ hitprimebpage(productname,variantproductid,primebOuterClass,primebOuterStyle,primebInnerClass,primebInnerStyle,primebGroup,primebMaxDisplayBadge,realval) } } } } setTimeout(function(){ getCountryCode(); },1000); } function hitprimebpage(productname,variantproductid,primebOuterClass,primebOuterStyle,primebInnerClass,primebInnerStyle,primebGroup,primebMaxDisplayBadge,realval) { var result = Math.random().toString(36).substring(2,7); if(primebGroup == 1){ var urlhit = productname+'/?view=primebvariant&sort_by='+result+'&outerclass=='+primebOuterClass+'&outerstyle=='+primebOuterStyle+'&innerclass=='+primebInnerClass+'&innerstyle=='+primebInnerStyle+'&group==1&primebMaxDisplayBadge=='+primebMaxDisplayBadge+'&page=='+realval; }else if(primebGroup == 2){ var urlhit = productname+'/?view=primebvarianttwo&sort_by='+result+'&outerclass=='+primebOuterClass+'&outerstyle=='+primebOuterStyle+'&innerclass=='+primebInnerClass+'&innerstyle=='+primebInnerStyle+'&group==2&primebMaxDisplayBadge=='+primebMaxDisplayBadge+'&page=='+realval; }else{ var urlhit = productname+'/?view=primebvariantthree&sort_by='+result+'&outerclass=='+primebOuterClass+'&outerstyle=='+primebOuterStyle+'&innerclass=='+primebInnerClass+'&innerstyle=='+primebInnerStyle+'&group==3&primebMaxDisplayBadge=='+primebMaxDisplayBadge+'&page=='+realval; } var xhr = new XMLHttpRequest(); xhr.open("GET", urlhit, true); xhr.onreadystatechange = function() { if (this.readyState === XMLHttpRequest.DONE) { if (this.status === 200) { if(this.responseText == 0){ $('.outerprimeb'+variantproductid+'-'+primebGroup+' .primebText .primebVariantInventory').html("0"); $('.outerprimeb'+variantproductid+'-'+primebGroup+' .prime-counter').removeClass("prime-counter"); $('.outerprimeb'+variantproductid+'-'+primebGroup+' .hidevariant').remove(); }else{ $('.outerprimeb'+variantproductid+'-'+primebGroup).replaceWith( this.responseText ); $('.outerprimeb'+variantproductid+'-'+primebGroup+' .prime-counter').removeClass("prime-counter"); var countryclassprimeb = document.getElementsByClassName('primebCountry'); for (var i = 0; i < countryclassprimeb.length; i++) { var counrtylist = countryclassprimeb[i].getAttribute('data-countryselected'); var position = counrtylist.search(primebcountryName); if(position < 0){ countryclassprimeb[i].style.cssText = 'display:none !important'; }else{ countryclassprimeb[i].style.display= 'block'; } } // primebcountryName = ''; setTimeout(function(){ primebCountdownTimer(); }, 500); } } else { console.log('failed variant req'); } } }; xhr.send(); } function primebCountdownTimer() { screensizeFunction(); setTimeout(function(){ var primebText = document.getElementsByClassName('primebText'); if(primebText[0]){ for (var i = 0; i < primebText.length; i++) { var value = primebText[i].innerHTML; if( value.indexOf("[[today") != -1 ){ expdeliverydate(value,i); } } } var primebText = document.getElementsByClassName('primebText'); if(primebText[0]){ for (var i = 0; i < primebText.length; i++) { var value = primebText[i].innerHTML; if( value.indexOf("CountdownTimer:") != -1 ){ var metaval= primebText[i].getAttribute('data-timerval'); myTimerprime2(value,i,metaval); } } } var getpage = 'product'; var primebText2 = document.getElementsByClassName('primebText primebVariantInventory'); if(primebText2[0]){ if(getpage == 'collection'){ for (var i = 0; i < primebText2.length; i++) { var oldloop = primebText2[i].parentElement; var newloop = oldloop.parentElement; var newloop2 = newloop.parentElement; newloop2.remove(); } } } }, 1000); if(userid == 8824) { removebadge(); } setTimeout(function(){ var primeinstances2 = tippy('[data-tippy-content]'); var primebsku = ''; var skuclass = document.getElementsByClassName('primebsku'); if(primebsku == 0){ for (var i = 0; i < skuclass.length; i++) { if(skuclass[i].dataset.sku == 0){ var parentsku = skuclass[i].parentElement; var parent2sku = parentsku.parentElement; parent2sku.style.cssText = 'display:none !important'; } } } }, 1000); if(countryprimeb == 'primebadgecountry'){ countryprimeb = 'newprimebadgecountry'; var countrycount = document.getElementsByClassName('primebCountry'); if (thaliacustomercountry == '') { thaliaCustomerCookie(); thaliacustomercountry = thaliaGetCookie("thaliacustomercountry"); var mycountryprimeb = thaliacustomercountry; } else { var mycountryprimeb = thaliacustomercountry; } if (countrycount.length > 0) { var countryclassprimeb = document.getElementsByClassName('primebCountry'); for (var i = 0; i < countryclassprimeb.length; i++) { var primebcounrtylist = countryclassprimeb[i].getAttribute('data-countryselected'); var position = primebcounrtylist.search(mycountryprimeb); primebcountryName = mycountryprimeb; if(position < 0){ countryclassprimeb[i].style.cssText = 'display:none !important'; }else{ countryclassprimeb[i].style.display= 'block'; countryclassprimeb[i].setAttribute('countryrule', '1'); if (countryclassprimeb[i].classList.contains('primebScreenSize')) { var screenlist = countryclassprimeb[i].getAttribute('data-screensizeselected'); var screensizeArray = screenlist.split(","); var smdevice = window.matchMedia( "screen and (max-width: 767.98px)" ); var mddevice = window.matchMedia( "screen and (min-width: 768px) and (max-width: 991.98px)" ); var lgdevice = window.matchMedia( "screen and (min-width: 992px) and (max-width: 1199.98px)" ); var xldevice = window.matchMedia( "(min-width: 1200px)" ); if (smdevice.matches ){ if(screensizeArray[0] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } }else if( mddevice.matches){ if(screensizeArray[1] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } }else if(lgdevice.matches){ if(screensizeArray[2] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } }else{ if(screensizeArray[3] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } } } } } if(userid == 8824) { removebadge(); } } }; var mypage = 'product'; var myproductid = '9168031908168'; for (var i = 0; i < 6; i++) { setTimeout(function(){ primesetlivevisit(mypage,myproductid); }, 500); } } function primesetlivevisit(mypage,myproductid) { setTimeout(function(){ var settimelive = '2'; var setvisitlimit = '2'; var d = new Date(); var time = setcookietimestamp(settimelive); var mytime = ''; if(settimelive < 5){ mytime = (time * 60 ); }else if(settimelive > 4 && settimelive < 8){ mytime =(time * 60 * 60 ); }else if(settimelive > 7){ mytime = (time * 24 * 60 * 60 ); } var primeloop2 = document.getElementsByClassName('primebloop'); for (var i = 0; i < primeloop2.length; i++) { var smallloop2 = primeloop2[i].parentElement; var parentloop2 = smallloop2.getAttribute('data-primeproductid'); var myuser = getCookieprime("primevisits"+parentloop2); if (myuser != "") { myhttpreq(parentloop2,0,mytime,setvisitlimit); } else { myhttpreq(parentloop2,1,mytime,setvisitlimit); setCookieprime("primevisits"+parentloop2, 'setprimevisits', settimelive); } } var primeloop = document.getElementsByClassName('primebloop'); for (var i = 0; i < primeloop.length; i++) { if(mypage == 'product'){ var smallloop = primeloop[i].parentElement; var parentloop = smallloop.getAttribute('data-primeproductid'); if(parentloop == myproductid){ primeloop[i].classList.add("primevisitsb"+parentloop); }else{ var removeloop = primeloop[i].parentElement; var removeloop2 = removeloop.parentElement; var removeloop3 = removeloop2.parentElement; removeloop3.style.visibility = 'hidden'; primeloop[i].classList.remove("primebloop"); } }else{ var oldloop = primeloop[i].parentElement; var newloop = oldloop.parentElement; var newloop2 = newloop.parentElement; newloop2.style.visibility = 'hidden'; primeloop[i].classList.remove("primebloop"); newloop2.remove(); } } }, 1000); } function myhttpreq(lastid,mynew,gettime,setvisitlimit) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var pageliveview = JSON.parse(this.responseText); var primevisits = document.getElementsByClassName("primevisitsb"+lastid); for (var i = 0; i < primevisits.length; i++) { if(setvisitlimit < pageliveview.pageviews){ primevisits[i].innerHTML = pageliveview.pageviews; var removeloop = primevisits[i].parentElement; var removeloop2 = removeloop.parentElement; var removeloop3 = removeloop2.parentElement; removeloop3.style.visibility = 'visible'; }else{ var removeloop = primevisits[i].parentElement; var removeloop2 = removeloop.parentElement; var removeloop3 = removeloop2.parentElement; removeloop3.style.visibility = 'hidden'; primevisits[i].classList.remove("primebloop"); if(userid == 8824) { removebadge(); } } } } }; xhttp.open("GET","https://visitcounterstaging.thalia-apps.com/?shopifyid="+lastid+"&new="+mynew+"&time="+gettime, true); xhttp.send(); } function mymodalprimeb() { var target = document.getElementById("prime-modal-window"); var parenttarget = target.parentElement; if (parenttarget.classList.contains('prime-modal-open')) { parenttarget.classList.remove('prime-modal-open'); document.getElementById('prime-modal-content').innerHTML = ''; } } if(userid == 9397){ document.addEventListener('resize', function() { resizeFunction(); }); }else{ window.addEventListener('resize', resizeFunction); } let lastUrl = location.href; new MutationObserver(() => { const url = location.href; if (url !== lastUrl) { lastUrl = url; resizeFunction(); } }).observe(document, {subtree: true, childList: true}); if(userid == 3973) { $( window ).on( "load", function() { setTimeout(function(){ resizeFunction(); }, 3000); }); } else{ window.addEventListener('load', resizeFunction); } function removebadge() { var primeb = document.getElementsByClassName('primebDesktop'); if(primeb[0]){ var remove_div1 = document.getElementsByClassName('primeBadges'); remove_div1[0].style.display= 'block'; } else { var remove_div1 = document.getElementsByClassName('primeBadges'); if(remove_div1[0]){ remove_div1[0].style.cssText = 'display:none !important'; // remove_div1[0].parentNode.removeChild(remove_div1[0]); } } } window.addEventListener('resize', screensizeFunction); function resizeFunction() { var fontadjust = document.getElementsByClassName('prime-font-adjust'); var heightadjust = document.getElementsByClassName('prime-height-adjust'); var xsdevice = window.matchMedia( "(max-width: 575.98px)" ); var smdevice = window.matchMedia( "(max-width: 767.98px)" ); var mddevice = window.matchMedia( "(max-width: 991.98px)" ); var lgdevice = window.matchMedia( "(max-width: 1199.98px)" ); var xldevice = window.matchMedia( "(min-width: 1200px)" ); for (var i = 0; i < fontadjust.length; i++) { var mobilesize = ''; var tabletsize = ''; mobilesize = fontadjust[i].getAttribute('data-mobilesize'); tabletsize = fontadjust[i].getAttribute('data-tabletsize'); fontadjust[i].style.fontSize = 'inherit'; if (xsdevice.matches || smdevice.matches ){ if(mobilesize > 0){ if(userid == 9397) { setTimeout(function(){ fontadjust[i].style.fontSize = mobilesize+'px'; },2000); }else{ fontadjust[i].style.fontSize = mobilesize+'px'; } //fontadjust[i].style.fontSize = mobilesize+'px'; } }else if(mddevice.matches){ if(tabletsize > 0){ if(userid == 9397) { setTimeout(function(){ fontadjust[i].style.fontSize = tabletsize+'px'; },2000); }else { fontadjust[i].style.fontSize = tabletsize+'px'; } //fontadjust[i].style.fontSize = tabletsize+'px'; } } } var heightadjust = document.getElementsByClassName('prime-height-adjust'); for (var i = 0; i < heightadjust.length; i++) { var image = heightadjust[i].getElementsByClassName("primebImage"); var mobileheight = ''; var tabletheight = ''; var defaultHeight = heightadjust[i].getAttribute('data-defaultheight'); mobileheight = heightadjust[i].getAttribute('data-mobileheight'); tabletheight = heightadjust[i].getAttribute('data-tabletheight'); var imgsrcsvg = image[0].getAttribute("src"); var present = imgsrcsvg.search("svg"); if(present > 0){ image[0].style.height = defaultHeight+'px'; image[0].style.maxHeight = defaultHeight+'px'; setTimeout(function(){ $('.primebImage').show(); }, 2000); if (xsdevice.matches || smdevice.matches ){ if(mobileheight > 0){ var heightxs=mobileheight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } }else if(mddevice.matches){ if(tabletheight > 0){ var heightmd=tabletheight+'px'; image[0].style.maxHeight = heightmd; setTimeout(function(){ $('.primebImage').show(); }, 2000); } else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } } }else{ //image[0].style.maxHeight = defaultHeight+'px'; //$('.primebImage').show(); if (xsdevice.matches || smdevice.matches ){ if(mobileheight > 0){ var heightxs=mobileheight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); }else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } }else if(mddevice.matches){ if(tabletheight > 0){ var heightmd=tabletheight+'px'; image[0].style.maxHeight = heightmd; setTimeout(function(){ $('.primebImage').show(); }, 2000); } else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } } else if(xldevice.matches){ image[0].style.maxHeight = defaultHeight+'px'; setTimeout(function(){ $('.primebImage').show(); }, 2000); } } } } function screensizeFunction() { var screensizeclass = document.getElementsByClassName('primebScreenSize'); for (var i = 0; i < screensizeclass.length; i++) { var issetcountryrule = screensizeclass[i].getAttribute('countryrule'); if( issetcountryrule == '1'){ var screenlist = screensizeclass[i].getAttribute('data-screensizeselected'); var screensizeArray = screenlist.split(","); var smdevice = window.matchMedia( "screen and (max-width: 767.98px)" ); var mddevice = window.matchMedia( "screen and (min-width: 768px) and (max-width: 991.98px)" ); var lgdevice = window.matchMedia( "screen and (min-width: 992px) and (max-width: 1199.98px)" ); var xldevice = window.matchMedia( "(min-width: 1200px)" ); if (smdevice.matches ){ if(screensizeArray[0] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } }else if( mddevice.matches){ if(screensizeArray[1] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } }else if(lgdevice.matches){ if(screensizeArray[2] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } }else{ if(screensizeArray[3] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } } } } } function redirectLinkbadge(badgeval,links,primebadgeid,modalsize) { if(badgeval != ''){ var badgelink = badgeval; if(links == 0){ window.location.href = badgelink; }else{ window.open(badgelink,'_blank'); } } if(links == 2){ var target = document.getElementById("prime-modal-outer"); var myclasses = ''; if(modalsize == 0){ myclasses = 'prime-modal-window prime-modal-small'; }else if(modalsize == 2){ myclasses = 'prime-modal-window prime-modal-large'; }else{ myclasses = 'prime-modal-window'; } document.getElementById('prime-modal-outer').classList.add('prime-modal-open'); var setclass = document.getElementById('prime-modal-window'); setclass.className = ''; setclass.className = myclasses; var xhr = new XMLHttpRequest(); var url = '/?view=primemeta&id==badge-popup-'+primebadgeid; xhr.open("GET", url, true); xhr.setRequestHeader("Cache-Control", "max-age=3600"); xhr.onreadystatechange = function() { if (this.readyState == 4) { if (this.status === 200) { document.getElementById('prime-modal-content').innerHTML = this.responseText; } else { console.log(this.status, this.statusText); } } }; xhr.send(); } } function toValidDateprime2(datestring){ return datestring.replace(/(\d{2})(\/)(\d{2})/, "$3$2$1"); } function myTimerprime2(newvalue,count,metaval) { var primebText2 = document.getElementsByClassName('primebText'); var againvalue = newvalue; var pos3 = newvalue.indexOf("[[ CountdownTimer:"); var pos4 = newvalue.indexOf("M,"); if(pos4 < 0){ pos4 = newvalue.indexOf(" ]]"); var res = newvalue.slice(pos3+18, pos4); }else{ if(metaval) { var res = metaval; }else{ var res = newvalue.slice(pos3 + 18, pos4 + 1); } } var pos5 = newvalue.indexOf(" ]]"); var pos6 = newvalue.indexOf("|"); var endres = againvalue.slice(pos3+18, pos5); if(pos6 < 0){ var customtext = ''; }else{ var customtext = againvalue.slice(pos6+1, pos5); } newvalue = newvalue.replace("[[ CountdownTimer:", "" ); newvalue = newvalue.replace(" ]]", "" ); endres = endres.replace(" |"+customtext , "" ); var getlang = endres.split(","); var setlang2 = 'en'; if(getlang.length > 1){ if(getlang[1] == 'custom'){ if (getlang[2] == null){ var setdays = ''; }else{ var setdays = getlang[2]; } if (getlang[3] == null){ var sethours = ''; }else{ var sethours = getlang[3]; } if (getlang[4] == null){ var setminutes = ''; }else{ var setminutes = getlang[4]; } if (getlang[5] == null){ var setseconds = ''; }else{ var setseconds = getlang[5]; } }else{ setlang2 = getlang[1]; var setmoment = moment(); setmoment.locale(setlang2); setmoment.subtract({hours: 0, minutes: 0, seconds: 35}); var getseconds = setmoment.toNow(true); setmoment.subtract({hours: 0, minutes: 10, seconds: 59}); var getminutes = setmoment.toNow(true); setmoment.subtract({hours: 5, minutes: 59, seconds: 59}); var gethours = setmoment.toNow(true); setmoment.subtract({hours: 222, minutes: 59, seconds: 59}); var getdays = setmoment.toNow(true); var setseconds = getseconds.split(" ").pop(); var setminutes = getminutes.split(" ").pop(); var sethours = gethours.split(" ").pop(); var setdays = getdays.split(" ").pop(); } }else{ var setdays = "days"; var sethours = "hours"; var setminutes = "minutes"; var setseconds = "seconds"; } var x = setInterval(function() { let end = new Date(toValidDateprime2(res)); let start = new Date(); var remaintime = end - start; var days = Math.floor(remaintime / (1000 * 60 * 60 * 24)); var hours = Math.floor((remaintime % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = Math.floor((remaintime % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((remaintime % (1000 * 60)) / 1000); var realtimeleft = days +" "+ setdays +" "+ hours +" " + sethours +" "+ minutes +" "+ setminutes +" "+ seconds +" " + setseconds + " "; if(seconds < 0 && customtext == ''){ realtimeleft = "0 "+setdays+" 0 "+sethours+" 0 "+setminutes+" 0 "+setseconds; }else if(seconds < 0 && customtext != ''){ newvalue = customtext; }else{ newvalue = newvalue.replace(" |"+customtext , ""); } if(getlang[1] == 'custom'){ realtimeleft=''; if(setdays != ''){ realtimeleft = days +""+ setdays+ " "; } if(sethours != ''){ realtimeleft = realtimeleft + hours +"" + sethours +" "; } if(setminutes != ''){ realtimeleft = realtimeleft + minutes +""+ setminutes +" "; } if(setseconds != ''){ realtimeleft = realtimeleft + seconds +"" + setseconds + " "; } } primebText2[count].innerHTML = newvalue.replace(endres,realtimeleft); primebText2[count].classList.remove("prime-counter"); if (remaintime < 0) { clearInterval(x); } }, 1000); } function setCookieprime(cname, cvalue, exdays) { var d = new Date(); var time = setcookietimestamp(exdays); if(exdays < 5){ d.setTime(d.getTime() + (time * 60 * 1000)); }else if(exdays > 4 && exdays < 8){ d.setTime(d.getTime() + (time * 60 * 60 * 1000)); }else if(exdays > 7){ d.setTime(d.getTime() + (time * 24 * 60 * 60 * 1000)); } var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookieprime(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function setcookietimestamp(time) { var realtime=''; if(time==1){ realtime=1; }else if(time==2){ realtime=5; }else if(time==3){ realtime=10; }else if(time==4){ realtime=30; }else if(time==5){ realtime=1; }else if(time==6){ realtime=6; }else if(time==7){ realtime=12; }else if(time==8){ realtime=1; }else if(time==9){ realtime=7; }else if(time==10){ realtime=15; }else if(time==11){ realtime=30; } return realtime; }

ECO-PELLICCIA OVERSIZE

WINTER SALES
SKU: 116137-S
Prezzo scontato€248.00 EUR Prezzo €495.00 EUR

Tasse incluse. Spedizione calcolata al checkout



Solo 1 pezzo rimasto

Colore:

Colore

Taglia:

Taglia

ECO-PELLICCIA OVERSIZE
ECO-PELLICCIA OVERSIZE Prezzo scontato€248.00 EUR Prezzo €495.00 EUR