-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.js
33 lines (24 loc) · 1.07 KB
/
app.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
console.clear();
credits();
const splashScreen = document.querySelector('.slide.splash');
const mainPage = document.querySelector('.page.main');
const copyButton = document.querySelector('#copy-button');
async function startPage() {
fadeIn(splashScreen.querySelector('.header-text'), 200);
await sleep(1200);
splashScreen.style.top = '-100vh';
bodyElement.style.overflowY = 'auto';
await sleep(300);
navbar.style.display = 'flex';
mainPage.style.display = 'block';
cursorInner.style.backgroundColor = 'black';
cursorOuter.style.borderColor = 'black';
fadeIn(mainPage.querySelector('.header-text'), 200);
fadeIn(mainPage.querySelector('.header-description'), 500);
fadeIn(copyButton, 600);
}
startPage();
const script = `s=document.createElement('script');s.src='https://cdn.jsdelivr.net/gh/alexlostorto/[email protected]/console/inject.js';document.head.appendChild(s);`;
copyButton.addEventListener('click', () => {
copy(script, copyButton, message='Copied!', initialText='Copy', errorMessage='Failed to copy', delay=1000);
});