[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: fix #7384
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: fix #7384 |
Date: |
Wed, 19 Oct 2022 05:25:35 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository taler-merchant-demos.
The following commit(s) were added to refs/heads/master by this push:
new 4893826 fix #7384
4893826 is described below
commit 489382635f463f04514aca93c8c5acfa4defa499
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Oct 19 00:25:25 2022 -0300
fix #7384
---
talermerchantdemos/templates/common-base.html.j2 | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/talermerchantdemos/templates/common-base.html.j2
b/talermerchantdemos/templates/common-base.html.j2
index 8edfa0b..c3957ad 100644
--- a/talermerchantdemos/templates/common-base.html.j2
+++ b/talermerchantdemos/templates/common-base.html.j2
@@ -22,9 +22,22 @@
<link rel="stylesheet" type="text/css" href="{{ static('demo.css') }}" />
{% block head %}
{% endblock %}
+ <script>
+ function resetState() {
+ document.getElementById("lang").classList.add("hide");
+ }
+ function bodyKeyPress(event) {
+ if (event.code === "Escape") {
+ resetState();
+ }
+ }
+ function bodyOnClick(event) {
+ resetState();
+ }
+ </script>
</head>
-<body>
+<body onkeydown="bodyKeyPress(event)" onclick="bodyOnClick(event)">
<header class="demobar" style="display: flex; flex-direction: row;
justify-content: space-between;">
<a href="#main" class="skip">Skip to main content</a>
<div style="max-width: 50em; margin-left: 2em;">
@@ -59,6 +72,7 @@
function handleLang(event){
if (event.type === 'click') {
document.getElementById("lang").classList.toggle("hide");
+ event.stopPropagation();
}
}
</script>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-merchant-demos] branch master updated: fix #7384,
gnunet <=