-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (156 loc) · 7.6 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="src/css/custom.css">
<!-- Icon -->
<link rel="shortcut icon" type="image/png" href="src/img/favicon.jpg"/>
</head>
<div class="top">
<div class="container">
<nav class="navbar navbar-light navbar-expand-lg">
<span class="align-middle">
<img src="src/img/favicon.jpg" ; style="height:35px">
</span>
<a class="navbar-brand" href="#" style="color:white">RPSLS</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mr-auto">
<li>
</li>
<li class="nav-item">
<a class="nav-link" href="#play" id="play">Play <span class="sr-only">(current)</span></a>
</li>
</ul>
<div class="navbar-nav mx-auto">
<li class="nav-item">
<a>Account:</a>
</li>
<li class="nav-item">
<a id="ethAccount"></a>
</li>
</div>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href=#rules id="rules">Rules</a>
</li>
</ul>
</div>
</nav>
<div class="container" style="height:250px;">
<h2>Rock Paper Scissors</h2>
<h2>Lizard Spock</h2>
<div class="row" id="startMenu">
<div class="col-12 text-center">
<button type="button" class="btn btn-white" id="start">Start a game</button>
</div>
</div>
<div class="row" id="replayMenu" style="display:none">
<div class="col-12 text-center">
<button type="button" class="btn btn-white" id="replay">Replay ?</button>
</div>
</div>
</div>
</div>
<div class="container middle">
<div class="container" id="gameMenu">
<div class="container" style="height:100px">
<div class="row" id="waitMenu" style="display:none">
<div class="col-4 my-auto" style="text-align:right">
<img src="src/img/loader.gif" style="height:65px"/>
</div>
<div class="col-8 my-auto" style="text-align:left">
<h3>Waiting for an opponent...</h3>
</div>
</div>
<div class="col-12" id="makeMove" style="display:none">
<h3>Make your move !</h3>
</div>
</div>
<div class="container" id="playMenu">
<div class="row">
<img src="src/img/rps/rock.png" alt="rock" class="move zoom" id="rock" style="position: center;">
</div>
<div class="row" style="padding-top:6%">
<div class="col-3 text-center">
<img src="src/img/rps/paper.png" alt="paper" class="move zoom" id="paper">
</div>
<div class="col-6">
<div class="row" id="results">
<div class="col-12 text-center resultsMenu" id="win" style="padding-top:5%; display:none">
<span class="align-middle" style="color:green">
<img src="src/img/results/win.png" alt="win" style="height:100px">
You WIN!
</span>
</div>
<div class="col-12 text-center resultsMenu" id="loose" style="padding-top:5%; display:none">
<span class="align-middle" style="color:red">
<img src="src/img/results/loose.png" alt="loose" style="height:100px">
You LOOSE!
</span>
</div>
<div class="col-12 text-center resultsMenu" id="draw" style="padding-top:5%; display:none">
<span class="align-middle" style="color:black">
<img src="src/img/results/draw.png" alt="loose" style="height:100px">
It's a draw!
</span>
</div>
<div class="col-12 text-center resultsMenu" id="waitMenuResults"
style="padding-top:5%; display:none">
<div class="row">
<div class="col-4 my-auto" style="text-align:right">
<img src="src/img/loader.gif" style="height:55px"/>
</div>
<div class="col-8 my-auto" style="text-align:left">
<h3>Waiting...</h3>
</div>
</div>
</div>
</div>
</div>
<div class="col-3 text-center">
<img src="src/img/rps/scissors.png" alt="scissors" class="move zoom" id="scissors">
</div>
</div>
<div class="row" style="padding-top:10%">
<div class="col-6" style="padding-left:5%">
<img src="src/img/rps/spock.png" alt="spock" class="move zoom" id="spock">
</div>
<div class="col-6" style="padding-right:5%">
<img src="src/img/rps/lizard.png" alt="lizard" class="move zoom" id="lizard">
</div>
</div>
</div>
</div>
<div class="container" id="rulesMenu" style="display:none">
<h3>Rules of the game</h3>
<div class="row">
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"
crossorigin="anonymous"></script>
<!-- Web3.js -->
<script src="src/js/truffle.js"></script>
<!-- Custom JS -->
<script src="src/js/custom.js"></script>
</html>