forked from sealdice/sealdice-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (42 loc) · 1.88 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
43
44
45
46
47
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title>SealDice 海豹核心</title>
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="default-src 'unsafe-inline' *;
img-src * 'self' http: https: data: blob:;
script-src 'self' 'unsafe-inline' 'unsafe-eval' *;
style-src 'self' 'unsafe-inline' *">
<!-- element css cdn, if you use custom theme, remove it. -->
<!-- <link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/element-plus/dist/index.css"
/> -->
<!-- <script src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script> -->
</head>
<body>
<div id="ie-warn" style="display: none;">
<p>如果你看到这里的文本,那么说明你可能在使用旧版 IE 浏览器。</p>
<p>这意味着在升级浏览器前,你将无法访问此页面。</p>
<p>海豹核心的运行并不依赖 Chrome,但是其 WebUI 需要新版浏览器才能访问</p>
<p>-------------</p>
<p>有三个方案可以解决此问题:</p>
<p style="color: #990000">1. 升级本机上的浏览器,推荐使用 Chrome 或新版 Edge 浏览器(推荐)</p>
<p>2. 在自己电脑上完成配置,然后将配置好的目录打包,上传到服务器运行</p>
<p>3. 在自己电脑上,通过 http://IP地址:3211 来访问海豹。如果服务器运营商有防火墙 (如腾讯云轻量服务器),自行登录操作放行。</p>
</div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
var ua = window.navigator.userAgent;
var old_ie = ua.indexOf('MSIE ');
var new_ie = ua.indexOf('Trident/');
if ((old_ie > -1) || (new_ie > -1)) {
document.getElementById('ie-warn').style.display = "block"
}
</script>
</body>
</html>