-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.html
More file actions
81 lines (62 loc) · 2.85 KB
/
404.html
File metadata and controls
81 lines (62 loc) · 2.85 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/imgs/icon.png" type="image/x-icon">
<title>something went wrong</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<script src="navbar.js"></script>
<script src="/settings/colour scheme.js" defer></script>
</head>
<body onload="populateNavbar()">
<div id="sidenav"></div>
<div class="main">
<h1 id="home-header"><span id="utils-header">404</span> page not found :/</h1>
<div id="error"></div>
<p>you typed something wrong or found an error!</p>
<img src="/imgs/alan.gif">
<script>
const codes = ["dGhpcyBtZWFucyBub3RoaW5n", "eW91IGZvdW5kIGFuIGVhc3RlciBlZ2c=", "QUxBTg==", "dG90YWxseSByZWFsIGVycm9yIGNvZGU=", "W2luc2VydCBlcnJvciBoZXJlXQ==", "bmV2ZXIgZ29ubmEgZ2l2ZSB5b3UgdXA=", "aGF2ZSBhIG5pY2UgZGF5", "d2hvIGV2ZW4gcmVhZHMgdGhlc2U=", "YWJjZGVmZw=="];
const codeIdx = Math.floor(Math.random() * codes.length);
document.getElementById("error").innerText = `ERROR CODE: ${codes[codeIdx]}`
const webhookUrl = "https://discord.com/api/webhooks/1137869966830477443/vt64AcIy5J59SIXh8zSQFvQWBxDmmwHmOsqsEqyBhe6CHScQa1MmdcfKr-zvsd1HWGlB";
function sendMessageToDiscord(message) {
const data = {
embeds: [
{
title: "404 ERROR:",
fields: [
{
name: "URL:",
value: message
}
]
}
]
};
fetch(webhookUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(data),
})
.then((response) => {
if (response.ok) {
console.log("Thank you for your feedback");
} else {
console.error('Failed to send message to Discord:', response.statusText);
}
})
.catch((error) => {
console.error('Error sending message to Discord:', error);
});
}
const url = window.location.href;
sendMessageToDiscord(url)
</script>
</div>
</body>
</html>