-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (122 loc) · 3.52 KB
/
index.html
File metadata and controls
133 lines (122 loc) · 3.52 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
3<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jokenpô</title>
<style>
body{
background-image: url('https://cdna.artstation.com/p/assets/images/images/002/655/660/medium/alex-zolotarenko-fort.jpg?1464167655');
background-size: cover;
background-position: top center;
background-attachment: fixed;
}
main{
background-color: whitesmoke;
width: 350px;
height: auto;
border-radius: 10px;
box-shadow: 0px 0px 10px orange;
padding: 10px;
margin: 0px auto;
margin-top: 100px;
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: bold;
}
.text{
font-size: 1.2em;
text-shadow:0px 0px 2px blue;
display: block;
}
button{
margin-top: 20px;
margin-bottom: 20px;
padding: 10px;
font-size: 40px;
border: none;
border-radius: 10px;
cursor: pointer;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.541);
}
.pedra{
background-color: green;
}
.pedra:hover{
background-color: rgb(0, 78, 0);
}
.pedra:active{
background-color: rgb(0, 46, 0);
}
.papel{
background-color: blue;
}
.papel:hover{
background-color: rgb(0, 0, 180);
}
.papel:active{
background-color: rgb(0, 0, 105);
}
.tesoura{
background-color: red;
}
.tesoura:hover{
background-color: rgb(163, 0, 0);
}
.tesoura:active{
background-color: rgb(95, 0, 0);
}
p{
background-color: lightgrey;
width: 200px;
margin: 10px auto;
padding: 5px;
border-radius: 5px;
box-shadow: 1px 1px 3px grey;
}
.result{
display: block;
color: purple;
}
.you{
color: blue;
}
.alexa{
color: red;
}
input[type=reset]{
margin-top: 10px;
padding: 5px;
width: 350px;
border-radius: 20px;
border: none;
background-color: rgb(231, 35, 0);
font-size: 1.2em;
font-weight: bolder;
color: white;
cursor: pointer;
}
input[type=reset]:hover{
background-color: rgb(143, 21, 0);
transition-duration: .1s;
}
input[type=reset]:active{
background-color: rgb(87, 13, 0);
}
</style>
</head>
<body>
<main>
<h1>Jokenpô</h1>
<span class="text">Vamos jogar?</span>
<button class="pedra" onclick="playHuman('pedra')">👊</button>
<button class="papel" onclick="playHuman('papel')">🖐</button>
<button class="tesoura" onclick="playHuman('tesoura')">✌</button>
<span class="result"></span>
<p>Sua pontuação: <span class="you">0</span></p>
<p>Pontuação da Alexa: <span class="alexa">0</span></p>
<input type="reset" value="Resetar Game" onclick="resetarGame()">
</main>
</body>
<script src="script.js"></script>
</html>