-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
54 lines (41 loc) · 1.36 KB
/
script.js
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
let timeout;
function viewProjects() {
const button = document.querySelector('button');
button.disabled = true;
button.textContent = "Loading Tab...";
timeout = setTimeout(openProjects, 1000);
}
function openProjects() {
window.location.href = './projects/';
}
// Social Links
function openRevolt() {
window.open("https://app.revolt.chat/invite/YPnCttyS/");
}
function openGithub() {
window.open("https://github.com/MythicalTrashcan/");
}
function openYoutube() {
window.open("https://www.youtube.com/channel/UCoXIebdrZPGGMrMYVKQpRLg/");
}
function openAbout() {
window.location.href = './about-me/';
}
function selectMirror() {
window.location.href = './mirror-links/';
}
window.addEventListener("load", () => {
new ServerEmbed(document.getElementById("embed"), "35%").ping("wss://mc.theludos.com", "Myth's EagMP" , "true" , "" , "hideCracked");
});
/* Work on later (eh, not really used in the new setup rn)
/*
var styles = [{ transform: 'scaleX(.95) scaleY(.95) rotate(3deg)' }, { transform: 'scaleX(.95) scaleY(.95) rotate(-3deg)' }];
function changeStyle() {
var randomIndex = Math.floor(Math.random() * styles.length);
var selectedStyle = styles[randomIndex];
var button = document.getElementById('button');
for (var property in selectedStyle) {
button.style[property] = selectedStyle[property];
}
}
*/