Skip to content

Commit 5d538e0

Browse files
committed
为部分下载页启用自动跳转
1 parent db180fa commit 5d538e0

File tree

4 files changed

+16
-28
lines changed

4 files changed

+16
-28
lines changed

src/content/docs/downloads/java.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: 下载 HMCL 和 Minecraft 依赖的 Java
3+
autoRedirect:
4+
delay: 5
5+
text: Java 下载页面
6+
href: https://www.java.com/zh-CN/download
37
lastUpdated: 2022-12-03T17:30:00+08:00
48
---
59

@@ -12,10 +16,3 @@ lastUpdated: 2022-12-03T17:30:00+08:00
1216
You are going to the Java download page. Please click download after redirecting, then wait for the Java installer to finish downloading, finally open the installer and follow the prompts to install Java.
1317

1418
No redirect? [Click here](https://www.java.com/download)
15-
16-
<script>
17-
/* 等待 5 秒. */
18-
setTimeout(function() {
19-
window.location.href = "https://www.java.com/download";
20-
}, 5000);
21-
</script>
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: 下载适用于 macOS ARM64 的 HMCL 和 Minecraft 依赖的 Java
3+
autoRedirect:
4+
delay: 5
5+
text: Java 下载页面
6+
href: https://bell-sw.com/pages/downloads/?version=java-21&os=macos&architecture=arm&package=jre-full&bitness=64#:~:text=All%20versions
37
lastUpdated: 2022-12-03T17:30:00+08:00
48
---
59

@@ -14,10 +18,3 @@ lastUpdated: 2022-12-03T17:30:00+08:00
1418
You are going to the Java download page. Please scroll down and click `DMG` download button, then wait for the Java installer to finish downloading, and finally open the installer and follow the prompts to install Java.
1519

1620
No redirect? [Click here to start downloading](https://bell-sw.com/pages/downloads/?version=java-21&os=macos&architecture=arm&package=jre-full&bitness=64#:~:text=All%20versions)
17-
18-
<script>
19-
/* 等待 5 秒. */
20-
setTimeout(function() {
21-
window.location.href = "https://bell-sw.com/pages/downloads/?version=java-21&os=macos&architecture=arm&package=jre-full&bitness=64#:~:text=All%20versions";
22-
}, 5000);
23-
</script>
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: 下载适用于 macOS x86_64 的 HMCL 和 Minecraft 依赖的 Java
3+
autoRedirect:
4+
delay: 5
5+
text: Java 下载页面
6+
href: https://bell-sw.com/pages/downloads/?version=java-21&os=macos&architecture=x86&package=jre-full&bitness=64#:~:text=All%20versions
37
lastUpdated: 2022-12-03T17:30:00+08:00
48
---
59

@@ -14,10 +18,3 @@ lastUpdated: 2022-12-03T17:30:00+08:00
1418
You are going to the Java download page. Please scroll down and click `DMG` download button, then wait for the Java installer to finish downloading, and finally open the installer and follow the prompts to install Java.
1519

1620
No redirect? [Click here to start downloading](https://bell-sw.com/pages/downloads/?version=java-21&os=macos&architecture=x86&package=jre-full&bitness=64#:~:text=All%20versions)
17-
18-
<script>
19-
/* 等待 5 秒. */
20-
setTimeout(function() {
21-
window.location.href = "https://bell-sw.com/pages/downloads/?version=java-21&os=macos&architecture=x86&package=jre-full&bitness=64#:~:text=All%20versions";
22-
}, 5000);
23-
</script>

src/content/docs/downloads/windows/x86.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: 下载适用于 Windows x86 的 HMCL 和 Minecraft 依赖的 Java
3+
autoRedirect:
4+
delay: 5
5+
text: Java 下载页面
6+
href: https://bell-sw.com/pages/downloads/?version=java-21&os=windows&architecture=x86&bitness=32&package=jre-full#:~:text=All%20versions
37
lastUpdated: 2022-12-03T17:30:00+08:00
48
---
59

@@ -18,10 +22,3 @@ lastUpdated: 2022-12-03T17:30:00+08:00
1822
You are going to the Java download page. Please scroll down and click `MSI` download button, then wait for the Java installer to finish downloading, and finally open the installer and follow the prompts to install Java.
1923

2024
No redirect? [Click here to start downloading](https://bell-sw.com/pages/downloads/?version=java-21&os=windows&architecture=x86&bitness=32&package=jre-full#:~:text=All%20versions)
21-
22-
<script>
23-
/* 等待 5 秒. */
24-
setTimeout(function() {
25-
window.location.href = "https://bell-sw.com/pages/downloads/?version=java-21&os=windows&architecture=x86&bitness=32&package=jre-full#:~:text=All%20versions";
26-
}, 5000);
27-
</script>

0 commit comments

Comments
 (0)