fbpx
Attendere prego... Please wait...

JU Jewels

**iscriviti alla news letter JU Jewels Italy **
'); // emailAdd=false; } } else { isvalidName = true; } if (emailAdd != "") { var element = $n("#youremail").next().next(); if (emailAdd.toLowerCase() == 'Email'.toLowerCase()) { $n(element).html('
Questo campo è obbligatorio. This field is required.
'); isvalidEmail = false; } else { var JsRegExPatern = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/ if (JsRegExPatern.test(emailAdd)) { isvalidEmail = true; $n(element).html(''); } else { var element = $n("#youremail").next().next(); $n(element).html('
Per favore, inserisci una email valida. Please enter valid email address.
'); isvalidEmail = false; } } } else { var element = $n("#yourname").next().next(); $n(element).html('
Questo campo è obbligatorio. This field is required.
'); isvalidEmail = false; } if ($n('#chkagreeornot').length > 0) { if ($n("#chkagreeornot").is(':checked')) { var element = $n("#chkagreeornot").next().next(); $n(element).html(''); is_agreed = true; } else { var element = $n("#chkagreeornot").next().next(); $n(element).html('
Please read and agree to our terms & conditions.
'); is_agreed = false; } } else { is_agreed = true; } if (isvalidName == true && isvalidEmail == true && is_agreed == true) { $n(".AjaxLoader").show(); $n('#mysuccess_msg').html(''); $n('#mysuccess_msg').hide(); $n('#myerror_msg').html(''); $n('#myerror_msg').hide(); var name = ""; if ($n('#yourname').length > 0) { name = $n("#yourname").val(); } var nonce = '11c05a7d2f'; var url = 'https://www.judesign.eu/site/wp-content/plugins/email-subscribe/'; var email = $n("#youremail").val(); var str = "action=store_email&email=" + email + '&name=' + name + '&is_agreed=' + is_agreed + '&sec_string=' + nonce; $n.ajax({ type: "POST", url: 'https://www.judesign.eu/site/wp-admin/admin-ajax.php', data: str, async: true, success: function (msg) { if (msg != '') { var result = msg.split("|"); if (result[0] == 'success') { $n(".AjaxLoader").hide(); $n('#mysuccess_msg').html(result[1]); $n('#mysuccess_msg').show(); setTimeout(function () { $n.fancybox_ns.close(); }, 2000); } else { $n(".AjaxLoader").hide(); $n('#myerror_msg').html(result[1]); $n('#myerror_msg').show(); } } } }); } } function res2(fes2){/in/.test(document.readyState)?setTimeout(res2,9,fes2):fes2()} res2(function(){ var $n = jQuery.noConflict(); /* if ( $n.browser.msie && $n.browser.version >= 9 ) { $n.support.noCloneEvent = true }*/ var htmlpopup = $n("#formFormEmail").html(); $n("#formFormEmail").remove(); $n('body').on('click', '.shownewsletterbox', function () { $n.fancybox_ns({ 'overlayColor': '#000000', 'hideOnOverlayClick': false, 'padding': 10, 'autoScale': true, 'showCloseButton': true, 'content': htmlpopup, 'transitionIn': 'fade', 'transitionOut': 'elastic', 'width': 560, 'height': 360 }); }); $n(document).ready(function () { if (readCookie('newsLatterPopup') == null) { setTimeout(function(){ $n.fancybox_ns({ 'overlayColor': '#000000', 'hideOnOverlayClick': false, 'padding': 10, 'autoScale': true, 'showCloseButton': true, 'content': htmlpopup, 'transitionIn': 'fade', 'transitionOut': 'elastic', 'width': 560, 'height': 360 }); createCookie('newsLatterPopup', 'donotshow', 4); },1500); } }); });