-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
180 lines (157 loc) · 7.43 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!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">
<meta name="description" content="Multiplayer or single player Rock, Paper, Scissors game! Or if you're slightly more daring: Rock, Paper, Scissors, Lizard, Spock!">
<title>Rock-Paper-Scissors</title>
<!-- Style Links -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!-- Firebase Reference -->
<script src="https://www.gstatic.com/firebasejs/4.12.0/firebase.js"></script>
<!-- jQuery Reference -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<!-- Link to Moment.js -->
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
</head>
<body>
<!-- WELCOME JUMBOTRON START-->
<div id="welcome-div" class="container mt-5">
<div id="instructions" class="jumbotron shadow">
<h1 class="display-4">Rock Paper Scissors</h1>
<hr class="mb-5">
<div id="mode" class="input-group radio">
<label>
<input type="radio" name="mode" class="mb-4" value="1">Single Player Mode
</label>
<label>
<input type="radio" name="mode" class="mb-4 ml-5" value="2" checked="checked">Two Player Mode
</label>
</div>
<input type="text" class="p-1" id="name-txt" placeholder="John Doe" maxlength="15" autofocus>
<button id="submit-btn" class="btn btn-primary btn-lg">Enter</button>
</div>
</div>
<!-- WELCOME JUMBOTRON END-->
<!-- GAME BOARD START-->
<div id="gameBoard_div" class="container display_none">
<div id="game-style-div" class="card display_none">
<div class="card-header">
<h2>Select Game</h2>
</div>
<div class="card-body">
<button id="rps-btn" class="btn btn-primary mb-2">Rock-Paper-Scissors</button>
<button id="rpslv-btn" class="btn btn-primary mb-2">Rock-Paper-Scissors-Lizard-Spock</button>
</div>
</div>
<div class="row mt-5 text-center">
<div class="col col-lg-12 card-deck">
<div id="player-div" class="card shadow mb-2">
<div class="card-header bg-secondary text-light">
<h2 id="playerName"></h2>
</div>
<div id="player-body-div" class="card-body">
</div>
<div class="card-footer bg-secondary text-light">
<label id="player-wins-label" class=" float-left"></label>
<label id="player-losses-label" class="float-right"></label>
</div>
</div>
<div class="card shadow mb-2">
<div class="card-header bg-secondary text-light">
<h2 id="opponentName"></h2>
</div>
<div class="card-body">
</div>
<div class="card-footer bg-secondary text-light">
<label id="opponent-wins-label" class=" float-left"></label>
<label id="opponent-losses-label" class="float-right"></label>
</div>
</div>
</div>
</div>
<!-- CHAT BEGIN -->
<div class="row mt-3 js_chat">
<div class="col col-lg-12">
<div id="chat-div" class="card">
<table id="messages-table" class="table table-sm table-lg-responsive table-borderless">
<thead class="thead-light">
<tr>
<th>Time</th>
<th>Message</th>
<th>User</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<div class="row mt-2 js_chat">
<div class="col col-lg-8">
<input type="text" id="new-message-txt" class="form-control input-lg" maxlength="100"
placeholder="100 Character message">
</div>
<div class="col col-lg-4">
<button id="message-btn" class="btn btn-primary">Send Message</button>
</div>
</div>
<!-- CHAT END -->
</div>
<!-- GAME BOARD END-->
<!-- Modal -->
<div class="modal" id="results-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenteredLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 id="results-h" class="modal-title" id="exampleModalCenteredLabel">Battle Results</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img id="player-img">
<img id="opponent-img">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- FOOTER START-->
<footer id="pageFooter" class="fixed-bottom bg-dark text-center text-muted">
<ul>
<li class="list-inline-item">
<h4 class="display-5 mt-2">JAVASCRIPT • </h4>
</li>
<li class="list-inline-item">
<h4 class="display-5 mt-2">JQUERY • </h4>
</li>
<li class="list-inline-item">
<h4 class="display-5 mt-2">FIREBASE • </h4>
</li>
<li class="list-inline-item">
<h4 class="display-5 mt-2">HTML/CSS • </h4>
</li>
<li class="list-inline-item">
<h4 class="display-5 mt-2">BOOTSTRAP</h4>
</li>
</ul>
<a href="https://vtchris.github.io/portfolio/" target="_blank" class="btn btn-secondary mb-3 mr-4"><span
class="fa fa-address-card pr-2"></span>Portfolio: Chris Ross</a>
<a href="https://github.com/vtchris/" target="_blank" class="fab fa-github text-muted mr-4"
style="font-size:38px;"></a>
<a href="https://www.linkedin.com/in/chrisross2357/" target="_blank" class="fab fa-linkedin text-muted"
style="font-size:38px;"></a>
</footer>
<!-- FOOTER END-->
<script src="assets/javascript/game.js"></script>
</body>
</html>