-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (26 loc) · 811 Bytes
/
index.js
File metadata and controls
30 lines (26 loc) · 811 Bytes
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
function navControl() {
document.getElementById("mySidenav").classList.toggle('activeNav');
document.getElementById("rotateMe").classList.toggle('activeRotate');
}
function myFaq() {
document.getElementById('flyMeIn').classList.toggle('faqActive');
}
let onyx = document.getElementById('changemyhref');
let secretVariable = 0;
function myFunction(x) {
if (secretVariable > 4) {
secretVariable = 0;
onyx.href="https://discordapp.com/users/173723461619810304";
onyx.target="_blank"
}
secretVariable = secretVariable + x;
console.log(secretVariable);
if (secretVariable == 5) {
console.log("now click on the name");
onyx.href="subpages/secretpage";
onyx.target="_self"
}
}
function resetVariable() {
secretVariable = 0;
}