Recevez les dernières nouvelles
"), $("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']"),
n = $(this).find("[name='contact[tel]']"),
i = !1,
r = !1;
function s(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()) ? i = !0 : (e.preventDefault(), s("Please enter the correct email address!"))), i && a.length) {
var d = a.val();
/\S{10,}/g.test(d.replace(/\s/g, "")) ? (a.val(d.replace(t, "")), r = !0) : (e.preventDefault(), s("Please enter your message with more than 10 characters!"))
}
if (i && r) {
var c = window.location.host;
if (n.length) {
d = n.val().trim();
/^(zh\-cn\.)/.test(c) || /\.risingcn\./.test(c) ? /^1[3456789]\d{9}$/.test(d) || (e.preventDefault(), s("请输入正确的手机号码!")) : d.length
}
}
if ("homeForm" == e.currentTarget.id) {
e.preventDefault();
let t = !1,
o = window.location.protocol;
document.location.hostname, document.location.pathname;
i && r && (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-b7f2bb126e5ee650413a1d6d8e63c18b").length && $(".message-b7f2bb126e5ee650413a1d6d8e63c18b").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()}`, n = Math.random(), a + ", version=" + (n = n.toString().substr(3))))
}))