This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
apk.html
55 lines (50 loc) · 1.7 KB
/
apk.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Latest Dantotsu Release</title>
<style>
body {
background-color: black; /* Set background color to black */
color: white; /* Set text color to white */
margin: 0; /* Remove default margin */
padding: 20px; /* Add padding to the content */
font-family: 'Arial', sans-serif; /* Set font family */
}
h1 {
color: yellow; /* Set heading color to yellow */
}
</style>
</head>
<body>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
// Function to fetch latest release information from GitHub API
function getLatestRelease() {
fetch('https://api.github.com/repos/rebelonion/Dantotsu/releases/latest')
.then(response => response.json())
.then(data => {
// Assuming there's only one asset in the release for simplicity
var asset = data.assets[0];
var downloadLink = document.createElement('a');
downloadLink.href = asset.browser_download_url;
downloadLink.download = asset.name;
downloadLink.click();
})
.catch(error => console.error('Error fetching latest release:', error));
}
// Call the function when the page loads
window.onload = function() {
getLatestRelease();
};
</script>
</body>
</html>