Nessuna descrizione

cordova-loader.js 760B

1234567891011121314151617
  1. (function(){
  2. if ((navigator.userAgent.match(/Android/i)) || (navigator.userAgent.match(/iPhone|iPad|iPod/i))) {
  3. if (typeof location.href === "string") {
  4. var relativePath = location.href.split("/www")[1];
  5. var paths = relativePath.split("/");
  6. var cordovaJsUrl = "";
  7. for (var i = 0; i < paths.length - 2; i++) {
  8. cordovaJsUrl += "../";
  9. }
  10. document.write("<script src=\"" + cordovaJsUrl+ "cordova.js" + "\"></script>");
  11. }
  12. } else if ((navigator.userAgent.match(/MSIE\s10.0/)) && (navigator.userAgent.match(/Windows\sNT\s6.2/))) {
  13. var elm = document.createElement('script');
  14. elm.setAttribute("src", "cordova.js");
  15. document.getElementsByTagName("head")[0].appendChild(elm);
  16. };
  17. })();