function browserGo(loc, guid) { if(!loc){ loc = document.getElementById('url_' + guid).value; } if (loc.indexOf('http://') == -1 && loc.indexOf('https://') == -1) { loc = location.protocol + '//' + loc; } document.getElementById('webPage_' + guid).src = loc; document.getElementById('url_' + guid).value = loc; document.getElementById('loading_' + guid).style.display = 'block'; document.getElementById('webPage_' + guid).style.display = 'none'; } function iframeContentUnload(guid) { document.getElementById('loading_' + guid).style.display = 'block'; document.getElementById('webPage_' + guid).style.display = 'none'; } function iframeContentLoaded(guid) { document.getElementById('loading_' + guid).style.display = 'none'; document.getElementById('webPage_' + guid).style.display = 'block'; } $(window).on('xpboot', function() { xp.applications.add('browser', (args) => { var guid = generate_guid(); var el = $.parseHTML(`

`); document.body.appendChild(el[0]); $(el).updateWindow(); var widthOffset = 30; var heightOffset = 80; window.iFrameChanges = -1; }); xp.applications.add('html', (args) => { var el = $.parseHTML(`
`); document.body.appendChild(el[0]); $(el).updateWindow(); }); xp.startmenu.add('browser', 'Idiot Explorer 6', 'program/assets/ie.webp'); });