index.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>TODO</title><script>function IEVersion() {
  2. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  3. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  4. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  5. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  6. if(isIE) {
  7. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  8. reIE.test(userAgent);
  9. var fIEVersion = parseFloat(RegExp["$1"]);
  10. if(fIEVersion == 7) {
  11. return 7;
  12. } else if(fIEVersion == 8) {
  13. return 8;
  14. } else if(fIEVersion == 9) {
  15. return 9;
  16. } else if(fIEVersion == 10) {
  17. return 10;
  18. } else {
  19. return 6;//IE版本<=7
  20. }
  21. } else if(isEdge) {
  22. return 12;//edge
  23. } else if(isIE11) {
  24. return 11; //IE11
  25. }else{
  26. return -1;//不是ie浏览器
  27. }
  28. }
  29. var version = IEVersion();
  30. if(version != -1 && version < 10) {
  31. if(window.confirm("您的浏览器版本过低,推荐使用IE10及以上浏览器或者chrome浏览器,点击确定下载chrome安装浏览器。若是360等浏览器,开启兼容模式")){
  32. window.open("/download/44.0.2403.89_chrome_installer.exe", "_blank");
  33. }
  34. }</script><link href=/css/group-app.941369c8.css rel=prefetch><link href=/css/group-controlApp.f696243f.css rel=prefetch><link href=/css/group-mainPage.b613ded6.css rel=prefetch><link href=/js/group-app.f7e1714e.js rel=prefetch><link href=/js/group-controlApp.fbd84220.js rel=prefetch><link href=/js/group-mainPage.6686df6a.js rel=prefetch><link href=/css/app.26091a7d.css rel=preload as=style><link href=/css/chunk-vendors.635bc84a.css rel=preload as=style><link href=/js/app.dbb75526.js rel=preload as=script><link href=/js/chunk-vendors.3117a5a7.js rel=preload as=script><link href=/css/chunk-vendors.635bc84a.css rel=stylesheet><link href=/css/app.26091a7d.css rel=stylesheet></head><body><noscript><strong>We're sorry but my-project doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.3117a5a7.js></script><script src=/js/app.dbb75526.js></script></body></html>