if (typeof BingeIframeRan === “undefined”) {
window.addEventListener(“message”, receiveMessage, false);
function receiveMessage(event) {
try {
var parsed = JSON.parse(event.data)
if (parsed.context === “iframe.resize”) {
var iframes = document.getElementsByClassName(“binge-iframe”);
for (let i = 0; i < iframes.length; ++i) {
if (iframes[i].src == parsed.src || iframes[i].contentWindow === event.source) {
iframes[i].height = parsed.height; }
iframes[i].style.opacity = 1;
}
}
} catch (error) {
}
}
var BingeIframeRan = true;
}
“A generation which ignores history has no past – and no future.” – Robert A. Heinlein
Marketers love to talk about data. We love to talk about findings. But what good are such things if we’re not ready and willing to both learn from and act on them?
Each year, my company, NetLin… Read More