-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
130 lines (119 loc) · 3.53 KB
/
index.html
File metadata and controls
130 lines (119 loc) · 3.53 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dashboard</title>
<style>
body {
margin: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background: linear-gradient(115deg, rgb(100, 200, 255), rgb(0, 50, 50));
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.card {
background: linear-gradient(115deg, rgba(230, 230, 250, 0.6), rgba(200, 200, 250, 0.6));
padding: 40px;
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
max-width: 600px;
width: 100%;
text-align: center;
}
h1 {
margin-top: 0;
font-size: 1.8rem;
color: #333;
}
.button-group {
margin-top: 25px;
display: flex;
flex-direction: column;
gap: 15px;
}
.action-button {
padding: 14px 20px;
font-size: 1.2rem;
font-weight: 600;
color: #fff;
background-color: #2196F3;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
.action-button:hover {
background-color: #0b7dda;
transform: translateY(-2px);
}
.download-button {
background-color: #2165F3;
}
.download-button:hover {
background-color: #0b4dda;
}
.subtext {
margin-top: 20px;
font-size: 0.9rem;
color: #666;
}
</style>
<script>
function openGameAndRedirect(url, redirectURL) {
let win = window.open("about:blank", "_blank");
if (win) {
let doc = win.document;
let iframe = doc.createElement("iframe");
iframe.style.position = "absolute";
iframe.style.top = "0";
iframe.style.left = "0";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.border = "none";
iframe.src = url;
iframe.setAttribute("allowfullscreen", "true");
iframe.setAttribute("allow", "fullscreen");
doc.body.style.margin = "0";
doc.body.appendChild(iframe);
window.location.href = redirectURL;
}
}
function downloadPage() {
const htmlContent = document.documentElement.outerHTML;
const blob = new Blob([htmlContent], { type: 'text/html' });
const url = URL.createObjectURL(blob);
const downloadLink = document.createElement('a');
downloadLink.href = url;
downloadLink.download = 'cap-launcher.html';
document.body.appendChild(downloadLink);
downloadLink.click();
document.body.removeChild(downloadLink);
URL.revokeObjectURL(url);
}
window.onload = function () {
openGameAndRedirect('https://capprime.evenpixels.com/', 'https://springbranchisd.instructure.com/');
};
</script>
</head>
<body>
<div class="card">
<h1>CAP_PRIME Launcher V2</h1>
<h2>Click the button below to Launch CAP_PRIME</h2>
<h3>!! Different URL !!</h3>
<div class="button-group">
<button class="action-button" onclick="openGameAndRedirect('https://capprime.evenpixels.com/', 'https://springbranchisd.instructure.com/')">
Launch CAP_PRIME
</button>
<button class="action-button download-button" onclick="downloadPage()">
Download Launcher
</button>
</div>
<p class="subtext">
Note: To make it open automatically, and without showing up in your history, please allow pop-ups and redirects in your browser settings.
</p>
</div>
</body>
</html>