From c31c5851b60fa78acaa2ac45d9a6dc7d1daad4c4 Mon Sep 17 00:00:00 2001 From: beau Date: Fri, 29 Nov 2024 08:08:34 +0100 Subject: [PATCH 1/2] changement de nom --- index.html | 2 +- js/intro.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index be04414..4922001 100755 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ -
+
diff --git a/js/intro.js b/js/intro.js index 580ba77..14fdf28 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 + score_aff.innerText="SCORE : " + score } \ No newline at end of file From 97b06fe9200756fe0ec72f8f910649f4222a5862 Mon Sep 17 00:00:00 2001 From: beau Date: Fri, 29 Nov 2024 08:26:02 +0100 Subject: [PATCH 2/2] fin de intro --- js/intro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/intro.js b/js/intro.js index 14fdf28..06fc30a 100644 --- a/js/intro.js +++ b/js/intro.js @@ -22,4 +22,4 @@ function scoreCount(){ const score_aff = document.getElementById("score_affichage") score += 1 score_aff.innerText="SCORE : " + score -} \ No newline at end of file +}