Files
2026-07-10 10:52:30 +08:00

55 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- <link rel="icon" href="<%= BASE_URL %>logo.png"> -->
<title>
<%= webpackConfig.name %>
</title>
<!-- 引入css -->
<% for(let css of htmlWebpackPlugin.options.cdn.css) { %>
<link rel="stylesheet" href="<%=css%>">
<% } %>
<!-- 引入JS -->
<% for(let js of htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%=js%>"></script>
<% } %>
<script type="text/javascript">
(function (window) {
var theUA = window.navigator.userAgent.toLowerCase();
console.log(theUA);
if (
theUA.indexOf('trident') > -1 && theUA.indexOf('rv:11.0') > -1
|| theUA.indexOf("compatible") > -1 && theUA.indexOf("msie") > -1
) {
var str = "你的浏览器版本不受支持,请及时更新";
var str2 = "推荐使用:<a style='color:#fff;'>谷歌</a>,"
+ "<a style='color:#fff;'>Edge</a>,"
+ "<a style='color:#fff;'>火狐</a>,"
+ "或其他双核极速模式浏览器";
document.writeln("<pre style='text-align:center;color:#fff;background-color:#1890FF; height:100%;border:0;position:fixed;top:0;left:0;width:100%;z-index:1234'>" +
"<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><h2>" +
str2 + "</h2><h2 style='margin:0'><strong>如果你的使用的是双核浏览器,请切换到极速模式访问<br/></strong></h2></pre>");
console.log("浏览器不合格")
document.execCommand("Stop");
}
else {
console.log("浏览器合格")
}
})(window);
</script>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>