This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (42 loc) · 2.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<!-- 浏览器校验 -->
<script type="text/javascript" defer>
(function(window) {
var theUA = window.navigator.userAgent.toLowerCase();
if ((theUA.match(/msie\s\d+/) && theUA.match(/msie\s\d+/)[0]) || (theUA.match(/trident\s?\d+/) && theUA.match(/trident\s?\d+/)[0])) {
var ieVersion = theUA.match(/msie\s\d+/)[0].match(/\d+/)[0] || theUA.match(/trident\s?\d+/)[0];
if (ieVersion < 11) {
var str = "您使用的浏览器 (疑似IE"+ ieVersion + "或双核浏览器的兼容模式)<br /><br />" + theUA + "<br /><br />由于过于落后已经被淘汰,不再受支持<hr />请使用现代浏览器的最新版本进行浏览,如:<br /><br />Google Chrome(谷歌浏览器)<br />Safari(苹果浏览器)<br />FireFox(火狐浏览器)<br />Microsoft Edge(微软浏览器)<br />360系列(双核)的极速模式<br />QQ系列(双核)的极速模式";
var divStart = "<div style='"
+ "color: black;"
+ "width: 100%; height: 100%; margin-top:100px;"
+ "text-align: center;"
+ "position: fixed; top: 0; left: 0; z-index: 9999999;"
+ "font-size: 30px; font-weight: 600;"
+ "''>";
var divEnd = "</div>";
document.writeln(divStart + str + divEnd);
document.execCommand("Stop");
};
}
})(window);
</script>
<body>
<div id="app"><!--app-html--></div>
<script defer type="module" src="/src/main.ts"></script>
</body>
</html>