-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.js
103 lines (92 loc) · 3.17 KB
/
scripts.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
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
window.onscroll = function () {
var navbar = document.querySelector(".navbar");
if (window.scrollY > 50) {
navbar.classList.add("scrolled");
} else {
navbar.classList.remove("scrolled");
}
};
document.querySelector('.btn-primary').addEventListener('click', function (e) {
window.location.href = "https://discord.com/invite/d2446gBjfq"; // button "Get Script" link goes to this discord link :p
});
document.querySelectorAll('.faq-question').forEach((question) => {
question.addEventListener('click', function () {
const faqItem = this.parentElement;
const faqAnswer = faqItem.querySelector('.faq-answer');
document.querySelectorAll('.faq-item').forEach((item) => {
if (item !== faqItem) {
item.classList.remove('open');
item.querySelector('.faq-answer').style.maxHeight = null;
item.querySelector('.faq-answer').style.paddingTop = '0';
item.querySelector('.faq-answer').style.paddingBottom = '0';
}
});
faqItem.classList.toggle('open');
if (faqItem.classList.contains('open')) {
faqAnswer.style.maxHeight = faqAnswer.scrollHeight + 'px';
faqAnswer.style.paddingTop = '10px';
faqAnswer.style.paddingBottom = '10px';
} else {
faqAnswer.style.maxHeight = null;
faqAnswer.style.paddingTop = '0';
faqAnswer.style.paddingBottom = '0';
faqAnswer.style.contains = "0";
}
});
});
// Developer info
const developers = {
dev1: {
name: "YellowGreg",
role: "Owner",
description: "Owner of AdvanceFalling Team"
},
dev2: {
name: "Wspboy12",
role: "Web Designer & Developer",
description: "2nd Oldest Developer for AdvanceFalling Team"
},
dev3: {
name: "MMSVon",
role: "Head Developer",
description: "3rd Oldest Developer for AdvanceFalling Team"
},
dev4: {
name: "ShadowClark",
role: "Web Developer",
description: "Helps creates the websites."
},
dev5: {
name: "Frostbite",
role: "Head Developer",
description: "I love Elaina"
},
dev6: {
name: "Objectfigure",
role: "Developer",
description: "Checks if theres any security flaws in our website (rare case)."
},
dev7: {
name: "Buffer",
role: "Developer",
description: "Random Developer we hired."
},
dev8: {
name: "Fernishb",
role: "Developer",
description: "Random Developer we hired but he's chill."
},
};
function Dev_Details(devId) {
const dev = developers[devId];
const modalContent = `
<h2>${dev.name}</h2>
<p><strong>Role:</strong> ${dev.role}</p>
<p>${dev.description}</p>
`;
document.getElementById("developer-details").innerHTML = modalContent;
document.getElementById("developerModal").style.display = "flex";
}
function closeModal() {
document.getElementById("developerModal").style.display = "none";
}