') : $("#main-content").prepend('
' + e.success + '
'), $("html, body").animate({ scrollTop: 0 }, "slow") } }), !1) : (alert("Please Enter Valid Email"), !1)}function validatpopupemail() { return /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test($("#email-popup").val()) ? ($.ajax({ url: "index.php?route=extension/module/newsletter/jsonnewsletter", type: "post", data: { email: $("#email-popup").val(), name: $("#name-popup").val() }, dataType: "json", success: function(e) { $(".alert").remove(), e.fail ? $("#content").before('
' + e.fail + '
') : $("#content").before('
' + e.success + '
'), $("html, body").animate({ scrollTop: 0 }, "slow"), $(".template-home, #subscribe-me").modal("hide"); $('#subscribe-me').hide(); $('.modal-backdrop').addClass('hide'); $('body').removeClass("modal-open").css("padding-right","0"); } }), !1) : (alert("Please Enter Valid Email"), !1)}