fix console log
This commit is contained in:
parent
6d849d6bc7
commit
a450d020de
@ -18,14 +18,12 @@ function selection(event) {
|
||||
|
||||
if ((maCase.offsetTop == vide.offsetTop && Math.abs(maCase.offsetLeft - vide.offsetLeft) == 102) ||
|
||||
(maCase.offsetLeft == vide.offsetLeft && Math.abs(maCase.offsetTop - vide.offsetTop) == 102)) {
|
||||
console.log("ok");
|
||||
console.log("Déplacement effectué !");
|
||||
maCase.className = "case vide";
|
||||
var buff = maCase.innerHTML;
|
||||
maCase.innerHTML = "";
|
||||
vide.className = "case";
|
||||
vide.innerHTML = buff;
|
||||
}
|
||||
|
||||
console.log(event.currentTarget.className + " : " + event.currentTarget.innerText);
|
||||
var e = event.target;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user