From f7b144479294ec9c9f7c2316d3552111974f048d Mon Sep 17 00:00:00 2001 From: beau Date: Tue, 10 Dec 2024 15:39:23 +0100 Subject: [PATCH] centre le bouton --- index.html | 12 ++++++++++-- js/intro.js | 12 ++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 2fff9c4..c401d78 100755 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ -Technologies + @@ -15,9 +15,17 @@ -
+ +
+ +
+ +
+ + + diff --git a/js/intro.js b/js/intro.js index 90e0c15..b59a67d 100644 --- a/js/intro.js +++ b/js/intro.js @@ -4,22 +4,18 @@ document.addEventListener("click",firstClick) function firstClick(){ - let position_button=document.getElementById("div_button_score") + let position_button=document.getElementById("div_button") + let position_score=document.getElementById("div_score") const score_aff = document.createElement("output") score_aff.innerText="SCORE" score_aff.id = "score_affichage" - - - const saut=document.createElement("div") - const click = document.createElement("button") click.innerText="click" - position_button.appendChild(score_aff) - saut.appendChild(click) - position_button.appendChild(saut) + position_score.appendChild(score_aff) + position_button.appendChild(click) click.addEventListener("click",scoreCount)
nom