fix copy code button

This commit is contained in:
Mylloon 2024-11-27 23:40:50 +01:00
parent 59cd203ee2
commit 696d8e0f58
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ main img {
max-width: 100%; max-width: 100%;
} }
button { button.menu {
display: none; display: none;
} }

View file

@ -148,7 +148,7 @@ window.addEventListener("load", () => {
// Responsive menu // Responsive menu
let menuOpen = false; let menuOpen = false;
const button = document.getElementsByTagName("button")[0]; const button = document.getElementsByTagName("button.menu")[0];
const content = document.getElementsByTagName("main")[0]; const content = document.getElementsByTagName("main")[0];
const initialButtonTextContent = button.textContent; const initialButtonTextContent = button.textContent;
const resetPage = () => { const resetPage = () => {

View file

@ -11,7 +11,7 @@
<body> <body>
<header>{{>navbar.html}}</header> <header>{{>navbar.html}}</header>
<button type="button">Ouvrir le menu</button> <button type="button" id="menu">Ouvrir le menu</button>
<aside> <aside>
<input type="text" id="searchBar" placeholder="Recherche..." autofocus /> <input type="text" id="searchBar" placeholder="Recherche..." autofocus />
<span data-json="{{filetree}} "></span> <span data-json="{{filetree}} "></span>