We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d91164 commit ecbed67Copy full SHA for ecbed67
1 file changed
latest.html
@@ -16,6 +16,11 @@
16
return res.json();
17
})
18
.then(data => {
19
+ data.sort((a, b) => {
20
+ b1 = !a.includes("beta"); b2 = !b.includes("beta")
21
+ if (b1 ^ b2) return b2 - b1 // boolean subtraction
22
+ return b.split("_").at(-1).substring(1) - a.split("_").at(-1).substring(1) // string subtraction
23
+ })
24
pdf_url = "https://rawcdn.githack.com/Minecraft-Java-Edition-Speedrunning/rules/main/pub/pdf/" + data.at(-1).name
25
link = document.getElementById("githack")
26
link.href = link.innerText = pdf_url
@@ -32,3 +37,4 @@ <h2 id="js">This site requires JavaScript!</h2>
32
37
33
38
</html>
34
39
40
+
0 commit comments