summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-22 10:17:49 -0500
committerJules Laplace <jules@okfoc.us>2014-11-22 10:17:49 -0500
commit9ab497b693d34e10b9db2d7603917d8d1296e350 (patch)
tree81dd8ae4a595ce4a437f34c3b1ca3de44a5460e0 /js/lex.js
parent69e0de28cb98b90d630c76d25f483ba59802d1d2 (diff)
fix width/height
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/lex.js b/js/lex.js
index f235672..086fc90 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -21,6 +21,10 @@ Lex.prototype.css = function(){
Lex.prototype.html = function(){
return this.char == " " ? "&nbsp;" : this.char || "&nbsp;"
}
+Lex.prototype.read = function(){
+ this.char = this.span.innerHTML
+ return this.char
+}
Lex.prototype.irc = function(){
var char = this.char == "%" ? '%%' : this.char || " "
if (this.bg == 1 && this.fg == 0) {