-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsign.js
More file actions
43 lines (40 loc) · 1.21 KB
/
Copy pathsign.js
File metadata and controls
43 lines (40 loc) · 1.21 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
let b1 = document.getElementById("b1");
let interval;
b1.addEventListener('click', () => {
interval = setTimeout(() => {
window.open("index.html");
}, 3000);
let y = document.createElement('div');
// y.style.height = "400px";
// y.style.width = "700px";
document.querySelector(".login-container").style.display = "none";
document.querySelector("body").appendChild(y);
let f = document.createElement('p');
let m=document.querySelector("#username").value;
f.innerHTML = "Welcome " + m + " LET'S EXPLORE";
f.style.fontSize = "100px";
f.style.color = "linear-gradient(to right, #007bff, #00d4ff)";
f.style.background = "black";
f.style.webkitBackgroundClip = "text";
f.style.color = "transparent";
f.style.animation = "exploreAnimation 3s ease-in-out";
y.appendChild(f);
});
const style = document.createElement('style');
style.innerHTML = `
@keyframes exploreAnimation {
0% {
opacity: 0;
transform: scale(0.5);
}
50% {
opacity: 1;
transform: scale(1.1);
}
100% {
opacity: 1;
transform: scale(1);
}
}
`;
document.head.appendChild(style);