forked from codeasashu/hcz-jekyll-blog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlatestdoc.html
24 lines (24 loc) · 974 Bytes
/
latestdoc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Redirecting...</title>
<!--<meta http-equiv="refresh" content="1;url=http://example.com">-->
<script type="text/javascript">
var rawFile = new XMLHttpRequest();
rawFile.open("GET", "https://api.github.com/repos/Discord4J/Discord4J/releases", false);
rawFile.onreadystatechange = function () {
if(rawFile.readyState === 4) {
if(rawFile.status === 200 || rawFile.status == 0) {
var releases = JSON.parse(rawFile.responseText)
window.location.href = "https://jitpack.io/com/github/Discord4J/Discord4j/"+releases[0].tag_name+"/javadoc/";
}
}
}
rawFile.send(null);
</script>
</head>
<body>
If you are not redirected automatically, please enable javascript or follow the <a href='https://discord4j.com/'>link back to the homepage</a>
</body>
</html>