-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphase2.html
More file actions
100 lines (85 loc) · 2.17 KB
/
phase2.html
File metadata and controls
100 lines (85 loc) · 2.17 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
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
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Computer Graphics Project</title>
<link rel="shortcut icon" href="favicon_io/favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Raleway&display=swap" rel="stylesheet">
<script type="importmap">
{
"imports": {
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/"
}
}
</script>
</head>
<body style="overflow: hidden;">
<div>
<script type="module" src="js/mainLevel2.js"></script>
<dialog id="winner">
<h2>Congratulations!</h2>
<h5>You won</h5>
<button id="playAgain">Play again</button>
</dialog>
</div>
<div>
<script type="module" src="js/mainLevel2.js"></script>
<dialog id="loser">
<h2>Game Over!</h2>
<button id="playAgainLoser">Play again</button>
</dialog>
</div>
</body>
<style>
body {
margin: 0;
overflow: hidden;
}
#loser,
#winner {
border: 3px solid black;
border-radius: 5px;
background: white;
box-shadow: 8px 8px 0 rgb(57, 57, 68);
}
h2 {
font-family: 'Raleway', sans-serif;
letter-spacing: 5px;
word-spacing: 10px;
text-transform: uppercase;
text-align: center;
justify-content: center;
color: black;
}
h5 {
font-family: 'Raleway', sans-serif;
letter-spacing: 5px;
word-spacing: 10px;
color: black;
text-align: center;
justify-content: center;
}
#playAgain,
#playAgainLoser {
font-family: 'Raleway', sans-serif;
background: white;
padding: 0.8rem 33%;
border: 3px solid rgb(57, 57, 68);
box-shadow: 0 0 0 rgb(57, 57, 68);
transition: all 0.2s;
}
#playAgain:hover,
#playAgainLoser:hover {
box-shadow: 0.4rem 0.4rem 0 rgb(57, 57, 68);
transform: translate(-0.4rem, -0.4rem);
}
#playAgain:active,
#playAgainLoser:hover {
box-shadow: 0 0 0 rgb(57, 57, 68);
transform: translate(0, 0);
}
</style>
</body>
</html>