forked from IpshitaChatterjee/Rock-Paper-Scissors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (86 loc) · 3.69 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Rock Paper Scissors</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="assets/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="grid">
<!--the main titles and rules go here-->
<div class="h">
<h2 id="title">◀ ROCK PAPER SCISSORS ▶</h2>
<p class="rules">The rules to this game are easy! <span>Check out <a target="_blank" href="https://en.wikipedia.org/wiki/Rock%E2%80%93paper%E2%80%93scissors"><strong>this</strong></a> link for the basic rules. </span>
</p>
<p class="rules">There will be a total of <strong>5 rounds</strong> to this game, you vs. the Computer!</p>
</div>
<!--the cards and score board go here-->
<div class="c">
<h3 class="subtitle" style="margin-top:20px;">PICK ONE</h3>
<div class="cards">
<div class="card" onclick="rock()" id="rock">
<img src="assets/images/003-rock.png" alt="rock">
<div class="container">
<h4><b>ROCK</b></h4>
</div>
</div>
<div class="card" onclick="paper()" id="paper">
<img src="assets/images/002-paper-plane.png" alt="paper">
<div class="container">
<h4><b>PAPER</b></h4>
</div>
</div>
<div class="card" onclick="scissors()" id="scissors">
<img src="assets/images/001-scissors.png" alt="Scissors">
<div class="container">
<h4><b>SCISSORS</b></h4>
</div>
</div>
</div>
<div class="scores">
<h3 class="subtitle">SCORES</h3>
<table>
<th>
<td><strong>R1</strong></td>
<td><strong>R2</strong></td>
<td><strong>R3</strong></td>
<td><strong>R4</strong></td>
<td><strong>R5</strong></td>
</th>
<tr>
<td><strong>You</strong></td>
<td id="R1Y"> </td>
<td id="R2Y"> </td>
<td id="R3Y"> </td>
<td id="R4Y"> </td>
<td id="R5Y"> </td>
</tr>
<tr>
<td><strong>Computer</strong></td>
<td id="R1C"> </td>
<td id="R2C"> </td>
<td id="R3C"> </td>
<td id="R4C"> </td>
<td id="R5C"> </td>
</tr>
</table>
</div>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<p id="mytext">Some text in the Modal..</p>
<button class="refresh" onclick="refresh()">Play Again</button>
</div>
</div>
</div>
<!--the credits go here-->
<div class="f">
<p><strong>©Ipshita Chatterjee</strong> | 2018</p>
<p id="link">Made for the project that can be found <a href="https://www.theodinproject.com/courses/web-development-101/lessons/rock-paper-scissors" target="_blank">here</a></p>
</div>
</div>
<script src="main.js"></script>
</body>
</html>