diff options
author | Señor X | 2019-03-31 06:56:41 -0300 |
---|---|---|
committer | Señor X | 2019-03-31 06:56:41 -0300 |
commit | 44f98255c81abce079964dc19d698ad0743e2621 (patch) | |
tree | 80d390c496535ec4771220af0ad185019d707177 | |
parent | 124279ee2c6e2fbf4ebd751588c8d4bffec6d3e3 (diff) | |
download | weabot-44f98255c81abce079964dc19d698ad0743e2621.tar.gz weabot-44f98255c81abce079964dc19d698ad0743e2621.tar.xz weabot-44f98255c81abce079964dc19d698ad0743e2621.zip |
Agregando selector a lista de hilos
-rw-r--r-- | cgi/templates/txt_threadlist.html | 4 | ||||
-rw-r--r-- | static/css/txt/ventanas.css | 2 | ||||
-rw-r--r-- | static/js/weabotxt.js | 15 |
3 files changed, 9 insertions, 12 deletions
diff --git a/cgi/templates/txt_threadlist.html b/cgi/templates/txt_threadlist.html index 24c3297..0d68abb 100644 --- a/cgi/templates/txt_threadlist.html +++ b/cgi/templates/txt_threadlist.html @@ -7,8 +7,8 @@ <div id="titlebox" class="outerbox"> <div class="innerbox"><h1>#{board_long}</h1></div> <div class="innerbox links"><b>¿Eres nuevo?</b> <a href="/guia.html"><b>Cómo postear</b></a> | <a href="/faq.html"><b>Preguntas frecuentes</b></a> | <a href="/bai/"><b>Contacto</b></a> - <?py if not force_css: ?>| <b>Apariencia:</b> - <?py for title in txt_styles: ?><a href="#" class="ss">#{title}</a> <?py #endfor ?> + <?py if not force_css: ?>| <b>Estilo: </b><select id="styles"> + <?py for title in txt_styles: ?><option value="#{title}">#{title}</option><?py #endfor ?></select> <?py #endif ?> </div> </div> diff --git a/static/css/txt/ventanas.css b/static/css/txt/ventanas.css index 08da9c5..2593795 100644 --- a/static/css/txt/ventanas.css +++ b/static/css/txt/ventanas.css @@ -20,7 +20,7 @@ hr,h4,.deleted{border-top:2px groove white} #main_nav .cur_brd{background:#BBB url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAHUlEQVQImQESAO3/AMG/wv////7/AP///v++vr7/gXcOcY36q6gAAAAASUVORK5CYII=');font-weight:bold} #main_nav .cur_brd,#main_nav a:active,.threadnav a:active,input[type=submit]:active,input[type=button]:active,button:active{border-color:#000 #FFF #FFF #000;border-style:groove} .outerbox,.mainpage .thread,#q-p{border-width:2px;border-color:#FFF #000 #000 #FFF;border-style:groove} -input[type=text],textarea,.innerbox,#content,select{border-width:2px;border-color:#000 #FFF #FFF #000;border-style:groove} +input[type=text],textarea,.innerbox,#content,#threadlist,select{border-width:2px;border-color:#000 #FFF #FFF #000;border-style:groove} select{background:#FFF} select:focus{background:#000080;color:#FFF;outline:1px dotted #ffff7f;outline-offset:-3px} #threadlinks:before{content:"";display:block;height:15px;margin-bottom:5px} diff --git a/static/js/weabotxt.js b/static/js/weabotxt.js index f4bbe2f..269168e 100644 --- a/static/js/weabotxt.js +++ b/static/js/weabotxt.js @@ -248,19 +248,16 @@ document.addEventListener("DOMContentLoaded", function() { else weabot = {"name":null,"email":null,"password":null}; board = document.body.dataset.brd; + var where = document.getElementById(board); + if (where) where.className = "cur_brd"; var forms = document.getElementsByTagName("form"); for(var i=0;i<forms.length;i++) { if(forms[i].id.startsWith("postform")) setInputs(forms[i].id); } - if (document.body.className == "mainpage") { - var styleSelect = document.getElementById("styles"); - if (styleSelect) { - styleSelect.addEventListener("change", applyTheme, false); - styleSelect.value = localStorage.getItem(style_cookie); - } - - var where = document.getElementById(board); - if (where) where.className = "cur_brd"; + var styleSelect = document.getElementById("styles"); + if (styleSelect) { + styleSelect.addEventListener("change", applyTheme, false); + styleSelect.value = localStorage.getItem(style_cookie); } if(localStorage.getItem("shobon_time") != "false") |