-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (106 loc) · 4.18 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
111
112
113
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="author" content="Musa Bagci">
<meta name=escription content="Rock Scissors Paper - Game">
<meta name="keywords" content="HTML, JavaScript, frontend, project">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Scissors Paper - Game</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" /> -->
<link href="https://fonts.googleapis.com/css?family=Amatic+SC:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
<link href="https://fonts.googleapis.com/css?family=Amatic+SC&subset=latin-ext" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/c341fb2337.js"></script>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div class="container">
<h3 class="text-center">
Welcome to the Game <br>
<span class="label label-default btnRock">Rock</span>
<span class="label label-info btnPaper">Paper</span>
<span class="label label-danger btnScissors">Scissors</span>
</h3>
</div>
<div id="js-newGameElement" class="container">
<div class="row text-center">
<button id="js-newGameButton" class="btn btn-default">
New game
</button>
</div>
</div>
<div id="js-playerPickElement" class="container">
<div class="row text-center">
<button class="btn btnOption" data-name="rock">
<span class="badge">
<i class="far fa-hand-rock"></i>
</span>
</button>
<button class="btn btnOption" data-name="paper">
<span class="badge">
<i class="fa fa-hand-paper-o" aria-hidden="true"></i>
</span>
</button>
<button class="btn btnOption" data-name="scissors">
<span class="badge">
<i class="fa fa-hand-scissors-o" aria-hidden="true"></i>
</span>
</button>
</div>
</div>
<div id="js-resultsTableElement" class="container">
<div class="row">
<div class="col-xs-3 text-center">
<span id="js-playerPoints" class="badge">
0
</span>
<br>
<span id="js-playerName">
Player’s name
</span>
</div>
<div class="col-xs-6 text-center">
</div>
<div class="col-xs-3 text-center">
<span id="js-computerPoints" class="badge">
0
</span>
<br>
Computer
</div>
</div>
<div class="row">
<div class="col-xs-3 text-center">
<span id="js-playerPick">
Player’s choice
</span>
</div>
<div class="col-xs-6"></div>
<div class="col-xs-3 text-center">
<span id="js-computerPick">
Computer’s choice
</span>
</div>
</div>
<div class="row">
<div class="col-xs-3 text-center">
<span id="js-playerResult">
Player’s score
</span>
</div>
<div class="col-xs-6"></div>
<div class="col-xs-3 text-center">
<span id="js-computerResult">
Computer’s score
</span>
</div>
</div>
</div>
<script type="text/javascript" src="js/scripts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
</body>
</html>