Add files via upload

This commit is contained in:
zylfu 2021-09-12 08:41:48 +02:00 committed by GitHub
parent f8cff3b3d0
commit f0259bbcde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 902 additions and 0 deletions

15
script/script.js Normal file
View file

@ -0,0 +1,15 @@
let titre = document.querySelectorAll(".titre");
for(let i = 0; i <titre.length; i++){
titre[i].addEventListener("click", function(){
let result = this.nextElementSibling;
result.classList.toggle("active");
if(this.firstElementChild.innerText === "(Cliquez pour étendre)"){
this.firstElementChild.innerText = "(Cliquez pour replier)"
}
else{
this.firstElementChild.innerText = "(Cliquez pour étendre)"
}
})
}