-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathscript.js
More file actions
56 lines (44 loc) · 1.84 KB
/
script.js
File metadata and controls
56 lines (44 loc) · 1.84 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
function viewGames() {
window.location.href = './games/';
}
function selectMirror() {
window.location.href = './mirror-links/';
}
// Social Links
function openTravesty() {
alert("If you have not made an account yet, please register and wait for your email. (Emails are not automatically sent; be patient.)");
alert("If you do have an account, you can use the code 'HihZIYHe' to join the server. (Press the + button on the main page when signed into Travesty.)");
var travestyLink = "https://travesty.chat/";
var travestyPopup = window.open(travestyLink);
if (!travestyPopup) {
alert("Popup was blocked. Redirecting this page to Travesty's signup page.");
window.location.href = travestyLink;
}
}
function openGithub() {
var githubLink = "https://github.com/HolyMythicalMan/Ludos";
var githubPopup = window.open(githubLink);
if (!githubPopup) {
alert("Popup was blocked. Redirecting this page to the GitHub page.");
window.location.href = githubLink;
}
}
function openYoutube() {
var youtubeLink = "https://www.youtube.com/channel/UC4Q8wDUTgA1aXQM0D-fi0YQ/";
var youtubePopup = window.open(youtubeLink);
if (!youtubePopup) {
alert("Popup was blocked. Redirecting this page to the YouTube page.");
window.location.href = youtubeLink;
}
}
function openRumble() {
var rumbleLink = "https://rumble.com/user/HolyMythicalMan/";
var rumblePopup = window.open(rumbleLink);
if (!rumblePopup) {
alert("Popup was blocked. Redirecting this page to the Rumble page.");
window.location.href = rumbleLink;
}
}
window.addEventListener("load", () => {
new ServerEmbed(document.getElementById("embed"), "35%").ping("wss://mc.theludos.com", "The EagMP" , "true" , "" , "hideCracked");
});