diff --git a/index.html b/index.html index ffaa0f5..54a2820 100755 --- a/index.html +++ b/index.html @@ -4,12 +4,14 @@
Click
+nom | diff --git a/js/intro.js b/js/intro.js index 10ca202..4b8457b 100644 --- a/js/intro.js +++ b/js/intro.js @@ -4,14 +4,15 @@ document.addEventListener("click",firstClick) function firstClick(){ + let position_button=document.getElementById("divButton_score") const click = document.createElement("button") click.innerText="click" - document.body.appendChild(click) + position_button.appendChild(click) const scoreAff = document.createElement("output") scoreAff.innerText="SCORE" scoreAff.id = "score_affichage" - document.body.appendChild(scoreAff) + position_button.appendChild(scoreAff) click.addEventListener("click",scoreCount) document.removeEventListener("click",firstClick)
---|