Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (79 loc) · 2.97 KB
/
Copy pathindex.html
File metadata and controls
86 lines (79 loc) · 2.97 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<meta name="color-scheme" content="light dark" />
<meta name="theme-color" content="#1976d2" />
<meta name="format-detection" content="telephone=no, date=no, address=no, email=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="IP 网络工具" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<title>IP 查询与网络诊断</title>
<meta name="description" content="IP 查询、网站分流、WebRTC 检测、全球 Ping、服务状态和 WHOIS 查询工具。" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<script>
// Classic ES5 script: IE cannot execute the application's module bundle.
(function () {
var root = document.documentElement;
// Fallback only: production must also send frame-ancestors / X-Frame-Options.
if (window.self !== window.top) {
root.className = "embedded-browser";
return;
}
if (document.documentMode || /MSIE|Trident/.test(navigator.userAgent)) {
root.className = "unsupported-browser";
return;
}
try {
var theme = localStorage.getItem("theme") || "system";
var dark = theme === "dark" || (theme !== "light" && window.matchMedia("(prefers-color-scheme: dark)").matches);
root.classList.toggle("dark", dark);
root.style.colorScheme = dark ? "dark" : "light";
["color", "radius", "layout", "font-size"].forEach(function (key) {
var value = localStorage.getItem("ui-" + key);
if (value && value !== "default") root.setAttribute("data-" + key, value);
});
} catch (error) {
// Keep the page usable when browser storage is unavailable.
}
})();
</script>
<style>
html {
touch-action: manipulation;
-webkit-text-size-adjust: 100%;
}
.embedded-browser body {
display: none !important;
}
#unsupported-browser {
display: none;
}
.unsupported-browser #root {
display: none;
}
.unsupported-browser #unsupported-browser {
display: block;
max-width: 640px;
margin: 80px auto;
padding: 24px;
font-family: sans-serif;
line-height: 1.8;
color: #171717;
background: #fff;
}
</style>
</head>
<body>
<div id="unsupported-browser" role="alert">
<h1>不支持 Internet Explorer</h1>
<p>请使用最新版 Microsoft Edge、Google Chrome、Firefox 或 Safari 访问本站。</p>
<a href="https://www.microsoft.com/edge">下载 Microsoft Edge</a>
</div>
<noscript>请启用 JavaScript,并使用现代浏览器访问本站。</noscript>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>