-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (81 loc) · 3.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" type="text/css">
<!--BOOTSTRAP-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!--FONT-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital@1&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Oswald&display=swap" rel="stylesheet">
<title>Rock,paper and scissors</title>
</head>
<body>
<div class="container">
<header>
<h1 class="m-3">Rock paper and scissors</h1>
<p class="subtitle fs-2 mb-5">Try to beat the PC playing <span>4 rounds</span>: if you succeed you will be
smarter than him.
</p>
</header>
<section id="choices">
<div class="container-choices d-flex justify-content-center">
<div class="choice rounded"><img id="paper" onclick="startRound(event)" class="button img-fluid"
src="img/paper.png" alt="paper-icon"> </div>
<div class="choice rounded"><img id="rock" onclick="startRound(event)" class=" button img-fluid"
src="img/rock.png" alt="rock-icon"></div>
<div class="choice rounded"><img id="scissors" onclick="startRound(event)" class="button img-fluid"
src="img/scissors.png" alt="scissors-icon"></div>
</div>
</section>
<section id="showSelections">
<div class="choices">
<div>
<h2 class="final-winner yellow"></h2>
</div>
<div>
<h2 id="section-rounds">
<p class="yellow text-decoration-underline">rounds: <span class="num-rounds">0</span></p>
</h2>
<div class="section-head">
<div class="container-sh">
<span class="fs-4">Player:</span>
<h3 class="player-choice white">Click an icon to choice!</h3>
</div>
<div class="container-sh">
<span class="fs-4">PC:</span>
<h3 class="pc-choice white">Pc is waiting...</h3>
</div>
<div class="container-sh"> <span class="fs-4">winner:</span>
<h3 class="result white">If you don't choice,we shouldn't have a winner!</h3>
</div>
</div>
</div>
</div>
<div class="points">
<div>
<p class="white">Player: <span class="point-player">0</span></p>
</div>
<div>
<p class="white">Computer: <span class="point-pc">0</span></p>
</div>
</div>
</section>
<footer>
<p class="subtitle mt-5">Developed by <a class="text-decoration-none" href="https://github.com/bubu2323">
Carolina Tronci</a></p>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script src="index.js"></script>
</body>
</html>