Bertrand Benjamin
cd31d3293c
All checks were successful
continuous-integration/drone/push Build is passing
20 lines
505 B
JavaScript
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)
|