-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (82 loc) · 2.87 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Multiplayer Rock Paper Scissors</title>
<meta name="viewport" content="width=400">
<!-- MEYERWEB RESET CSS -->
<link rel="stylesheet" href="./assets/css/reset.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="./assets/css/style.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-134646521-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-134646521-1');
</script>
</head>
<body>
<div>
<h1>Multiplayer Rock, Paper or Scissors</h1>
<form class="player-start">
<p>Please enter your name:</p>
<input id="player-input" class="player" type="text" value='' placeholder="Your name" maxlength="10">
<button class="start">Start</button>
</form>
<div class="game">
<p id="directions-text">Press
<span>r</span> ,
<span>p</span> or
<span>s</span> on your keyboard or the <span>buttons</span> below to start playing!</p>
<div class="results-animated">
<div class="player1">Player 1</div>
<div class="player2">Computer</div>
<div class="left">
<img src="./assets/images/left-s.png">
</div>
<div class="status">READY</div>
<div class="right">
<img src="./assets/images/right-r.png">
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix" style="height: 15px;"></div>
<div class="options">
<a id="rock" class="button" data-option="r">
<img src="./assets/images/option-rock.png">
</a>
<a id="paper" class="button" data-option="p">
<img src="./assets/images/option-paper.png">
</a>
<a id="scissors" class="button" data-option="s">
<img src="./assets/images/option-scissors.png">
</a>
</div>
<div class="results">
<p id="wins"></p>
<p id="losses"></p>
<p id="ties"></p>
</div>
<div id="messaging">
<h5>Online Chat:</h5>
<div class="messages">
</div>
<form id="chat">
<input type="text" id="message-input" name="message-input" value="" placeholder="Send a message">
<a href="#" class="message-send">Send</a>
</form>
</div>
<div class="challenger">
Waiting for Challenger
</div>
</div>
</div>
<!-- jQuery Library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.8.4/firebase.js"></script>
<script src="./assets/js/game.js"></script>
</body>
</html>