Panno Pulizia Lenti e Schermi - Acquista online | Legami.com
Il panno pulizia lenti e schermi di Legami è utile e alla moda! Le sue piccolissime dimensioni sono un plus perché lo puoi portare sempre con te! Ideale per pulire lenti di occhiali e tutti gli schermi: smartphone, macchina fotografica, tablet e molto altro…
') .append(' '); /** * @var selectorAgreementDivModal | parent of agreement checkbox * @type {*|jQuery|HTMLElement} */ var selectorAgreementDivModal = jQuery("#newsletter-overlay"); var newsletterOverlay = new VarienForm('newsletter-overlay'); new Varien.searchForm('newsletter-overlay', 'ol_newsletter', 'Inserisci il tuo indirizzo e-mail'); function allCheckedAgreements() { var item = 'input[name^="agreement["]'; var ids = []; var id = ''; jQuery.each(jQuery(item), function(k, v) { if (jQuery(v).prop('checked')) { id = jQuery(v).attr('name').replace(/[^\d.]/g, ''); ids.push(id); } }); return ids; } jQuery("#overlay-subscribe").click( function(e) { e.preventDefault(); if (!newsletterOverlay.validator.validate()) return; /*jQuery('body').css("overflow", "hidden");*/ jQuery('.resp-message').html("Iscriviti alla newsletter"); var params = { 'email': jQuery("input[name=ol_email]").val(), 'privacy': jQuery("input[name=privacy]").prop("checked") ? "on" : "off", 'agreement': allCheckedAgreements, 'nloverlay': true, 'ajax': true } jQuery.ajax({ url: "https://www.legami.com/it_it/newsletteroverlay/newsletter/subscribe/", type: "post", dataType: "json", data: params, success: function(checkJson) { if (!checkJson || typeof checkJson != 'object') { jQuery('.resp-message').html(checkJson); return; } if (!checkJson.success) { jQuery('.resp-message').html(checkJson.message); return; } var closedelay = parseInt(5); if (isNaN(closedelay)) { if (checkJson.redirect !== null) { window.location.href = checkJson.redirect + '?r=' + encodeURIComponent('https://www.legami.com/it_it/viaggi-tempo-libero/borse-accessori/panno-pulizia-lenti.html'); return; } else { window.location.href = window.location.href + "?isc=ok"; return; } } jQuery("#newsletter-overlay").hide(); jQuery('.resp-message').html(checkJson.message); setTimeout(function() { closeNl(); }, closedelay * 1000); } }) } ); /** * @var agreementCheckboxModal | all agreement checkbox * @type {*|jQuery|*|*|*|*} */ var agreementCheckboxModal = selectorAgreementDivModal.find("input[type='checkbox']"); /** * @var newsletterFlagModal | checkbox html element of newsletter checkbox */ var newsletterFlagModal = agreementCheckboxModal[0]; jQuery(newsletterFlagModal).addClass('required-entry'); // disable all checkbox for newsletter unless first jQuery(agreementCheckboxModal).slice(1).attr("disabled", "disabled"); jQuery(agreementCheckboxModal).slice(1).next().css("cursor", "not-allowed"); jQuery(agreementCheckboxModal).on("click", function () { // get all next agreement profiling checkbox var allNextCheckboxModal = jQuery(jQuery(this).closest('label').nextAll('label')).find("input[type='checkbox']"); // active only the next checkbox when current is checked or disable all checkbox jQuery(allNextCheckboxModal).prop("checked", false); jQuery(allNextCheckboxModal).attr("disabled", "disabled"); jQuery(allNextCheckboxModal).next().css("cursor", "not-allowed"); if (jQuery(this).prop("checked") === true) { jQuery(allNextCheckboxModal[0]).removeAttr("disabled"); jQuery(allNextCheckboxModal[0]).next().css("cursor", "pointer"); } // trigger newsletterFlagModal for hidden customer newsletter field jQuery(newsletterFlagModal).trigger("change"); }); // active / inactive hidden field for customer newsletter registration jQuery(newsletterFlagModal).on("change", function(){ var subscribeForCustomerModal = jQuery("#privacy"); subscribeForCustomerModal.prop("checked", jQuery(this).prop("checked")); }); //getMarginTop(); } function __go() { // no block, or logged and already subscribed, or cookie exists if (!b || s || cno.get(cookieName)) return; var overlay = {"enabled":true,"delay":"5","type":"catalog_category_view"}; var enabled = overlay.enabled; if (!enabled) return; var delay = parseInt(overlay.delay); setTimeout(function() { showOverlay(); }, delay * 1000); } __go(); }); function closeNl() { //cookie jQuery('.window').fadeOut('fast'); jQuery('.overlay-nl').fadeOut('fast'); /*if (navigator.appVersion.indexOf("MSIE 7.") != -1) { jQuery('html').css('overflow', 'auto'); jQuery('body').css('overflow', 'visible'); }else{ jQuery('body').css('overflow', 'visible'); }*/ //cookie = cookie === undefined ? true : cookie; if (!cno.get(cookieName)) cno.set(cookieName, 1, parseInt(cookieExp)); } function showFldPrivacy(){ jQuery(".fld-txt-privacy").toggle(); }