forked from Xiande-zx/PiedraPaperTijera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (96 loc) · 4.99 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="style/style.css">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
<title>Rock, Paper, Scissors | By Marc Bellido</title>
</head>
<body class="container-fluid d-flex-column py-5">
<header>
<div class="d-flex justify-content-between col-md-6 mx-auto border border-3 rounded p-3 ">
<img src="/images/logo.svg" alt="" class="m-2">
<div class="border border-3 rounded px-4 pt-2 bg-white text-center">
<p class="text-primary fw-bold">SCORE</p>
<h1 class="fs-1 fw-bold" id="puntos">0</h1>
</div>
</div>
</header>
<main>
<div id="resultado" class="hide mt-2 mt-md-5">
<div class="d-flex col-md-6 mx-auto justify-content-between flex-column flex-md-row">
<div id="divEleccion" class="col-5 col-md-4 mx-auto text-center">
<h3 class="text-light">Selección</h3>
<div class="rounded-circle icon border-primary mt-n1 hide mx-auto" id="ElePaper">
<img src="/images/icon-paper.svg" alt="" class="center">
</div>
<div class="rounded-circle icon border-warning mt-n1 hide mx-auto" id="EleScissors">
<img src="/images/icon-scissors.svg" alt="" class="center">
</div>
<div class="d-flex justify-content-center">
<div class="rounded-circle icon border-danger hide mx-auto" id="EleRock">
<img src="/images/icon-rock.svg" alt="" class="center">
</div>
</div>
</div>
<div class="hide d-flex-column m-auto text-center text-light my-4 mx-4" id="show">
<h2></h2>
<button type="button" class="btn btn-light btn-lg" id="playAgain">Play Again</button>
</div>
<div id="AIEleccion" class="col-5 col-md-4 mx-auto text-center">
<h3 class="text-light">Selección</h3>
<div class="rounded-circle icon border-primary mt-n1 hide mx-auto" id="AIPaper">
<img src="/images/icon-paper.svg" alt="" class="center">
</div>
<div class="rounded-circle icon border-warning mt-n1 hide mx-auto" id="AIScissors">
<img src="/images/icon-scissors.svg" alt="" class="center">
</div>
<div class="rounded-circle icon border-danger hide mx-auto" id="AIRock">
<img src="/images/icon-rock.svg" alt="" class="center">
</div>
</div>
</div>
</div>
<div class="d-flex col-6 mx-auto icons mt-n1 justify-content-center w-auto" id="eleccion">
<div class="">
<button name="paper" class="rounded-circle icon border-primary mt-n1" id="paper">
<img src="/images/icon-paper.svg" alt="" class="center">
</button>
<button name="piedra" class="rounded-circle icon border-danger col align-self-end" id="piedra">
<img src="/images/icon-rock.svg" alt="" class="center">
</button>
<button name="tijera" class="rounded-circle icon border-warning mt-n1" id="tijera">
<img src="/images/icon-scissors.svg" alt="" class="center">
</button>
</div>
</div>
</main>
<footer class="d-flex col-6 mx-auto justify-content-end flex-column mt-5">
<button type="button" class="btn btn-outline-light w-md-25 align-self-end" data-bs-toggle="modal" data-bs-target="#Rules">
Rules
</button>
<div class="modal fade" id="Rules" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">RULES</h5>
<button type="button" data-bs-dismiss="modal" aria-label="Close"><img src="/images/icon-close.svg" alt=""></button>
</div>
<div class="modal-body">
<img src="/images/image-rules.svg" alt="">
</div>
</div>
</div>
</div>
<div class="attribution mt-5 text-light">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank" class="text-warning">Frontend Mentor</a>.<br>
Coded by <a href="https://www.linkedin.com/in/marc-bellido-dorador/" class="text-warning">Marc Bellido</a>.
</div>
</footer>
<script src="javascript/app.js"></script>
</body>
</html>