function Openios (URL, callback) {if (!url) {return; } var node = document.createelement (' iframe '); Node.style.display = ' None '; var body = document.body; var timer; var clear = function (evt, istimeout) {(typeof callback=== ' function ') && callback (istimeout); Window.removeeventlistener (' pagehide ', hide, true); Window.removeeventlistener (' pageshow ', hide, true); if (!node) {return; } node.onload = null; Body.removechild (node); node = null; }; var hide = function (e) {cleartimeout (timer); Clear (E, false); }; Window.addeventlistener (' pagehide ', hide, true); Window.addeventlistener (' pageshow ', hide, true); Node.onload = clear; node.src = URL; Body.appendchild (node); var now = +new Date (); If the event fails, then 1 seconds is set to null timer = SetTimeout (function () {timer = SetTimeout (function () {var newtime = +new Date ( ); if (now-newtime>1300) { Clear (null, false); }else{clear (null, true); }}, 1200); }, 60);}
iOS protocol to tune apps