From 2535cc0e31382f4ecc16aa6a1988a80455356270 Mon Sep 17 00:00:00 2001 From: SeƱor X Date: Sun, 31 Mar 2019 04:51:31 -0300 Subject: Cambiando #themeSelector a que tome todo select --- static/js/weabotxt.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'static/js') diff --git a/static/js/weabotxt.js b/static/js/weabotxt.js index 91e2ab0..9cd407c 100644 --- a/static/js/weabotxt.js +++ b/static/js/weabotxt.js @@ -243,7 +243,7 @@ function togglepost(e) { } function applyTheme(){ - var newTheme = document.getElementById("themeSelector").value; + var newTheme = document.getElementById("styles").value; set_stylesheet(newTheme); } @@ -251,30 +251,31 @@ document.addEventListener("DOMContentLoaded", function() { if (localStorage.hasOwnProperty("weabot")) weabot = JSON.parse(localStorage.getItem("weabot")); else weabot = {"name":null,"email":null,"password":null}; - board = document.getElementsByName("board")[0].value; - - if(localStorage.getItem("shobon_time") != "false") { - changeDate(); - } + board = document.body.dataset.brd; var ids = document.getElementsByClassName("num"); - for(var i=0;i