-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
348 lines (233 loc) · 12.4 KB
/
index.php
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title> Blindly </title>
<scss> </scss>
<link rel="text/css" href="css/bootstrap.min.cs">
<link rel="stylesheet" href="Index/style.css">
<link rel="stylesheet" href="css/bootstrap.css">
<script src="code.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
</script>
</head>
<body class="body bg-dark">
<!-- <script>
const validationInput = document.querySelector('input');
validationInput.addEventListener('input',(e) => {
if(validationInput.value.length >= 3){
validationInput.style.borderColor = "green";
} else {
validationInput.style.borderColor = "red";
}
})
</script> -->
<header class="container-fluid header">
<ul class="nav justify-content-end">
<img id="icon" type="button" class="son" src="/Images/logo sound 1.png" onclick="playVid()" width="30px">
</ul>
<audio id="MySong" src="/songs/Land – MusicbyAden (No Copyright Music).mp4" type="audio/mp4" autoplay loop>
</audio>
<script>
let son = document.getElementById("MySong");
let icon = document.getElementById("icon");
son.volume = 0.050;
function playVid() {
if (son.paused) {
son.play();
icon.src = "/Images/logo sound 1.png";
} else {
son.pause();
icon.src = "/Images/sound_off.png";
}
}
</script>
</header>
<div class="container" >
<main class="row">
<!-- Colonne 1 -->
<div class="col-md-3 col-xs-1 col-sm-2">
</div>
<!-- Colonne 2 -->
<div class="col-md-6 col-sm-12 col-xs-12 colonne2">
<div class="d-flex flex-column m-2">
<h1 class="text-white text-center blindly text-uppercase fw-bold"> Blind'ly </h1>
<br>
<button type="button" onclick="Init()"
class="btn btn-warning btn-lg button2 text-white fs-4 text-uppercase fw-bold"
data-toggle="modal" data-target="#moda2"> Inscris-toi !</button>
<button type="button" class="btn btn-info btn-lg button2 text-white fs-4 text-uppercase fw-bold"
data-toggle="modal" data-target="#moda1"> Connecte-toi ! </button>
<!-- <a href="/Center/index.php" class="btn invite btn-outline-light btn-lg button2 text-uppercase fw-bold" > Jouer en tant qu'invité !</a> -->
<!-- <form action="oui.php" method="post" onsubmit="return checkInputsInscription()">
<input type="email" id="testmail">
<input type="submit">
</form> -->
<br>
<?php if(isset($_GET['message']) && !(empty($_GET['message']))){
echo " <div class='alert alert-$_GET[type] text-center'>
<strong> ERREUR ! </strong> $_GET[message] </div>";
}
?>
</div>
</div>
<!-- Colonne 3 -->
<div class="col-md-3 col-sm-auto col-xs-1 container">
</div>
</div>
</main>
</div>
<!-- Modal pour inscription -->
<div class="modal fade" id="moda2">
<div class="validation modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<!-- Tete du modal -->
<div class="modal-header">
<h4 class="modal-title"> Inscription </h4>
</div>
<!-- Corp du modal -->
<div class="modal-body row">
<div class="modif col-xxl-5 col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12">
<form class="col" method="post" action="Index/inscription.php" enctype="multipart/form-data" onsubmit="return verifCaptcha()">
<div class="form-group">
<!-- Form group - Aligner de éléments en vertical -->
<label for="email" class="form-control-label"> Email </label>
<input type="email" class="form-control" name="email" id="email"
placeholder="Votre email" autocomplete="off" value="" required>
<br>
<label for="pseudo" class="form-control-label"> Pseudo </label>
<input type="text" class="form-control" name="pseudo" id="pseudo"
placeholder="Votre pseudo">
<br>
<label for="password" class="form-control-label"> Mot de passe </label>
<input type="password" class="form-control" name="password" id="password"
placeholder="Votre mot de passe" autocomplete="off" value="" required>
<br>
<label for="check" class="form-control-label"> Confirmez votre mot de passe </label>
<input type="password" class="form-control" name="check" id="check"
placeholder="Vérifiez votre de mot de passe" required>
</div>
</div>
<div class="col-1">
</div>
<div id="capcha" class="col-xxl-6 col-5 col-xl-6 col-lg-5 col-md-5 col-sm-5 col-xs-5">
<div class="box_inside row">
<div class="col-sm-12 col-md-12">
<div id="products">
<div class="row">
<div class="col-3">
<div class="booga">
<img id="rectangle" class="check" onclick="check1()" src=""
width="70px">
</div>
<div class="booga">
<img id="rectangle1" class="check" onclick="check2()" src=""
width="70px">
</div>
<div class="booga">
<img id="rectangle2" class="check" onclick="check3()" src=""
width="70px">
</div>
</div>
<div class="col-3">
<div class="booga">
<img id="rectangle3" class="check" onclick="check4()" src=""
width="70px">
</div>
<div class="booga">
<img id="rectangle4" class="check" onclick="check5()" src=""
width="70px">
</div>
<div class="booga">
<img id="rectangle5" class="check" onclick="check6()" src=""
width="70px">
</div>
</div>
<div class="col-3">
<div class="booga">
<img id="rectangle6" class="check" onclick="check7()" src=""
width="70px">
</div>
<div class="booga">
<img id="rectangle7" class="check" onclick="check8()" src=""
width="70px">
</div>
<div class="booga">
<img id="rectangle8" class="check" onclick="check9()" src=""
width="70px">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="d-grid gap-2 invisible validation2 exel row">
<button id="vogue" type="button" class="btn btn-outline-success">
Capcha Validé !
</button>
</div>
<div class="d-grid gap-2 visible parent_verif">
<button type="button" class="btn verif btn-outline-danger" onclick="verif()">
Vérification du capcha
</button>
</div>
</div>
<br>
<div class="d-grid gap-2">
<button type="submit" class="btn-dark btn-lg inscription" data-mdb-ripple-color="dark">
S'INSCRIRE
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modal pour connexion -->
<div class="modal fade" id="moda1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<!-- Tete du modal -->
<div class="modal-header">
<h4 class="modal-title"> Connexion </h4>
</div>
<!-- Corp du modal -->
<div class="modal-body">
<form class="col" action="Index/connexion.php" method="post" enctype="multipart/form-data">
<label for="email" class="form-control-label"> Email </label>
<input type="email" class="form-control" name="email" id="emailConnexion"
placeholder="Votre email">
<br>
<label for="password" class="form-control-label"> Mot de passe </label>
<input type="password" class="form-control" name="password" id="passwordConnexion"
placeholder="Votre mot de passe">
<br>
<a class="text-dark" href="Index/forgotpassword.php">Mot de passe oublié ?</a>
<br>
<br>
<div class="d-grid gap-2">
<input type="submit" class="btn-dark btn-lg" value="Se connecter">
</div>
</div>
</form>
</div>
</div>
</div>
<footer class="container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8 col-sm-12 text-center pied text-white"> Joue au célèbre Blindtest musical avec tes amis
! </div>
<div class="col-md-2"></div>
</div>
</footer>
</body>
</html>