DEV Community

Nelson Amaya
Nelson Amaya

Posted on Originally published at selfalignmentframework.com

SAFi Explained: Synderesis

safi-infographic-frame { width: 100%; border: 0; display: block; height: 2550px; }

@media (max-width: 1219px) { #safi-infographic-frame { height: 2700px; } }
@media (max-width: 1023px) { #safi-infographic-frame { height: 2800px; } }
@media (max-width: 767px) { #safi-infographic-frame { height: 3560px; } }

window.addEventListener('message', function (event) {
    if (event.origin !== 'https://safi.selfalignmentframework.com') return;
    if (!event.data || !event.data.frameHeight) return;
    var iframe = document.getElementById('safi-infographic-frame');
    if (iframe) iframe.style.height = event.data.frameHeight + 'px';
});
Enter fullscreen mode Exit fullscreen mode

Top comments (0)