2022-2023/1NSI/Evaluations/DS_2023-03-31/codes/script.js

20 lines
505 B
JavaScript

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)