From 696d8e0f58dce8c569452cd5225c9a772d561abe Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 27 Nov 2024 23:40:50 +0100 Subject: [PATCH] fix copy code button --- static/css/cours.css | 2 +- static/js/cours.js | 2 +- templates/cours.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/css/cours.css b/static/css/cours.css index c629785..20ca6d1 100644 --- a/static/css/cours.css +++ b/static/css/cours.css @@ -57,7 +57,7 @@ main img { max-width: 100%; } -button { +button.menu { display: none; } diff --git a/static/js/cours.js b/static/js/cours.js index aa50662..5b6f539 100644 --- a/static/js/cours.js +++ b/static/js/cours.js @@ -148,7 +148,7 @@ window.addEventListener("load", () => { // Responsive menu let menuOpen = false; - const button = document.getElementsByTagName("button")[0]; + const button = document.getElementsByTagName("button.menu")[0]; const content = document.getElementsByTagName("main")[0]; const initialButtonTextContent = button.textContent; const resetPage = () => { diff --git a/templates/cours.html b/templates/cours.html index 83eabd3..3b128c5 100644 --- a/templates/cours.html +++ b/templates/cours.html @@ -11,7 +11,7 @@
{{>navbar.html}}
- +