From ab6eb91c3f8e45ba7249d270e593ccd209877482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mih=C3=A1ly=20H=C3=A9der?= <mihaly.heder@sztaki.hu> Date: Tue, 13 Dec 2022 16:50:32 +0100 Subject: [PATCH] popup+help text system --- templates/base.twig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/base.twig b/templates/base.twig index 7465451..6ee008b 100644 --- a/templates/base.twig +++ b/templates/base.twig @@ -8,6 +8,12 @@ <link rel="stylesheet" href="{{ asset('css/src/default.css', 'accounting') }}"> <link rel="icon" href="{{ asset("icons/favicon.ico") }}"> <meta name="robots" content="noindex, nofollow"> + <script> + function doPopup(popupId) { + var popup = document.getElementById(popupId); + popup.classList.toggle("show"); + } + </script> </head> <body id="{{ templateId }}"> -- GitLab