如果 (e.currentTarget.id == “homeForm”) {
alert(“ASD1F2S1df”);
e.preventDefault();
设 flag = false;
令协议 = window.location.protocol;
Let backpage = protocol + “//” + document.location.hostname + “/inquiryok?back=” + document.location.pathname;
if (emailValid & messageValid) {
旗帜 = 真;
}
如果(旗帜) {
$.post(protocol + “//inquiry.digoodcms.com/api/save/helispring”, $(this).serialize(), function(res, status) {
如果 (res.indexOf('Inquiry Send Success') >= 0) {
window.location.href = backpage;
$(“#homeForm”)。hide();
$(“.submit-success”).show();
}
});
}
}
});
函数 getTimestamp() {
var d = 新日期(),
Y = d.getFullYear(),
M = (d.getMonth() + 1) > 9 ?(d.getMonth() + 1) : '0' + (d.getMonth() + 1),
D = d.getDate() > 9 ?d.getDate() : '0' + d.getDate(),
h = d.getHours() > 9 ?d.getHours() : '0' + d.getHours(),
m = d.getMinutes() > 9 ?d.getMinutes() : '0' + d.getMinutes(),
s = d.getSeconds() > 9 ?d.getSeconds() : '0' + d.getSeconds();
var timestamp = '${Y}/${M}/${D} ${h}:${m}:${s}';
var rand = 数学。随机();
rand = rand.toString().substr(3);
返回时间戳 + ', version=' + rand;
}
if ($('.message-6f418c6f6a68911eb409f7d625fbd9fe').length) {
$('.message-6f418c6f6a68911eb409f7d625fbd9fe').val('from: ' + window.location.href + ', date: ' + getTimestamp());
}
});
请确保您的联系方式正确。您的消息将直接发送给收件人,不会公开显示。未经您的明确许可,我们绝不会向第三方分发或出售您的个人信息。