summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2015-05-22 18:48:49 +0200
committerJulie Lala <jules@okfoc.us>2015-05-22 18:48:49 +0200
commitc2d83e9195d6ae00836226d039a594d7e917908c (patch)
treedca01f9de1e372f2806d776863f2b448999fb888 /js/lex.js
parent6037078f595ec80a25dcef213383745b3a0bbd50 (diff)
unicode functions and ascii brushes
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lex.js b/js/lex.js
index 5fdf707..e491fe0 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -17,8 +17,8 @@ Lex.prototype.build = function(){
this.span.innerHTML = this.html()
}
Lex.prototype.css = function(){
- if (this.opacity == 0) return "transparent f" + letters[mod(this.fg,16)]
- return "f" + letters[mod(this.fg,16)] + "b" + letters[mod(this.bg,16)]
+ if (this.opacity == 0) return "transparent f" + color_alphabet[mod(this.fg,16)]
+ return "f" + color_alphabet[mod(this.fg,16)] + "b" + color_alphabet[mod(this.bg,16)]
}
Lex.prototype.html = function(){
return this.char == " " ? "&nbsp;" : this.char || "&nbsp;"