From ffd2b09b25c61b285169557b93277e7c1476cd4f Mon Sep 17 00:00:00 2001 From: Choom Date: Tue, 13 Dec 2022 03:13:00 -0300 Subject: Barra superior para móviles Barra superior para móviles Barra superior para móviles --- static/js/weabotxt.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'static/js/weabotxt.js') diff --git a/static/js/weabotxt.js b/static/js/weabotxt.js index fec445d..7bbddcb 100644 --- a/static/js/weabotxt.js +++ b/static/js/weabotxt.js @@ -230,6 +230,37 @@ document.addEventListener("DOMContentLoaded", function() { } } + if (document.body.clientWidth < 600 && head) { + var navlink = head.getElementsByTagName("a"); + + var sel = document.createElement("select"); + sel.id = head.id + "_sel"; + sel.addEventListener("change", function(e){ + window.location.href = this.value; + }); + + for (var i=1; i