mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2026-09-15 09:31:11 +08:00
修复部分页面重定向可能失效的问题 (#285)
This commit is contained in:
@@ -23,13 +23,14 @@ Can't download? [Click here to download (alternative)](https://alist.8mi.tech/d/
|
||||
|
||||
|
||||
<script>
|
||||
/* 等待 5 秒. */
|
||||
setTimeout(function() {
|
||||
const isZhCN = /^zh-CN/i.test(navigator.language);
|
||||
const url = isZhCN
|
||||
? "https://alist.8mi.tech/d/mirror/ms-jdk/Auto/microsoft-jdk-21-windows-aarch64.msi"
|
||||
: "https://aka.ms/download-jdk/microsoft-jdk-21-windows-aarch64.msi";
|
||||
location.href = url;
|
||||
}, 5000); // Wait 5 seconds
|
||||
}, 5000);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -21,8 +21,9 @@ No redirect? [Click here to start downloading](https://bell-sw.com/pages/downloa
|
||||
|
||||
|
||||
<script>
|
||||
/* 等待 5 秒. */
|
||||
setTimeout(function() {
|
||||
window.location.href = "https://bell-sw.com/pages/downloads/?version=java-21&os=windows&architecture=x86&bitness=32&package=jre-full#:~:text=All%20versions";
|
||||
}, 5000); // 等待 5 秒.
|
||||
}, 5000);
|
||||
</script>
|
||||
|
||||
|
||||
@@ -23,12 +23,13 @@ Can't download? [Click here to download (alternative)](https://alist.8mi.tech/d/
|
||||
|
||||
|
||||
<script>
|
||||
/* 等待 5 秒. */
|
||||
setTimeout(function() {
|
||||
const isZhCN = /^zh-CN/i.test(navigator.language);
|
||||
const url = isZhCN
|
||||
? "https://alist.8mi.tech/d/mirror/ms-jdk/Auto/microsoft-jdk-21-windows-x64.msi"
|
||||
: "https://aka.ms/download-jdk/microsoft-jdk-21-windows-x64.msi";
|
||||
window.location.href = url;
|
||||
}, 5000); // Wait 5 seconds
|
||||
}, 5000);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user