function affiche_menu() { let menu = document.getElementById("menu") if (menu.style.display == "block") { menu.style.display = "none" } else { menu.style.display = "block" } } let titreMenu = document.getElementById("titreMenu") titreMenu.addEventListener("click", affiche_menu) function preview() { let prev = document.getElementById("preview") prev.style.width = "200px" } let prev = document.getElementById("preview") prev.addEventListener("click", preview)