From a450d020def4c447ccbd4ba6dcddcb3e8031adc1 Mon Sep 17 00:00:00 2001 From: JunkJumper Date: Wed, 19 Feb 2020 17:25:24 +0100 Subject: [PATCH] fix console log --- TD3/js/td3-exo1.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TD3/js/td3-exo1.js b/TD3/js/td3-exo1.js index 1e74a61..d574b6c 100644 --- a/TD3/js/td3-exo1.js +++ b/TD3/js/td3-exo1.js @@ -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; } \ No newline at end of file