-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (62 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">
<title>Rock-Paper-Scissors</title>
</head>
<style>
body {
background-color: #f8fff8;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* github system font stack */
font-size: xx-large;
text-align: center;
}
div {
margin-top: 3em;;
}
.button {
padding: 1em;
margin: 0 1.2em;
min-width: 4em;
border: none;
border-radius: 22px;
background: linear-gradient(145deg, #ffffff, #dfe6df);
box-shadow: 7px 7px 14px #636663,
-7px -7px 14px #ffffff;
font-size: xx-large;
transition: all .12s ease-in-out;
}
.button:active {
background: linear-gradient(145deg, #dfe6df, #ffffff);
}
.button:hover {
transform: scale(1.05);
}
span {
display: block;
font-size: small;
}
</style>
<body>
<div id="score">Player-Computer: 0-0</div>
<div class="player_selection">
<button id="rock" class="button">
✊
<span>Rock</span>
</button>
<button id="paper" class="button">
✋
<span>Paper</span>
</button>
<button id="scissors" class="button">
✌
<span>Scissors</span>
</button>
</div>
<div id="message">
Click on one of the three buttons to start a game.<br>
First to get to 5 points wins the game.
</div>
</body>
<script src="script.js"></script>
</html>