Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Commit

Permalink
font size enabled, closing issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed Nov 6, 2014
1 parent 77d0a58 commit c046049
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chromesoul.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Chromesoul</title>
<link rel="stylesheet" type="text/css" media="all" href="chromesoul.css">
</head>
<body>
<body id="body-id">
<p id="user-status" class="clickable">
<img src="img/status/me-disconnected.png" alt="disconnected" title="disconnected" id="user-status-img">
</p>
Expand Down
6 changes: 6 additions & 0 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions lib/tab.nsui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down Expand Up @@ -132,7 +131,6 @@ Tab.prototype.hide = function() {
};

Tab.prototype.show = function() {
//this.options.restore();
if (typeof this.showHandler !== "undefined") {
this.showHandler();
}
Expand Down

0 comments on commit c046049

Please sign in to comment.