-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (59 loc) · 2.39 KB
/
index.html
File metadata and controls
60 lines (59 loc) · 2.39 KB
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
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minecraft Java Web Installer</title>
<style>
@font-face {
font-family: 'CustomFont';
src: url('font.ttf') format('truetype');
}
body {
font-family: 'CustomFont', sans-serif;
text-align: center;
padding: 50px;
margin: 0; /* Remove default margin */
background: url('background.png') no-repeat center center fixed; /* Page background image */
background-size: cover; /* Cover the entire page with the background image */
}
#install-button {
background: url('button.png') no-repeat center center; /* Button background image */
background-size: cover; /* Cover the button area with the background image */
border: none; /* No border */
cursor: pointer; /* Change cursor to pointer */
width: 100px; /* Set the width of the button */
height: 100px; /* Set the height of the button to be the same as the width for a square */
padding: 0; /* Remove padding */
margin: 0; /* Remove margin */
display: inline-flex;
align-items: center;
justify-content: center;
}
#install-button img {
display: none; /* Hide the image element since we are using a background image */
}
</style>
</head>
<body>
<h1>Welcome to My Page</h1>
<p>Install Minecraft Java For iOS Here:</p>
<button id="install-button">
<!-- Hidden image, if needed for accessibility or fallback -->
<img src="button-image.png" alt="Install">
</button>
<script>
document.getElementById('install-button').addEventListener('click', function() {
// Create a temporary link element
var link = document.createElement('a');
link.href = 'configuration.mobileconfig';
link.download = 'configuration.mobileconfig';
// Append the link to the document and trigger a click
document.body.appendChild(link);
link.click();
// Remove the link from the document
document.body.removeChild(link);
});
</script>
</body>
</html>