ISK uzņēmumu saraksts
.iframe-resizable{ width: 1px; height: 1px; border: 0 !important; overflow: hidden !important; } .iframe-container { position: relative; overflow: hidden; padding-top: 100%; } const updateIframeSize=(ob)=>{ /* data: dom_id: "xyz" func: "updateIframeSize" width: 100 height: 1200 */ console.log('****************'); console.log('PAGE - updateIframeSize id:'+ob.dom_id+' w:'+ob.width+' h:'+ob.height); console.dir(ob); console.log('****************'); const element = document.getElementById(ob.dom_id); element.width = ob.width+'px'; element.height = ob.height+'px'; element.style.width = ob.width+'px'; element.style.height = ob.height+'px'; }; window.onmessage = (e) => { if (e.data.func == 'updateIframeSize'){ updateIframeSize(e.data); } e.stopPropagation(); e.preventDefault(); };