From f632cc408e50cff8714044021b683d18abe17a54 Mon Sep 17 00:00:00 2001 From: Renard Date: Sun, 31 Mar 2019 17:41:31 -0300 Subject: Selector CSS para IB --- static/js/weabot.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'static/js/weabot.js') diff --git a/static/js/weabot.js b/static/js/weabot.js index da0ba83..0f27075 100644 --- a/static/js/weabot.js +++ b/static/js/weabot.js @@ -361,6 +361,11 @@ function catHidden() { lbl.appendChild(shw); lbl.appendChild(document.createTextNode("]")); } +function applyTheme(){ + var newTheme = document.getElementById("styles").value; + set_stylesheet(newTheme); +} + document.addEventListener("DOMContentLoaded", function(e) { checkhighlight(); if (localStorage.hasOwnProperty("weabot")) weabot = JSON.parse(localStorage.getItem("weabot")); @@ -414,15 +419,11 @@ document.addEventListener("DOMContentLoaded", function(e) { for(var i=0;i