From 86903a305458f55e5cf10396b6c1ccc80aaedf5a Mon Sep 17 00:00:00 2001 From: algolfier Date: Sat, 20 Mar 2021 11:04:53 +0100 Subject: [PATCH] ajout Highscore --- SwichGIT/src/HighscoreBD | Bin 0 -> 12288 bytes SwichGIT/src/ajouterScore.php | 13 +++ SwichGIT/src/connexionBD.php | 8 ++ SwichGIT/src/css/PageDaccueil.css | 44 ++++++++ SwichGIT/src/index.php | 177 ++++++++++++++++++------------ SwichGIT/src/js/main.js | 100 +++++++++++++---- 6 files changed, 249 insertions(+), 93 deletions(-) create mode 100644 SwichGIT/src/HighscoreBD create mode 100644 SwichGIT/src/ajouterScore.php create mode 100644 SwichGIT/src/connexionBD.php diff --git a/SwichGIT/src/HighscoreBD b/SwichGIT/src/HighscoreBD new file mode 100644 index 0000000000000000000000000000000000000000..608fd89d9ad018930690288d71b01983bfa2f128 GIT binary patch literal 12288 zcmeI1zi$&U6vyqHNqv{zy`)i^rfF46l~5}vqWl<;kl+Y`29mTS1yLBPBXO03OAhiw zFoBTRkQkBp1DN0+fE5_n8JG}aWI=4OVJA%#0TL^q_s+iadp`TwpJeg(suzlWSBjmm z-SoQRFo_dN$w?syAuFmHst%2+1{*r+sr^6M3OR5@*zk=+V1vL0y!q1r>_-Af00|%g zB!C2v01`j~NB{{S0VMD*5a`f}^uhwYf3)je3*=hi>{>OqUdfLdkz6J3Zsx_Nd#ach zqp(=AT4D2g*pt1sxa3xHYi?!f(7|P~Q7M$%%9c2v-`a0=YGGT7LV0t))eP(Moa|{w zEU!kQ>HGpEeyc9;bZ!OeM8ECzx?$hn9wpgc9X0j2o@<`A^MN?d69SK+4H8yCz!XHC zx6U)?iSx>N>3ny-s@89=f8p1_H6j5dfCP{L5x=k%`%(wqKQcs=M^u)uMa)7`!L(J!aEy`h+~_-gp#cEMeQV zni{ecG0#-ovaZGhGs04oZ?5Inuc$7Y@-4SqR_nCDQ0M>G)cFh#o!8DgxCbfc6U@PL z=L;N$6R-|TzrX(ae-JJZ2_OL^fCP{L5df_)UHI3g2yCtK8zX(HDo?!Wa+LzFlQMVI?xBEba+=D zNa)mK;y~Oq()u-}4XBy+j!OfM3Z%xA0b8$UQqQ%k3&eDafh=Ib3o`wSDq!k;4K)G% q@&0Uo{s|o(>H$&sNcw8P9=(TJO-l!2qylgwMYRMFQBi9k0Q>-Cpz+WE literal 0 HcmV?d00001 diff --git a/SwichGIT/src/ajouterScore.php b/SwichGIT/src/ajouterScore.php new file mode 100644 index 0000000..5f12ee1 --- /dev/null +++ b/SwichGIT/src/ajouterScore.php @@ -0,0 +1,13 @@ +query($requete); +if (isset($resultat)) echo "1\n"; diff --git a/SwichGIT/src/connexionBD.php b/SwichGIT/src/connexionBD.php new file mode 100644 index 0000000..1cb275e --- /dev/null +++ b/SwichGIT/src/connexionBD.php @@ -0,0 +1,8 @@ +open('HighscoreBD'); + } +} \ No newline at end of file diff --git a/SwichGIT/src/css/PageDaccueil.css b/SwichGIT/src/css/PageDaccueil.css index 36de37b..66ddaa6 100644 --- a/SwichGIT/src/css/PageDaccueil.css +++ b/SwichGIT/src/css/PageDaccueil.css @@ -489,5 +489,49 @@ cursor:pointer; } +#table_HS_Match { + visibility: hidden; +} + +#table_HS_Timer { + visibility: hidden; +} + +#HighscorePage { + display: none; +} + +.nominput { + font: 700 3vh "Poppins", sans-serif; + color: #2B2D2F; +} + +#nom { + font-family: inherit; + font-size: 1vw; + color: black; + padding: 0.8vh 0; + background: transparent; + transition: border-color 0.2s; + margin-left: 1.5vw; + text-align: center; +} +.boutonajouterHS { + font-family: Montserrat, impact, Arial Black; + font-size: 1.5vw; + margin-top: 0.1vw; + color: var(--lightsedonca); + text-align: center; + width: inherit; + background-color: #B130DE; + border-radius: 45px; +} +#score { + visibility: hidden; +} + +#modeJeu { + visibility: hidden; +} \ No newline at end of file diff --git a/SwichGIT/src/index.php b/SwichGIT/src/index.php index f346a1f..2ff200f 100644 --- a/SwichGIT/src/index.php +++ b/SwichGIT/src/index.php @@ -28,6 +28,33 @@ require("ConnexionBDD.php"); +
+
+ +

Nom :


+ +
+ + + + +
+
+ + +