-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (113 loc) · 5.66 KB
/
index.html
File metadata and controls
133 lines (113 loc) · 5.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://www.gstatic.com/firebasejs/4.12.0/firebase.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/sticky-footer.css">
<script src="assets/javascript/app.js"></script>
<title>Rock Paper Scissors</title>
</head>
<body>
<div class="container">
<div class="jumbotron jumbotron bg-info jumbotronImg">
<h1 class="display-4">Rock Paper Scissors</h1>
<p class="lead">A two player game of Rock Paper Scissors awaits you!</p>
</div>
<div class="row">
<div class="col-md"></div>
<div class="col-md">
<form>
<div class="form-group text-center">
<label for="playerName">Player Name</label>
<input type="text" class="form-control" id="inputName">
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary" id="submit">Submit</button>
</div>
</form>
</div>
<div class="col-md"></div>
</div>
<hr>
<div class="row">
<div class="col-md-3">
<div class="card" style="width: 100%">
<div class="card-body text-center">
<h5 class="card-title"><span id="player1Name">Waiting</span>
</h5>
<p class="card-text player1">
<button type="button" class="btn btn-info p-1 choice" data-player=1 id="player1Paper">Paper</button>
<button type="button" class="btn btn-dark p-1 choice" data-player=1 id="player1Rock">Rock</button>
<button type="button" class="btn btn-danger p-1 choice" data-player=1 id="player1Scissors">Scissors</button>
</p>
</div>
<div class="card-footer text-center">
<small class="text-muted"> Wins: <span id="wins1"></span> Losses:<span id="loss1"></span>
Ties: <span id="ties1"></span>
</small>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card-group">
<div class="card" style="width: 100%">
<div class="card-body">
<h5 class="card-title text-center"><span class="text-danger" id="player1Choice"></span>
</h5>
</div>
</div>
<div class="card" style="width: 100%">
<div class="card-body">
<h5 class="card-title text-center"><span class="text-danger" id="player2Choice"></span>
</p>
</h5>
</div>
</div>
</div>
<div class="card" style="width: 100%">
<div class="card-body">
<h5 class="card-title text-center" id="textResults"></h5>
<h5 class="card-title text-center"><span id="playerWins"></span>
</h5>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card" style="width: 100%">
<div class="card-body text-center">
<h5 class="card-title"><span id="player2Name">Waiting</span>
</h5>
<p class="card-text player2" data-player=player2>
<button type="button" class="btn btn-info p-1 choice" data-player=2>Paper</button>
<button type="button" class="btn btn-dark p-1 choice" data-player=2>Rock</button>
<button type="button" class="btn btn-danger p-1 choice" data-player=2>Scissors</button>
</p>
</div>
<div class="card-footer text-center">
<small class="text-muted"> Wins: <span id="wins2"></span> Losses:<span id="loss2"></span>
Ties: <span id="ties2"></span>
</small>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<span class="text-muted">Footers are nice when they stick</span>
</div>
</footer>
</body>
</html>