-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (85 loc) · 3.56 KB
/
index.html
File metadata and controls
92 lines (85 loc) · 3.56 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
<!DOCTYPE html>
<html lang="en-CA">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RPS Multiplayer</title>
<link rel="stylesheet" href="assets/css/reset.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<script defer src="https://use.fontawesome.com/releases/v5.0.7/js/all.js"></script>
</head>
<body>
<main>
<section class="section">
<div class="container">
<h1 id="title" class="title has-text-centered">
Rock! Paper! Scissors!
</h1>
</div>
<div id="start-form" class="columns is-centered">
<div class="column is-2">
<div class="field has-text-centered">
<label class="label">Name</label>
<div class="control">
<input id="player-name" class="input" type="text" placeholder="Enter">
</div>
<div class="level-item">
<div class="control">
<button id="start-button" class="button is-success">Start</button>
</div>
</div>
</div>
</div>
</div>
<div id="game-board" class="columns is-centered is-invisible">
<div class="column is-4 has-text-centered">
<h2 id="player-one-name">Player 1</h2>
<figure class="image">
<i id="player-one-choice" class="fas fa-camera-retro fa-10x is-invisible"></i>
</figure>
<div id="player1-selectors" class="level is-invisible">
<div class="level-item player-img-sel">
<figure class="image player-img" data-choice="rock">
<i class="fas fa-hand-rock fa-5x"></i>
</figure>
<figure class="image player-img" data-choice="paper">
<i class="fas fa-hand-paper fa-5x"></i>
</figure>
<figure class="image player-img" data-choice="scissors">
<i class="fas fa-hand-scissors fa-5x"></i>
</figure>
</div>
</div>
</div>
<div class="column is-4 has-text-centered">
<h2 id="player-two-name">Player 2</h2>
<figure class="image">
<i id="player-two-choice" class="fas fa-camera-retro fa-10x is-invisible"></i>
</figure>
<div id="player2-selectors" class="level is-invisible">
<div class="level-item player-img-sel">
<figure class="image player-img" data-choice="rock">
<i class="fas fa-hand-rock fa-5x"></i>
</figure>
<figure class="image player-img" data-choice="paper">
<i class="fas fa-hand-paper fa-5x"></i>
</figure>
<figure class="image player-img" data-choice="scissors">
<i class="fas fa-hand-scissors fa-5x"></i>
</figure>
</div>
</div>
</div>
</div>
</section>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.1.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.1.0/firebase-database.js"></script>
<!-- External JavaScript -->
<script src="assets/javascript/game.js"></script>
</main>
</body>
</html>