-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (58 loc) · 1.44 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
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>じゃんけんゲーム</title>
<meta name="description" content="じゃんけんを単にWeb上で表したゲーム" />
<meta property="og:title" content="じゃんけんゲーム" />
<meta property="og:description" content="じゃんけんを単にWeb上で表したゲーム" />
<style>
.result {
font-size: 24px;
margin-top: 20px;
}
button {
width: 10em;
height:10em;
text-align: center;
top: 200%;
margin-right: 30px;
margin-left: 25px;
}
.botton {
font-size: 100%;
}
body {
margin-bottom:100cap;
text-align: center;
}
h1 {
margin-bottom: 100px;
text-align: center;
}
.popup {
font: 100px;
text-align: center;
}
#overlay {
background-color: black;
}
#overlay.active {
opacity: 0.7;
visibility: visible;
}
</style>
</head>
<body>
<h1>じゃんけんゲーム</h1>
<button onclick="playGame('グー')" id="botton">✊</button>
<button onclick="playGame('パー')" id="botton">✋</button>
<button onclick="playGame('チョキ')" id="botton">🏹</button>
<div class="popup" id="popup">
<p id="popupText"></p>
<div class="result" id="result"></div>
<div class="result" id="consecutiveWins"></div>
<script src="script.js"></script>
</body>
</html>