42 lines
1.5 KiB
HTML
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 Partnership - 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="partnershipIframe" src="https://1xaud.em7bd7.co/embed/partnership/partnership.asp" style="width: 100%;overflow: hidden;border: none;min-height:600px;"></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 === "setPartnershipIframeHeight") {
|
|
iframe.style.height = event.data.height + "px";
|
|
}
|
|
}, false);
|
|
}
|
|
var el = document.getElementById("partnershipIframe");
|
|
if (el) { init(el); return; }
|
|
})();
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|