<!DOCTYPE html>
<html lang="zh-cmn-Hans">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>logo.png">
    <title><%= VUE_APP_PRO_NAME %></title>
    <style>#loading-mask{position:fixed;left:0;top:0;height:100%;width:100%;background:#fff;user-select:none;z-index:9999;overflow:hidden}.loading-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%)}.loading-dot{animation:antRotate 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;font-size:64px;width:64px;height:64px;box-sizing:border-box}.loading-dot i{width:22px;height:22px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.loading-dot i:nth-child(1){top:0;left:0}.loading-dot i:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.loading-dot i:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.loading-dot i:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}@-webkit-keyframes antSpinMove{to{opacity:1}}</style>
    <!-- require cdn assets css -->
    <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
    <link rel="stylesheet" href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" />
    <% } %>
  <script src="./menus.js"></script>
	<script>
		//  非谷歌浏览器或非IE11时，则提示下载谷歌浏览器进行访问
		function BrowserType () {
		  var userAgent = navigator.userAgent // 取得浏览器的userAgent字符串
		  var isOpera = userAgent.indexOf('Opera') > -1 // 判断是否Opera浏览器
		  // var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器
		  var isIE = window.ActiveXObject || 'ActiveXObject' in window
		  // var isEdge = userAgent.indexOf("Windows NT 6.1; Trident/7.0;") > -1 && !isIE; //判断是否IE的Edge浏览器
		  var isEdge = userAgent.indexOf('Edge') > -1 // 判断是否IE的Edge浏览器
		  var isFF = userAgent.indexOf('Firefox') > -1 // 判断是否Firefox浏览器
		  var isSafari = userAgent.indexOf('Safari') > -1 && userAgent.indexOf('Chrome') == -1 // 判断是否Safari浏览器
		  var isChrome = userAgent.indexOf('Chrome') > -1 && userAgent.indexOf('Safari') > -1 && !isEdge // 判断Chrome浏览器
		
		  if (isIE) {
		    var reIE = new RegExp('MSIE (\\d+\\.\\d+);')
		    reIE.test(userAgent)
		    var fIEVersion = parseFloat(RegExp['$1'])
			console.log(fIEVersion)
		    if (userAgent.indexOf('MSIE 6.0') != -1 || fIEVersion<11) {
		      var con = alert('当前浏览器版本过低，为保证更好体验请下载谷歌浏览器进行操作, 点击【确定】升级，如不升级您将不能正常浏览网页！' + '\n' + '下载地址：“https://www.google.cn/chrome”') // 在页面上弹出对话框
		      if (con == true) {} else {
		        window.location = 'https://www.google.cn/chrome'
		      }
		    }
		  } // isIE end
		
		  if (isFF) { return 'FF' }
		  if (isOpera) { return 'Opera' }
		  if (isSafari) { return 'Safari' }
		  if (isChrome) { return 'Chrome' }
		  if (isEdge) { return 'Edge' }
		} 
		BrowserType()
    
	</script>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but vue-antd-pro doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app">
      <div id="loading-mask">
          <div class="loading-wrapper">
            <span class="loading-dot loading-dot-spin"><i></i><i></i><i></i><i></i></span>
          </div>
        </div>
    </div>
    <!-- require cdn assets js -->
    <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
    <script type="text/javascript" src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
    <% } %>
    <!-- built files will be auto injected -->
  </body>
</html>
