fin séance 1 TD3
This commit is contained in:
parent
5017da42b5
commit
42a7326d48
@ -17,11 +17,12 @@ function selection(event) {
|
|||||||
var vide = document.body.querySelector(".case.vide");
|
var vide = document.body.querySelector(".case.vide");
|
||||||
|
|
||||||
if ((maCase.offsetTop == vide.offsetTop && Math.abs(maCase.offsetLeft - vide.offsetLeft == 102)) ||
|
if ((maCase.offsetTop == vide.offsetTop && Math.abs(maCase.offsetLeft - vide.offsetLeft == 102)) ||
|
||||||
(maCase.offsetLeft == vide.offsetLeft && Math.abs(maCase.offsetTop - vide.offsetTop == 102)) {
|
(maCase.offsetLeft == vide.offsetLeft && Math.abs(maCase.offsetTop - vide.offsetTop == 102))) {
|
||||||
maCase.setAttribute("class", ".case.vide");
|
console.log("1");
|
||||||
vide.setAttribute("class", ".case");
|
maCase.className = "case vide";
|
||||||
|
vide.className = "case";
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(event.currentTarget.innerText);
|
console.log(event.currentTarget.className + " : " + event.currentTarget.innerText);
|
||||||
var e = event.target;
|
var e = event.target;
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/*<![CDATA[*/
|
console.log("js linkef");
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
console.log("init ok");
|
||||||
}
|
}
|
||||||
/*]]>*/
|
|
Loading…
x
Reference in New Issue
Block a user