diff --git a/SwichGIT/src/HighscoreBD b/SwichGIT/src/HighscoreBD
deleted file mode 100644
index 608fd89..0000000
Binary files a/SwichGIT/src/HighscoreBD and /dev/null differ
diff --git a/SwichGIT/src/ajouterScore.php b/SwichGIT/src/ajouterScore.php
deleted file mode 100644
index 5f12ee1..0000000
--- a/SwichGIT/src/ajouterScore.php
+++ /dev/null
@@ -1,13 +0,0 @@
-query($requete);
-if (isset($resultat)) echo "1\n";
diff --git a/SwichGIT/src/connexionBD.php b/SwichGIT/src/connexionBD.php
deleted file mode 100644
index 1cb275e..0000000
--- a/SwichGIT/src/connexionBD.php
+++ /dev/null
@@ -1,8 +0,0 @@
-open('HighscoreBD');
- }
-}
\ No newline at end of file
diff --git a/SwichGIT/src/css/PageDaccueil.css b/SwichGIT/src/css/PageDaccueil.css
index 66ddaa6..c39fc40 100644
--- a/SwichGIT/src/css/PageDaccueil.css
+++ b/SwichGIT/src/css/PageDaccueil.css
@@ -488,50 +488,3 @@ opacity:0;
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 2ff200f..dd5659b 100644
--- a/SwichGIT/src/index.php
+++ b/SwichGIT/src/index.php
@@ -28,32 +28,6 @@ require("ConnexionBDD.php");
-
-
-
@@ -749,92 +723,6 @@ require("ConnexionBDD.php");
-
-
-
Classement - Timer
-
- query($requete2);
- $row = array();
- $i = 0;
-
- while ($ligne2 = $resultat2 -> fetchArray() ) {
- $i++;
- $pos = "nopodium";
- $isLast = "";
- if($i == 1){
- $pos = "first";
- }else if($i == 2){
- $pos = "second";
- }else if($i == 3){
- $pos = "third";
- }
-
- if($i > 5){
- $isLast = "last";
- }
- ?>
-
-
" data-description="Score obtenu le ...">
-
-
-
-
-
-
-
-
-
-
-
-
Classement - Match à Point
-
- query($requete2);
- $row = array();
- $i = 0;
-
- while ($ligne2 = $resultat2 -> fetchArray() ) {
- $i++;
- $pos = "nopodium";
- $isLast = "";
- if($i == 1){
- $pos = "first";
- }else if($i == 2){
- $pos = "second";
- }else if($i == 3){
- $pos = "third";
- }
-
- if($i > 5){
- $isLast = "last";
- }
- ?>
-
-
" data-description="Score obtenu le ...">
-
-
-
-
-
-
-
-
-
-
-

diff --git a/SwichGIT/src/js/main.js b/SwichGIT/src/js/main.js
index 6f8105f..6fcca8e 100644
--- a/SwichGIT/src/js/main.js
+++ b/SwichGIT/src/js/main.js
@@ -166,25 +166,6 @@ function modePrec() {
}
}
- var table1 = document.getElementById('table_HS_Timer');
- var table2 = document.getElementById('table_HS_Match');
-
- if(selectionMode == 0) {
- table1.style.visibility = "hidden";
- table2.style.visibility = "visible";
- }
- if(selectionMode == 1) {
- table1.style.visibility = "visible";
- table2.style.visibility = "hidden";
- }
- if(selectionMode == 2) {
- table1.style.visibility = "hidden";
- table2.style.visibility = "hidden";
- }
- if(selectionMode == 3) {
- table1.style.visibility = "hidden";
- table2.style.visibility = "hidden";
- }
}
@@ -245,26 +226,6 @@ function modeSuiv() {
}
}
- var table1 = document.getElementById('table_HS_Timer');
- var table2 = document.getElementById('table_HS_Match');
-
- if(selectionMode == 0) {
- table1.style.visibility = "hidden";
- table2.style.visibility = "visible";
- }
- if(selectionMode == 1) {
- table1.style.visibility = "visible";
- table2.style.visibility = "hidden";
- }
- if(selectionMode == 2) {
- table1.style.visibility = "hidden";
- table2.style.visibility = "hidden";
- }
- if(selectionMode == 3) {
- table1.style.visibility = "hidden";
- table2.style.visibility = "hidden";
- }
-
}
function dimensionPrec() {
@@ -2682,11 +2643,11 @@ function rechercheAide() {
if (deckPartie.length < 16 && comb == 0) {
if (!modelangue) {
window.alert("Fin de partie !");
- document.getElementById("HighscorePage").style.display = "block";
} else {
window.alert("Game Over !");
- document.getElementById("HighscorePage").style.display = "block";
+
}
+ retour();
clearInterval(itv);
} else if (deckPartie.length >= 16 && comb == 0) {
lesPoints += 5;
@@ -2746,13 +2707,14 @@ function decompte() {
if (cpt == 0) {
if(!modelangue){
window.alert("fin du jeu");
- document.getElementById("HighscorePage").style.display = "block";
+
}
else{
window.alert("Game Over");
- document.getElementById("HighscorePage").style.display = "block";
+
}
-
+ retour();
+ window.location.reload();
clearInterval(itv);
}
@@ -3186,8 +3148,8 @@ function functionLange(){
document.getElementById('textjouerr').innerHTML = 'JOUER';
//Traduction classement
- document.getElementById('classementtxtTimer').textContent = 'Classement - Timer';
- document.getElementById('classementtxtMatch').textContent = 'Classement - Match à Point';
+ //document.getElementById('classementtxtTimer').textContent = 'Classement - Timer';
+ //document.getElementById('classementtxtMatch').textContent = 'Classement - Match à Point';
//Traduction paramètres
document.getElementById('SettingName').textContent = 'Paramètres';
@@ -3208,8 +3170,8 @@ function functionLange(){
document.getElementById('textjouerr').innerHTML = 'PLAY';
//Traduction classement
- document.getElementById('classementtxtTimer').textContent = 'Ranking - Timer';
- document.getElementById('classementtxtMatch').textContent = 'Ranking - Point Match';
+ //document.getElementById('classementtxtTimer').textContent = 'Ranking - Timer';
+ //document.getElementById('classementtxtMatch').textContent = 'Ranking - Point Match';
//Traduction paramètres
document.getElementById('SettingName').textContent = 'Settings';
@@ -3224,31 +3186,3 @@ function functionLange(){
}
}
-
-function recuphighscore(){
- var nom = document.getElementById('nom').value;
-
- var score = lesPoints;
- $.ajax({
- type: "POST",
- url: "ajouterScore.php",
- data: {
- score : score,
- nom: nom,
- modeJeu : selectionMode
- },
- success: function(data){
- if(data == 1)
- alert("requête effectuée ");
- else
- alert("retapez votre nom svp");
- }
- });
-
-}
-
-function reloadAfterHS(){
- retour();
- window.location.reload();
-
-}