|
|
@ -70,17 +70,17 @@ function retour(){
|
|
|
|
//PARTIE SELECTION
|
|
|
|
//PARTIE SELECTION
|
|
|
|
function selectioncarte(lcarte){
|
|
|
|
function selectioncarte(lcarte){
|
|
|
|
lacarte = "card"+ lcarte ;
|
|
|
|
lacarte = "card"+ lcarte ;
|
|
|
|
if(document.getElementById(lacarte).style.border != "")
|
|
|
|
if(document.getElementById(lacarte).style.boxShadow != "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var pos = carteselect.indexOf(lacarte);
|
|
|
|
var pos = carteselect.indexOf(lacarte);
|
|
|
|
carteselect.splice(pos, 1);
|
|
|
|
carteselect.splice(pos, 1);
|
|
|
|
document.getElementById(lacarte).style.border = "";
|
|
|
|
document.getElementById(lacarte).style.boxShadow = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
if(carteselect.length < 5)
|
|
|
|
if(carteselect.length < 5)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
carteselect.push(lacarte);
|
|
|
|
carteselect.push(lacarte);
|
|
|
|
document.getElementById(lacarte).style.border = "2px inset green";
|
|
|
|
document.getElementById(lacarte).style.boxShadow = "0 0 1vw red, 0 0 1vw red";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
window.alert("Bonjour !");
|
|
|
|
window.alert("Bonjour !");
|
|
|
|