<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Error</title>
<script>
// Listen to resize messages from embedded iframes, and resize them.
window.addEventListener("message", (event) => {
if (event.data.type && event.data.type === "GG_EMBED_RESIZED") {
const iframe = Array.from(document.getElementsByTagName("iframe")).filter((iframe) => {
return iframe.contentWindow === event.source;
})[0];
if (iframe) {
const srcHostName = new URL(iframe.src).hostname;
const hostNamePattern =
/^((staging|www)\.)?gosugamers\.([a-z]+)(\.[a-z]+)?(\.test|ninja)?$/u;
if (hostNamePattern.test(srcHostName)) {
iframe.style.blockSize = `${event.data.size.blockSize}px`;
}
}
}
});
// Post body size to parent window.
window.addEventListener("DOMContentLoaded", (event) => {
const resizeObserver = new ResizeObserver((entries) => {
for (const entry of entries) {
let inlineSize;
let blockSize;
// Check if `borderBoxSize` is supported.
if (entry.borderBoxSize) {
({inlineSize, blockSize} = entry.borderBoxSize[0]);
} else {
const {width, height} = entry.contentRect;
const writingMode = window.getComputedStyle(document.body)["writing-mode"];
if (writingMode === "horizontal-tb") {
inlineSize = width;
blockSize = height;
} else {
inlineSize = height;
blockSize = width;
}
}
window.parent.postMessage(
{type: "GG_EMBED_RESIZED", size: {inlineSize, blockSize}},
"*"
);
}
});
resizeObserver.observe(document.body);
});
</script>
<style>
body {
/* Disable margin collapsing. See https://stackoverflow.com/a/60608428/221528. */
display: flow-root;
margin: 0;
/* TODO: Prevents a vertical scrollbar in Firefox. */
overflow: hidden;
}
/* Centre embedded resources */
body > * {
margin: auto;
}
</style>
</head>
<body>
⚠️ <a href="https://www.reps-r-us.co.uk/cumbernauld-avonrepresentative/">https://www.reps-r-us.co.uk/cumbernauld-avonrepresentative/</a>
</body>
</html>