Merge branch 'main' of https://git.etud.insa-toulouse.fr/mougnibas/projet-clicodrome
This commit is contained in:
incheckning
ea464e791a
1 ändrade filer med 3 tillägg och 6 borttagningar
|
|
@ -1,13 +1,10 @@
|
|||
|
||||
let firstclick = 0
|
||||
document.addEventListener("click",firstClick)
|
||||
|
||||
if (firstclick==0){
|
||||
document.addEventListener("click",button)
|
||||
firstclick = 1
|
||||
}
|
||||
|
||||
function button(){
|
||||
function firstClick(){
|
||||
const click = document.createElement("button")
|
||||
click.innerText="click"
|
||||
document.body.appendChild(click)
|
||||
document.removeEventListener("click",button)
|
||||
}
|
||||
Laddar…
Referens i nytt ärende