-
Notifications
You must be signed in to change notification settings - Fork 2
/
gameclear.html
112 lines (99 loc) · 3.39 KB
/
gameclear.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<head>
<title>3D Pacman - Game Clear</title>
<link rel="shortcut icon" href="favicon.png">
<!-- 글꼴 적용 -->
<meta charset="utf-8">
<link href="font/fontStyle.css" rel="stylesheet">
<!-- 배경색 적용 -->
<style>
body {
background-color: #000000;
}
</style>
<!-- 여러 가지 적용 -->
<style>
#pacmanImage {
text-align: center;
margin-top: 120px;
width: 100%;
}
#title {
text-align: center;
color: #ffd400;
font-size: 3em;
width: 100%;
}
#subtitle1 {
text-align: center;
color: #ffd400;
font-size: 2.5em;
width: 100%;
}
#subtitle2 {
text-align: center;
color: #2ada2a;
font-size: 1.5em;
width: 100%;
}
#button {
text-align: center;
margin-top: 20px;
width: 100%;
}
.button {
background-color: rgb(122, 241, 92);
border: none;
color: black;
font-family: "bing";
font-size: 30px;
padding: 5px 120px;
text-align: center;
text-decoration: none;
margin-left: 16px;
margin-right: 16px;
cursor: pointer;
}
.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
.button:hover {background-color: tomato}
#madeby {
margin-top: 100px;
text-align: center;
color: #ffffff;
font-size: 0.5em;
width: 100%;
}
</style>
<script>
let getParam = function (key) {
let _parammap = {};
document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
function decode(s) {
return decodeURIComponent(s.split("+").join(" "));
}
_parammap[decode(arguments[1])] = decode(arguments[2]);
});
return _parammap[key];
};
window.onload = function() {
document.getElementById("subtitle2").innerHTML += "<span> Final Score : " + getParam("score") + "</span>"
}
</script>
</head>
<body>
<audio id="audio" autoplay> <source src="./audio/gameclear.mp3"> </audio>
<div id = "pacmanImage"> <img src="image/pacman.png" width = "120px" height = "120px"> </div>
<div id = "title"> <span> Game Clear </span> </div>
<div id = "subtitle1"> <span> Congratulation! </span> </div>
<div id = "subtitle2"></div>
<div id = "button">
<input type = "button" value= "Home" class = "button" onClick="location.href='index.html'"></button>
</div>
<div id = "madeby"> <span> Made by 고지민, 김수현, 박태현, 선민재 </span> </div>
</body>
</html>