depot initial TD3

This commit is contained in:
JunkJumper
2020-02-12 17:01:08 +01:00
parent e0ebb54c8d
commit 2d38d12955
10 changed files with 193 additions and 0 deletions

18
TD3/js/td3-exo1.js Normal file
View File

@ -0,0 +1,18 @@
console.log("Chargement...");
function init() {
console.log("Initialisation...");
var div = document.querySelectorAll('.case');
for (var i = 0; i < div.length; i++) {
div[i].addEventListener("click", selection);
}
//console.log(grille);
}
function selection(event) {
console.log(event.currentTarget.tagName);
var e = event.target;
}

5
TD3/js/td3-exo2.js Normal file
View File

@ -0,0 +1,5 @@
/*<![CDATA[*/
function init(){
}
/*]]>*/