From 92724fa1f4a6e733162f2bad8f9ab52150910c96 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 29 Oct 2024 01:43:40 +0100 Subject: [PATCH] fix css and javascript bug for hiding/show stuff --- Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h | 2 +- Arduino/CanGrow/include/Webserver/File_cangrow_JS.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h b/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h index c45bf35..a0b5f12 100644 --- a/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h +++ b/Arduino/CanGrow/include/Webserver/File_cangrow_CSS.h @@ -224,7 +224,7 @@ input[type=text], input[type=date], input[type=number], input[type=password], se } .visible { - display: inline-block!important; + display: inline; /*justify-content: center!important;*/ } diff --git a/Arduino/CanGrow/include/Webserver/File_cangrow_JS.h b/Arduino/CanGrow/include/Webserver/File_cangrow_JS.h index 9047212..60b437e 100644 --- a/Arduino/CanGrow/include/Webserver/File_cangrow_JS.h +++ b/Arduino/CanGrow/include/Webserver/File_cangrow_JS.h @@ -44,7 +44,7 @@ function hideAllClass(classname) { const el = document.getElementsByClassName(classname); for(let i = 0; i < el.length ; i++) { - el[i].style.display = ''; + el[i].style.display = 'none'; } }