mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed #110 rewrite of tab-view and better fonts
This commit is contained in:
parent
06351e5828
commit
550d14fbef
11 changed files with 171 additions and 82 deletions
|
|
@ -9,4 +9,16 @@ function () {
|
|||
var f = this.charAt(0).toUpperCase();
|
||||
return f + this.substr(1);
|
||||
}
|
||||
|
||||
String.prototype.pad = function (max, alignLeft) {
|
||||
var string = this.substring(0, max - 1);
|
||||
|
||||
var spaces = new Array( max - string.length + 1 ).join(" ");
|
||||
if(alignLeft) {
|
||||
return string + spaces;
|
||||
} else {
|
||||
return spaces + string;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue