Files
jk8_admin/test/domain-status-1888.html
2026-06-11 15:32:22 +08:00

42 lines
1.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>1XAUD Domain Status - merchant 1888</title>
<script>
window._ = {
getVar(name) {
return name === "merchantId" ? "1888" : "";
}
};
</script>
</head>
<body style="margin:0;background:#0f1218;">
<div style="position: relative;max-width: 1000px;margin: 0 auto;overflow: hidden;border: none;">
<iframe id="domainstatusIframe" src="https://1xaud.em7bd7.co/embed/domain-status/domain-status.asp" style="width: 100%;overflow: hidden;border: none;min-height:700px;"></iframe>
<script>
(() => {
const merchantId = (typeof _ !== "undefined" && typeof _.getVar === "function") ? (_.getVar("merchantId") ?? "") : "";
if (!merchantId) {
console.log("merchantId not found");
return;
}
function init(iframe) {
iframe.addEventListener("load", function() {
iframe.contentWindow.postMessage({ type: "setIframeData", clientMerchant: merchantId }, "*");
});
window.addEventListener("message", function(event) {
if (event.data && event.data.type === "setDomainStatusIframeHeight") {
iframe.style.height = event.data.height + "px";
}
}, false);
}
var el = document.getElementById("domainstatusIframe");
if (el) { init(el); return; }
})();
</script>
</div>
</body>
</html>