.fullscreen {
position: fixed !important;
top: 0; left: 0; right: 0; bottom: 0;
width: 100vw !important;
height: 100vh !important;
z-index: 999999999999999 !important;
margin: 0;
padding: 100px 0 0 0;
}
window.addEventListener(‚message‘, (event) => {
if (event.data.action === ‚openPopup‘) {
const iframe = document.getElementById(’sharedIframe‘);
iframe.classList.add(‚fullscreen‘);
}else if(event.data.action === ‚closePopup‘){
const iframe = document.getElementById(’sharedIframe‘);
iframe.classList.remove(‚fullscreen‘);
}
});
.fullscreen {
position: fixed !important;
top: 0; left: 0; right: 0; bottom: 0;
width: 100vw !important;
height: 100vh !important;
z-index: 999999999999999 !important;
margin: 0;
padding: 100px 0 0 0;
}
window.addEventListener(‚message‘, (event) => {
if (event.data.action === ‚openPopup‘) {
const iframe = document.getElementById(’sharedIframe2′);
iframe.classList.add(‚fullscreen‘);
}else if(event.data.action === ‚closePopup‘){
const iframe = document.getElementById(’sharedIframe2′);
iframe.classList.remove(‚fullscreen‘);
}
});