|
|
|
@ -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();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|