From b1c5fe657fe91a2aa096e6656e94cc4c91ed1616 Mon Sep 17 00:00:00 2001 From: beau Date: Thu, 21 Nov 2024 11:58:40 +0100 Subject: [PATCH] derniers ajustements --- index.html | 4 +++- js/intro.js | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index ffaa0f5..54a2820 100755 --- a/index.html +++ b/index.html @@ -4,12 +4,14 @@ Prog Web Legend + -

Click

+
+
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)
nom