-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (33 loc) · 843 Bytes
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Loading Number</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="preloader">
<div class="counter">0</div>
</div>
<section>
<h2>Hi :p<span>uhh games ig for when ur done with work</span></h2>
<p>yay :p ask me for the links</pa>
</section>
<!-- Loading Script -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
function counter(){
var count = setInterval(function(){
var c = parseInt($('.counter').text());
$('.counter').text((++c).toString());
if (c == 100){
clearInterval(count);
$('.counter').addClass('hide')
$('.preloader').addClass('active')
}
},70)
}
counter()
</script>
</body>
</html>