use a constant for default font size
This commit is contained in:
parent
92e7064372
commit
3f623782b7
@ -5,6 +5,7 @@ var alreadyLoaded = false;
|
|||||||
var $chatArea = document.getElementById("chatarea");
|
var $chatArea = document.getElementById("chatarea");
|
||||||
var $selHub = document.getElementById("selHub");
|
var $selHub = document.getElementById("selHub");
|
||||||
var $frmHub = document.getElementById("frmHub");
|
var $frmHub = document.getElementById("frmHub");
|
||||||
|
var DEFAULT_FONT_SIZE = 12;
|
||||||
|
|
||||||
function urldesc(s) {
|
function urldesc(s) {
|
||||||
return decodeURIComponent(s.replace(/\+/g, " "));
|
return decodeURIComponent(s.replace(/\+/g, " "));
|
||||||
@ -49,7 +50,7 @@ function highlight(str) {
|
|||||||
function fontSize(change) {
|
function fontSize(change) {
|
||||||
var curSize = cookie_get("fontsize");
|
var curSize = cookie_get("fontsize");
|
||||||
if (curSize === null) {
|
if (curSize === null) {
|
||||||
curSize = 12;
|
curSize = DEFAULT_FONT_SIZE;
|
||||||
} else {
|
} else {
|
||||||
curSize = + curSize;
|
curSize = + curSize;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user