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;
}
The post How to overcome LinkedIn’s dreaded ‘Image Squeeze’ with Snöball appeared first on Snöball Your Event. Get New Registrants..
Click here to see original post