diff --git a/index.html b/index.html index 360f707..61d586a 100755 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@ +
diff --git a/js/intro.js b/js/intro.js index 580ba77..06fc30a 100644 --- a/js/intro.js +++ b/js/intro.js @@ -4,22 +4,22 @@ document.addEventListener("click",firstClick) function firstClick(){ - let position_button=document.getElementById("divButtonScore") + let position_button=document.getElementById("div_button_score") const click = document.createElement("button") click.innerText="click" position_button.appendChild(click) - const scoreAff = document.createElement("output") - scoreAff.innerText="SCORE" - scoreAff.id = "score_affichage" - position_button.appendChild(scoreAff) + const score_aff = document.createElement("output") + score_aff.innerText="SCORE" + score_aff.id = "score_affichage" + position_button.appendChild(score_aff) click.addEventListener("click",scoreCount) document.removeEventListener("click",firstClick) } function scoreCount(){ - const scoreAff = document.getElementById("score_affichage") + const score_aff = document.getElementById("score_affichage") score += 1 - scoreAff.innerText="SCORE : " + score -} \ No newline at end of file + score_aff.innerText="SCORE : " + score +}