var currentWidgetID = "16664641641"; var wlme_url = "https://waitlist.me/"; var wlme_parentelim=document.getElementById('wlme_inclscript').parentElement; /* var wlmeClassElements = document.getElementsByClassName("wlme_inclscriptclass"); for(var clEle = 0; clEle < wlmeClassElements.length; clEle++){ var pageElements = wlmeClassElements[clEle]; var pageElementClassName = pageElements.getAttribute("class"); var classNameArray = pageElementClassName.split(' '); for(var cl = 0; cl < classNameArray.length; cl++){ var sepClassName = classNameArray[cl]; sepClassName = sepClassName.replace(/\s+/g,''); if(sepClassName != ""){ if(sepClassName.substring(0,23) == "wlme_subinclscriptclass"){ var myElement = document.getElementsByClassName(sepClassName)[0]; if(myElement){ wlme_parentelim = myElement.parentElement; } } } } } */ var wlmeClassElements = document.getElementsByClassName("wlme_subinclscriptclass-1")[0]; if(wlmeClassElements){ wlme_parentelim = wlmeClassElements.parentElement; } var wlmeClassElements2 = document.getElementsByClassName("wlme_subinclscriptclass-2")[0]; if(wlmeClassElements2){ wlme_parentelim = wlmeClassElements2.parentElement; } var scriptELEMENT = document.createElement('script'); scriptELEMENT.src = wlme_url+'static/iframe-js/iframeResizer.min.js'; scriptELEMENT.onload = function() { //iFrameResize({ log: true }, '#wlme_iframe_id_16664641641'); iFrameResize({ log: true }, '.wlme_iframe_cls'); } wlme_parentelim.appendChild(scriptELEMENT); var wlme_iframe = document.createElement('iframe'); //wlme_iframe.id = "wlme_iframe_id_16664641641"; wlme_iframe.classList.add("wlme_iframe_cls"); wlme_iframe.frameBorder = 0; wlme_iframe.src = wlme_url+"load_widget_iframe_src/?wg=16664641641&"; /* window.addEventListener('message', function(event) { if (event.data && event.data.__newwidth) { if(event.data.__newwidth > 300){ wlme_iframe.style.width = event.data.__newwidth + 'px'; } } }, false); */ /*widgetDIV.appendChild(wlme_iframe);*/ wlme_parentelim.appendChild(wlme_iframe); /* var styleELEMENT = document.createElement('style'); styleELEMENT.innerHTML = "#wlme_iframe_id_16664641641 { width: 1px; min-width: 100%; }"; wlme_parentelim.appendChild(styleELEMENT); */