function iframeLoader(){let loadScript=function(){if(document.head.querySelector('#embed-86897')){return} let script=document.createElement('script');script.id='embed-86897';script.onload=function(){scriptLoaded()};script.src='https://www.kuntarekry.fi/dist-standalone/js/iframeResizer.min.js';document.head.appendChild(script)} let scriptLoaded=function(){loadIframe()} let loadIframe=function(){let iframe=document.createElement('iframe') iframe.setAttribute('src','https://www.kuntarekry.fi/fi/tyonantajat/kotkan-kaupunki/embedded/?t=1732582828') iframe.style.width='1px';iframe.style.minWidth='100%';iframe.style.height='0';iframe.style.border='none';iframe.id='kr-embed-iframe';iframe.onload=iframeLoaded;let krEmbed=document.getElementById('kr-embed');krEmbed.style.display='contents';krEmbed.appendChild(iframe);let intervalCount=0;let intervalId=setInterval(()=>{let embeddedIframe=document.querySelector('#kr-embed-iframe');if(embeddedIframe.contentWindow.document.readyState=='complete'||intervalCount>20){iframeLoaded();clearInterval(intervalId)} intervalCount++},1000)} let iframeLoaded=function(){window.iFrameResize({log:!1,inPageLinks:!0,scrolling:!1,},'#kr-embed-iframe')} loadScript()};iframeLoader()