-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
63 lines (56 loc) · 1.7 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" >
<link rel="stylesheet" href="styles.css">
<script src="index.js"></script>
<title>Loading</title>
</head>
<body id="colouring">
<div class="text-center">
CSA <br> WEBSITE
</div>
<div class="body">
<span>
<span></span>
<span></span>
<span></span>
<span></span>
</span>
<div class="base">
<span></span>
<div class="face"></div>
</div>
</div>
<div class="longfazers">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="text1">LAUNCHING SOON</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript">
$('body').click(function(){
$('body').css('background','#' + bgColor());
}) ;
function bgColor()
{
return Math.floor(Math.random()*16777216).toString(16);
}
</script>
<!-- <script>
var colors = ['blue','red', 'coral', 'cyan', 'sky-blue'],
i = 0;
var elementToChange = document.getElementById('colouring');
document.body.addEventListener('click', function(event){
elementToChange.style.backgroundColor = colors[++i];
if (i >= colors.length){
i = 0;
}
});
</script> -->
</body>
</html>