diff --git a/assets/css/home.css b/assets/css/home.css index b60a28a..9642f23 100644 --- a/assets/css/home.css +++ b/assets/css/home.css @@ -186,7 +186,7 @@ nav{ #text1DivSection4, #text2DivSection4, #text3DivSection4{ background-color: transparent; width: 60%; - + visibility: visible; } .hidden{ display: none; diff --git a/assets/html/home.html b/assets/html/home.html index 13636bb..2b31a15 100644 --- a/assets/html/home.html +++ b/assets/html/home.html @@ -8,6 +8,7 @@ +
@@ -274,6 +275,5 @@

Nous contacter

- \ No newline at end of file diff --git a/assets/js/home.js b/assets/js/home.js index 5944256..01bbffb 100644 --- a/assets/js/home.js +++ b/assets/js/home.js @@ -23,26 +23,36 @@ text3DivSection4.setAttribute("class", "hidden"); btnHidden1.addEventListener('click', () => { imageBtnHidden1.setAttribute("src", "/images/display.png"); - if(text1DivSection4.style.display === "block"){ - text1DivSection4.classList.remove("display"); - text1DivSection4.classList.add("hidden"); + if(text1DivSection4.style.visibility === 'visible'){ + // text1DivSection4.classList.remove("display"); + // text1DivSection4.classList.add("hidden"); console.log("Oui"); }else{ - text1DivSection4.classList.remove("hidden"); - text1DivSection4.classList.add("display"); - console.log("Non"); - } // text1DivSection4.classList.remove("hidden"); // text1DivSection4.classList.add("display"); + console.log("Non"); + }; + text1DivSection4.classList.remove("hidden"); + text1DivSection4.classList.add("display"); }); btnHidden2.addEventListener('click', () => { imageBtnHidden2.setAttribute("src", "/images/display.png"); + if(text2DivSection4.style.visibility === 'visible'){ + console.log("Oui"); + }else{ + console.log("Non"); + }; text2DivSection4.classList.remove("hidden"); text2DivSection4.classList.add("display"); }); btnHidden3.addEventListener('click', () => { + if(text3DivSection4.style.visibility === 'visible'){ + console.log("Oui"); + }else{ + console.log("Non"); + }; imageBtnHidden3.setAttribute("src", "/images/display.png"); text3DivSection4.classList.remove("hidden"); text3DivSection4.classList.add("display");