This commit is contained in:
Theo Mougnibas 2024-11-21 11:30:49 +01:00
commit ea464e791a

View file

@ -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)
}