eDoc = (iFrameEl.contentDocument || iFrameEl.contentWindow || iFrameEl); if (iFrameDoc.document) { iFrameDoc=iFrameDoc.document; } if (iFrameDoc.innerHTML) { errHtml=iFrameDoc.innerHTML; } if (errHtml) { if ( errHtml.match(/cPanel Loader/)) { iframe_has_cpanel_loader = 1; } else if ( errHtml.match(/(404|connection|not|unavailable)/i)) { iframe_failed = 1; } } } catch (e) { //console.log(e); //console.log(e.message); if (e && e.message && e.message.match(/denied/i)) { iframe_failed = 0; } else { iframe_failed = 1; } } return {'failed':iframe_failed, 'has_cpanel_loader':iframe_has_cpanel_loader}; } function updatecount() { var dots=''; counter++; if (counter == 15) { counter=0; } for(i=0;i<=counter;i++) { dots+='.'; } statusBoxEl.innerHTML=dots; } var actorEl = document.getElementById('actor'); if (actorEl) { actorEl.innerHTML='cPanel® is connecting '; } if (! 0) { setInterval(poll_iframes,1000); if (statusBoxEl) { setInterval(updatecount,80); } }