Mercurial > repos > tabletprog
diff src/editor.tp @ 111:b2a3f202d485
Fleshed out the UI a little. Added a "literal" button that replaces the operator panel with a literal panel. Added the navigation buttons, but they're not functional yet.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 14 Apr 2013 17:24:53 -0700 |
parents | d715fb3c39ab |
children | c0bfff39abe3 |
line wrap: on
line diff
--- a/src/editor.tp Sat Apr 13 23:37:54 2013 -0700 +++ b/src/editor.tp Sun Apr 14 17:24:53 2013 -0700 @@ -188,10 +188,20 @@ srcel textContent!: (srcel textContent) + (el textContent) } } + visible <- "showops" (q: "#ops_button") onclick!: :event { each: (qall: ".controls") :idx el { + removeClass: el visible addClass: el "showops" } + visible <- "showops" + } + (q: "#lit_button") onclick!: :event { + each: (qall: ".controls") :idx el { + removeClass: el visible + addClass: el "showlit" + } + visible <- "showlit" } path <- (window location) pathname