-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_character.html
98 lines (82 loc) · 1.91 KB
/
test_character.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<title>Only UP!</title>
<style>
body {
margin: 0; /* Reset the default margin */
padding: 0; /* Reset the default padding */
overflow: hidden; /* Hide any overflow, preventing scrollbars */
}
canvas {
display: block; /* Make the canvas a block element */
width: 100%; /* Fill the entire width of the available space */
}
#timer-container {
position: absolute;
top: 10px;
right: 10px;
background-color: rgba(255, 255, 255, 0.7);
padding: 10px;
border-radius: 5px;
font-size: 24px;
font-family: "Comic Sans MS", cursive;
z-index: 1;
}
.alert {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: #f44336; /* Red background color */
color: white;
padding: 10px;
text-align: center;
}
.show {
display: block;
animation: slideDown 0.5s ease-in-out;
}
.show2 {
display: block;
animation: slideDown 0.5s ease-in-out;
}
.finish{
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: #006900; /* Red background color */
color: white;
padding: 10px;
text-align: center;
}
.show3 {
display: block;
}
@keyframes slideDown {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(0);
}
}
</style>
</style>
<script type="module" src="test_character.js"></script>
</head>
<body>
<div class="alert" id="autoClosingAlert">
First Checkpoint!
</div>
<div class="alert" id="autoClosingAlert2">
Second Checkpoint!
</div>
<div class="finish" id="finish">
YOU WIN!
</div>
</body>
</html>