-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcancel.html
More file actions
44 lines (42 loc) · 1.39 KB
/
cancel.html
File metadata and controls
44 lines (42 loc) · 1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cancel hamium subscription</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding-top: 100px;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
position: absolute;
}
</style>
</head>
<body>
<h1>Click the button to cancel ur hamium patreon subscription</h1>
<button id="redirectButton" style="top: 50%; left: 50%;">Click Me!</button>
<script>
// nuh uh sk
document.getElementById("redirectButton").addEventListener("mouseover", function() {
var button = document.getElementById("redirectButton");
var bodyRect = document.body.getBoundingClientRect();
var buttonRect = button.getBoundingClientRect();
var newX = Math.random() * (bodyRect.width - buttonRect.width);
var newY = Math.random() * (bodyRect.height - buttonRect.height);
button.style.top = newY + 'px';
button.style.left = newX + 'px';
});
document.getElementById("redirectButton").addEventListener("click", function() {
setTimeout(function() {
window.location.href = "https://www.google.com";
}, 10000);
});
</script>
</body>
</html>