变压器

变压器


推荐产品

获取最新消息
"), $("form").submit((function(e) { let t = /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi; var o = $(this).find("[name='email']"), a = $(this).find("[name='message']"), c = $(this).find("[name='contact[tel]']"), n = !1, d = !1; function i(e) { $(".error-msg").html(e), $(".error-msg").stop().fadeIn(100), setTimeout(() => { $(".error-msg").stop().fadeOut(1e3) }, 3e3) } if (o.length && (/[-\w\.]+@[-\w\.]+(\.[-\w]+)+/.test(o.val()) ? n = !0 : (e.preventDefault(), i("Please enter the correct email address!"))), n && a.length) { var r = a.val(); /\S{10,}/g.test(r.replace(/\s/g, "")) ? (a.val(r.replace(t, "")), d = !0) : (e.preventDefault(), i("Please enter your message with more than 10 characters!")) } if (n && d) { var s = window.location.host; if (c.length) { r = c.val().trim(); /^(zh\-cn\.)/.test(s) || /\.risingcn\./.test(s) ? /^1[3456789]\d{9}$/.test(r) || (e.preventDefault(), i("请输入正确的手机号码!")) : r.length } } if ("homeForm" == e.currentTarget.id) { e.preventDefault(); let t = !1, o = window.location.protocol; document.location.hostname, document.location.pathname; n && d && (t = !0), t && $.post(o + "//inquiry.digoodcms.com/api/save/wu68999", $(this).serialize(), (function(e, t) { e.indexOf("Inquiry Send Success") >= 0 && ($("#homeForm").hide(), $(".submit-success").show()) })) } })), $(".message-84646fa7b8f14e6bc7f85e85a10d1ec9").length && $(".message-84646fa7b8f14e6bc7f85e85a10d1ec9").val("from: " + window.location.href + ", date: " + (o = new Date, a = `${o.getFullYear()}/${o.getMonth()+1>9?o.getMonth()+1:"0"+(o.getMonth()+1)}/${o.getDate()>9?o.getDate():"0"+o.getDate()} ${o.getHours()>9?o.getHours():"0"+o.getHours()}:${o.getMinutes()>9?o.getMinutes():"0"+o.getMinutes()}:${o.getSeconds()>9?o.getSeconds():"0"+o.getSeconds()}`, c = Math.random(), a + ", version=" + (c = c.toString().substr(3)))) }))