From c0460496dd32ff9aa6d85e718a2d1f47a4ed51ad Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Thu, 6 Nov 2014 20:52:11 +0100 Subject: [PATCH] font size enabled, closing issue #4 --- chromesoul.html | 2 +- lib/options.js | 6 ++++++ lib/tab.nsui.js | 2 -- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chromesoul.html b/chromesoul.html index a5624b9..6dff6f7 100644 --- a/chromesoul.html +++ b/chromesoul.html @@ -5,7 +5,7 @@ Chromesoul - +

disconnected

diff --git a/lib/options.js b/lib/options.js index 1c0d2c1..39c516c 100644 --- a/lib/options.js +++ b/lib/options.js @@ -82,6 +82,12 @@ OptionsManager.prototype.init = function() { }; })(this)); } + + var chat_size = document.getElementById("chat-size"); + chat_size.addEventListener("change", function() { + var body = document.getElementById("body-id"); + body.style.fontSize = chat_size.value + "px"; + }, false); }; OptionsManager.prototype.savePart = function(pass) { diff --git a/lib/tab.nsui.js b/lib/tab.nsui.js index c2c04fe..c313140 100644 --- a/lib/tab.nsui.js +++ b/lib/tab.nsui.js @@ -22,7 +22,6 @@ var Tab = function(name) { this.buff_len = 1000; this.history_index = 0; this.history = []; - $cs.opts.restore(); this.initListElement(); this.initBodyElement(); }; @@ -132,7 +131,6 @@ Tab.prototype.hide = function() { }; Tab.prototype.show = function() { - //this.options.restore(); if (typeof this.showHandler !== "undefined") { this.showHandler(); }