diff --git a/assets/js/gancio-events-detect.js b/assets/js/gancio-events-detect.js index ed6d533..517bb1d 100644 --- a/assets/js/gancio-events-detect.js +++ b/assets/js/gancio-events-detect.js @@ -30,8 +30,16 @@ function ActivePastEvents(tab_next, tab_past) { } } -function ActivePastEventsIfNotNexts(ge_id, tab_next, tab_past) { +function ShowElement(id) { + const element = document.getElementById(id); + if (element) { + element.style.display = "block"; + } +} + +function ActivePastEventsIfNotNexts(ge_id, tab_next, tab_past, msg_id) { if (GetNextEventsCount(ge_id) == 0) { ActivePastEvents(tab_next, tab_past); } + ShowElement(msg_id); } diff --git a/events/index.html b/events/index.html index d63fcbf..18c4cbe 100644 --- a/events/index.html +++ b/events/index.html @@ -109,17 +109,22 @@ bg-dark
No existen mas próximos eventos programados actualmente.
+Si quieres organizar un evento con nosotros contáctanos.
+ + @@ -227,6 +232,6 @@ bg-dark for (let i = 0; i < document.forms.length; i++) document.forms[i].onsubmit = submit; })(); - +