unsupported.js 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. if (!window.FormData || !window.WebSocket || !window.JSON){
  2. var loadingNode = document.getElementById("browser_loading");
  3. if (loadingNode) loadingNode.style.display = "none";
  4. var errorHtml = "<div id=\"browser_error\" style=\"overflow: hidden; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;background: #f1f1f1\">\n" +
  5. " <div style=\"height:540px; width: 920px; overflow: hidden; margin: 8% auto;\">\n" +
  6. " <div id=\"browser_error_area\" style=\"height:540px; width: 920px;\"></div>\n" +
  7. " <div style=\"height:540px; width: 920px; position: relative; top: -540px\">\n" +
  8. " <div style=\"background-image: url(img/warn1.png); background-repeat: no-repeat; background-position:center center; width: 90px; height: 80px; float:left; margin-left: 144px; margin-top: 74px\"></div>\n" +
  9. " <div style=\"color: #333333; width: 530px; height: 80px; float:left; margin-left: 30px; margin-top: 74px; font-size: 28px; line-height: 40px;\" id=\"browser_error_area_text\">\n" +
  10. " 您的浏览器版本过低啦!~系统已经不支持IE9及以下版本了!\n" +
  11. " </div>\n" +
  12. " <div style=\"color: #666666; width: 650px; text-align:center; height: 50px; float:left; margin-left: 144px; margin-top: 60px; font-size: 28px; line-height: 40px; border-bottom: 2px solid #999999\" id=\"browser_error_area_up_text\">\n" +
  13. " 请升级您的浏览器:\n" +
  14. " </div>\n" +
  15. " <div style=\"width: 100px; height: 100px; float:left; margin-left: 144px; margin-top: 20px\">\n" +
  16. " <div style=\"background-position: center; background-repeat: no-repeat; background-image: url(img/logo_edge.png); width: 100px; height: 100px;\"></div>\n" +
  17. " <div style=\"width: 100px; height: 40px; font-size: 24px; color: #666666; line-height: 40px; text-align: center\">Edge</div>\n" +
  18. " </div>\n" +
  19. "\n" +
  20. " <div style=\"width: 100px; height: 100px; float:left; margin-left: 80px; margin-top: 20px\">\n" +
  21. " <div style=\"background-position: center; background-repeat: no-repeat;background-image: url(img/logo_chrome.png); width: 100px; height: 100px;\"></div>\n" +
  22. " <div style=\"width: 100px; height: 40px; font-size: 24px; color: #666666; line-height: 40px; text-align: center\">Chrome</div>\n" +
  23. " </div>\n" +
  24. "\n" +
  25. " <div style=\"width: 100px; height: 100px; float:left; margin-left: 80px; margin-top: 20px\">\n" +
  26. " <div style=\"background-position: center; background-repeat: no-repeat;background-image: url(img/logo_firefox.png); width: 100px; height: 100px;\"></div>\n" +
  27. " <div style=\"width: 100px; height: 40px; font-size: 24px; color: #666666; line-height: 40px; text-align: center\">Firefox</div>\n" +
  28. " </div>\n" +
  29. "\n" +
  30. " <div style=\"width: 100px; height: 100px; float:left; margin-left: 80px; margin-top: 20px\">\n" +
  31. " <div style=\"background-position: center; background-repeat: no-repeat;background-image: url(img/logo_safari.png); width: 100px; height: 100px;\"></div>\n" +
  32. " <div style=\"width: 100px; height: 40px; font-size: 24px; color: #666666; line-height: 40px; text-align: center\">Safari</div>\n" +
  33. " </div>\n" +
  34. " </div>\n" +
  35. " </div>\n" +
  36. " </div>";
  37. document.body.insertAdjacentHTML("beforeend", errorHtml);
  38. window.layout = {};
  39. layout.desktop = {}
  40. layout.addReady = function(){};
  41. layout.isReady = true;
  42. }