Skip to content

Commit

Permalink
added dotcloud support
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Binsztok committed Dec 16, 2011
1 parent 4db1fed commit 9364841
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
NAME = webshell.exe

SRC = calc.opa editable.opa

all: $(NAME)

$(NAME):
opa --parser js-like $(SRC)

clean:
rm -f $(NAME)
rm -rf _build
2 changes: 2 additions & 0 deletions dotcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
www:
type: opa
2 changes: 2 additions & 0 deletions editable.opa
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ function addLine(f) {
);
#inputs =+ element;
#editor = newLine;
Dom.scroll_to_bottom(Dom.select_window());
}

function loader(_) {
#editor = newLine;
// window = Dom.select_window();
// Source: http://unixpapa.com/js/testkey.html
_handler1 = Dom.bind(Dom.select_document(), { keypress }, eval1);
_handler2 = Dom.bind(Dom.select_document(), { keydown }, eval2);
void // compulsory
Expand Down

0 comments on commit 9364841

Please sign in to comment.