重新修订浏览器功能检测
This commit is contained in:
parent
0afcedd170
commit
1ed1c57f07
|
@ -15,13 +15,14 @@
|
|||
{name: "Optional chaining (?.) / 可选链操作符(?.)", version:{firefox:74,chrome:80,safari:13.4}, url: "https://caniuse.com/mdn-javascript_operators_optional_chaining", test: ()=>Boolean(runCodeWithFunction("undefined?.undefined || true"))},
|
||||
{name: "Nullish coalescing operator (??) / 空值合并操作符(??)", version:{firefox:72,chrome:80,safari:13.4}, url: "https://caniuse.com/mdn-javascript_operators_nullish_coalescing", test: ()=>Boolean(runCodeWithFunction("undefined ?? true"))},
|
||||
{name: "BigInt value (1n) / BigInt 数据类型(1n)", version:{firefox:68,chrome:67,safari:14}, url: "https://caniuse.com/bigint", test: ()=>Boolean(runCodeWithFunction("1n"))},
|
||||
// {name: "CSS selector: :is() / CSS选择器: :is()", version:{firefox:78,chrome:88,safari:14}, url: "https://caniuse.com/css-matches-pseudo", test: ()=>supportsPseudoClass(":is()")},
|
||||
{name: "CSS selector: :where() / CSS选择器: :where()", version:{firefox:78,chrome:88,safari:14}, url: "https://caniuse.com/mdn-css_selectors_where", test: ()=>supportsPseudoClass(":where()")},
|
||||
{name: "CSS selector: :not() / CSS选择器: :not()", version:{firefox:84,chrome:88,safari:9}, url: "https://caniuse.com/css-not-sel-list", test: ()=>supportsPseudoClass(":not(html)")},
|
||||
//{name: "CSS selector: :has() / CSS选择器: :has()", version:{firefox:121,chrome:105,safari:15.4}, url: "https://caniuse.com/css-has", test: ()=>supportsPseudoClass(":has(html)")},
|
||||
{name: "Private class fields (#name) / 类私有域(#name)", version:{firefox:90,chrome:74,safari:14.5}, url: "https://caniuse.com/mdn-javascript_classes_private_class_fields", test: ()=>Boolean(runCodeWithFunction("class test {#v = 0;}, true"))},
|
||||
{name: "Dialog element / Dialog 元素", version:{firefox:98,chrome:37,safari:15.4}, url: "https://caniuse.com/dialog", test: ()=>Boolean(window.HTMLDialogElement)},
|
||||
// {name: "Class static initialization blocks / 静态初始化块", version:{firefox:93,chrome:94,safari:16.4}, url: "https://caniuse.com/mdn-javascript_classes_static_initialization_blocks", test: ()=>supportsPseudoClass(":not(html)")},
|
||||
//{name: "Class static initialization blocks / 静态初始化块", version:{firefox:93,chrome:94,safari:16.4}, url: "https://caniuse.com/mdn-javascript_classes_static_initialization_blocks", test: ()=>Boolean(runCodeWithFunction("class test { static { this.staticProperty = true;};}, true"))},
|
||||
{name: "Array.prototype.toSorted()", version:{firefox:115,chrome:110,safari:16.0}, url: "https://caniuse.com/mdn-javascript_builtins_array_tosorted", test: ()=>Boolean(Array.prototype.toSorted)},
|
||||
{name: "Set.prototype.isDisjointFrom()", version:{firefox:127,chrome:122,safari:17.0}, url: "https://caniuse.com/mdn-javascript_builtins_set_isdisjointfrom", test: ()=>Boolean(Set.prototype.isDisjointFrom)},
|
||||
];
|
||||
|
||||
const unsupportFeatures = features.filter(feature=>{
|
||||
|
@ -114,5 +115,4 @@ Please update your browser core to Firefox ≥ ${needBrowserVersion.firefox} or
|
|||
window.removeEventListener(event);
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
})();
|
|
@ -5,12 +5,12 @@
|
|||
<title>智龙急速阵型</title>
|
||||
<link rel="shortcut icon" href="images/icon.png" type="image/x-png" />
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<script type="text/javascript" src="library/core-js.min.js"></script>
|
||||
<script type="text/javascript" src="browser-compatibility.js"></script><!--浏览器版本测试-->
|
||||
<meta name="viewport" content="width=664" />
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
<link href="style-monsterimages.css" rel="stylesheet" type="text/css">
|
||||
<link id="language-css" href="languages/en.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="library/core-js.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
const solo = false;
|
||||
const teamsCount = 2;
|
||||
|
|
|
@ -30215,7 +30215,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"browser-compatibility.js",
|
||||
"13ffac54abcdd4a8135f0352db1e485b"
|
||||
"1c78506fba7e3de6130cdd35438f2244"
|
||||
],
|
||||
[
|
||||
"index.html",
|
||||
|
@ -30223,7 +30223,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"multi.html",
|
||||
"843cdcc9b713e4eb4fd1e43af325397e"
|
||||
"7f22a32b21a75c67f3a87c00b6b10d29"
|
||||
],
|
||||
[
|
||||
"script-custom_elements.js",
|
||||
|
@ -30239,15 +30239,15 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"script-universal_function.js",
|
||||
"97285b342df0095b45fd8c1bfe6040f8"
|
||||
"ca25f0fda84bb0030a2762ce51252f7e"
|
||||
],
|
||||
[
|
||||
"script.js",
|
||||
"d47094e57fce59a6eb2032893d824971"
|
||||
"6dc2f6824dc4cccecf17abf976f1787b"
|
||||
],
|
||||
[
|
||||
"solo.html",
|
||||
"99e0b0f844d6b57119a1e87b73313329"
|
||||
"402560775ce1f80ec5b54375d916b53a"
|
||||
],
|
||||
[
|
||||
"style-monsterimages.css",
|
||||
|
@ -30263,7 +30263,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"triple.html",
|
||||
"596d1bff6d2c26c85d3633d338a62ef7"
|
||||
"ff23d534ebe824b2926dd5f1a46628e5"
|
||||
],
|
||||
[
|
||||
"languages/en.css",
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
<title>智龙急速阵型</title>
|
||||
<link rel="shortcut icon" href="images/icon.png" type="image/x-png" />
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<script type="text/javascript" src="library/core-js.min.js"></script>
|
||||
<script type="text/javascript" src="browser-compatibility.js"></script><!--浏览器版本测试-->
|
||||
<meta name="viewport" content="width=664" />
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
<link href="style-monsterimages.css" rel="stylesheet" type="text/css">
|
||||
<link id="language-css" href="languages/en.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="library/core-js.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
const solo = true;
|
||||
const teamsCount = 1;
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
<title>智龙急速阵型</title>
|
||||
<link rel="shortcut icon" href="images/icon.png" type="image/x-png" />
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<script type="text/javascript" src="library/core-js.min.js"></script>
|
||||
<script type="text/javascript" src="browser-compatibility.js"></script><!--浏览器版本测试-->
|
||||
<meta name="viewport" content="width=756" />
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
<link href="style-monsterimages.css" rel="stylesheet" type="text/css">
|
||||
<link id="language-css" href="languages/en.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="library/core-js.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
const solo = false;
|
||||
const teamsCount = 3;
|
||||
|
|
Loading…
Reference in New Issue