-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
39 lines (38 loc) · 1.13 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
34
35
36
37
38
39
function startQuiz(e){
if(e.target.previousElementSibling.value==""){
alert('Enter name and then start!')
}else{
localStorage.setItem('key',e.target.previousElementSibling.value);
e.target.setAttribute('href','quiz/quiz.html');
}
}
function stratingAnimation(){
let h1 = document.getElementById("heading");
let div = document.getElementById('getData');
let count = 0;
let key = setInterval(() => {
switch(count){
case 0:
count++;
h1.innerText ="Test your Skills.";
break;
case 1:
count++;
h1.innerText ="Test your Skills..";
break;
case 2:
count++;
h1.innerText ="Test your Skills...";
break;
case 3:
count++;
h1.innerText ="Test your Skills";
break;
default:
clearInterval(key);
div.classList.add("show");
div.classList.add("animate__fadeInTopLeft");
}
}, 700);
}
stratingAnimation();