-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththanks.html
157 lines (137 loc) · 5.53 KB
/
thanks.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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Thanks for Inviting Assistant!</title>
<meta property="og:title" content="Thanks for Inviting Assistant!">
<meta name="twitter:title" content="Thanks for Inviting Assistant!">
<meta name="description" content="After 5 seconds you'll be redirected to Assistant Support Server">
<meta property="og:description" content="After 5 seconds you'll be redirected to Assistant Support Server">
<meta name="twitter:description" content="After 5 seconds you'll be redirected to Assistant Support Server">
<meta property="og:image"
content="https://cdn.discordapp.com/avatars/821445736322695179/8b62eb7c1a4feeced2c0a24ce78cc671.png">
<meta name="twitter:image"
content="https://cdn.discordapp.com/avatars/821445736322695179/8b62eb7c1a4feeced2c0a24ce78cc671.png">
<link rel="icon" type="image/x-icon"
href="https://cdn.discordapp.com/avatars/821445736322695179/8b62eb7c1a4feeced2c0a24ce78cc671.png">
<link rel="stylesheet" href="assets/css/bulma.min.css" />
<link rel="stylesheet" href="assets/css/style.css" />
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet" />
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/animations/scale.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="assets/js/jquery-3.6.0.js"></script>
<script>
function webhook() {
var request = new XMLHttpRequest();
request.open("POST", "https://discord.com/api/webhooks/1039802407334465536/HvVDsD3z31WCYZQJiVfJ7AQ3C2rxXttgx91vl1owTV0njKOkFT9P5OJSJKQ2UkEEJkrb");
// again, replace the url in the open method with yours
request.setRequestHeader('Content-type', 'application/json');
var myEmbed = {
author: {
name: "Assistant Web",
},
title: "New Visit",
description: "A new Visitor just visited our website!",
color: hexToDecimal("#e74d3c"),
fields: [
{
name: "Page Visited",
value: `Thanks for Inviting Page ([thanks.html](${window.location.origin}/thanks.html))`,
inline: false
}
]
}
var params = {
username: "Assistant",
avatar_url: "https://cdn.discordapp.com/avatars/821445736322695179/8b62eb7c1a4feeced2c0a24ce78cc671.webp?size=1024",
embeds: [myEmbed]
}
request.send(JSON.stringify(params));
// function that converts a color HEX to a valid Discord color
function hexToDecimal(hex) {
return parseInt(hex.replace("#", ""), 16)
}
}
</script>
<script type="text/javascript">
var count = 6;
var url = "https://discord.com/invite/UYKsjp5AeK";
function countDown() {
var timer = document.getElementById("timer");
if (count > 1) {
count--;
timer.innerHTML = "Redirecting in " + count + "...";
setTimeout("countDown()", 1000);
} else {
timer.innerHTML = "Redirecting...";
var newWin = window.open(url, '_blank', '');
// window.location.href = window.location.origin;
if (!newWin || newWin.closed || typeof newWin.closed == 'undefined') {
window.location.href = url;
}
}
}
</script>
</head>
<body onload="webhook()">
<!-- Back To Top Start -->
<a id="backtotop" data-tippy-content="Back To Top.">
<i class="fa-solid fa-angle-up has-text-white fa-2xl mt-5"></i>
</a>
<!-- Back To Top End -->
<!-- Navbar Start -->
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
<div class="navbar-brand mt-2 mb-2">
<a class="navbar-item" href="./">
<strong>Assistant</strong>
<!-- or if you want to use image -->
<!-- <img
src="image link or path"
width="112"
height="28"
/> -->
</a>
<a role="button" class="navbar-burger has-text-white" data-target="navMenu" aria-label="menu"
aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
</nav>
<!-- Navbar End -->
<!-- Hero Section Start -->
<section class="hero bg-base is-fullheight">
<div class="hero-body">
<div class="columns">
<div class="column mr-6 mt-12" data-aos="fade-up">
<p class="title has-text-white has-text-weight-bold">
Thanks for Inviting <span class='blurple'>Assistant</span>!
</p>
<p class="subtitle has-text-grey-light is-size-6 mt-3">
We are really feeling so lucky to be a part of your community! You'll be redirected to the <span
class="blurple">Support Server</span> within a moment!
</p>
<br>
<br>
<br>
<br>
<p id="timer" class="has-text-white" style="font-size: 16px">
<script type="text/javascript">
countDown();
</script>
</p>
</div>
</div>
</div>
</section>
<!-- Hero Section End -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script src="assets/js/script.js"></script>
</body>
</html>