Aktuelles

| |

Follow us. document.addEventListener(„DOMContentLoaded“, function() { const instagramFeed = document.getElementById(‚pw_social_media_instagram_feed‘); const observer = new IntersectionObserver(function(entries) { if (entries[0].isIntersecting) { if (!document.getElementById(„pw_social_media_instagram_feed_iframe“)) { const iframe = document.createElement(‚iframe‘); iframe.id = „pw_social_media_instagram_feed_iframe“; iframe.loading = „lazy“; iframe.width = „100%“; iframe.height = „auto“; iframe.frameborder…

Follow us.

document.addEventListener(„DOMContentLoaded“, function() {
const instagramFeed = document.getElementById(‚pw_social_media_instagram_feed‘);
const observer = new IntersectionObserver(function(entries) {
if (entries[0].isIntersecting) {
if (!document.getElementById(„pw_social_media_instagram_feed_iframe“)) {
const iframe = document.createElement(‚iframe‘);
iframe.id = „pw_social_media_instagram_feed_iframe“;
iframe.loading = „lazy“;
iframe.width = „100%“;
iframe.height = „auto“;
iframe.frameborder = „0“;
iframe.scrolling = „no“;
iframe.src = „https://team.pinzweb.at/social-stream/1355/“;
instagramFeed.appendChild(iframe);
}
observer.unobserve(instagramFeed);
}
}, {
rootMargin: ‚200px‘,
threshold: 0.2
});
observer.observe(instagramFeed);

window.addEventListener(‚message‘, function(e) {
if (e.data[0] === ’setHeightInstagram‘) {
const iframe = document.getElementById(„pw_social_media_instagram_feed_iframe“);
if (iframe) {
iframe.height = e.data[1];
}
}
}, false);
});

iframe {
border: none;
}