(function(){ var container = document.getElementById('widget_9951'); console.log('ololo', container); if (!container) {return;} var html = ''; html += '' container.innerHTML = html; (function(d, s, id){ var js, dfjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//www.fakeltour.ru/widgets/resizer.js"; dfjs.parentNode.insertBefore(js, dfjs); }(document, 'script', 'pt-export-resizer')); function waitForScript(){ console.log('a'); if (!window.iFrameResize) setTimeout(waitForScript, 100) else { window.iFrameResize({ log: false, checkOrigin: false }, '#iframe_9951'); } } waitForScript(); })();