score
This commit is contained in:
parent
36ffefcfb7
commit
f51be40a1c
1 changed files with 13 additions and 3 deletions
16
js/intro.js
16
js/intro.js
|
@ -5,15 +5,25 @@ document.addEventListener("click",firstClick)
|
|||
|
||||
function firstClick(){
|
||||
let position_button=document.getElementById("div_button_score")
|
||||
const click = document.createElement("button")
|
||||
click.innerText="click"
|
||||
position_button.appendChild(click)
|
||||
|
||||
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)
|
||||
|
||||
click.addEventListener("click",scoreCount)
|
||||
|
||||
|
||||
document.removeEventListener("click",firstClick)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue