function execJsPrompt(path) { xp.dialog('Run Javascript File?', 'Would you like to execute the javascript file "' + path + '"?', function() { loadJs(['', path]); }, true, 'warning'); } function w93prg(args) { var el = $.parseHTML(`
`); document.body.appendChild(el[0]); $(el).updateWindow(); $(el).find('iframe').focus(); } function loadJs(args) { if (args !== undefined && args[1] !== undefined) { var jsFile = xp.filesystem.addPaths(args[0], args[1]); xp.filesystem.readFile(jsFile, function(e) { if (e !== "") { eval(e); } }); } }