diff options
author | Chouser <chouser@n01se.net> | 2008-10-19 04:30:16 +0000 |
---|---|---|
committer | Chouser <chouser@n01se.net> | 2008-10-19 04:30:16 +0000 |
commit | 8238f35a374614ad263eca2d443569f78852bb20 (patch) | |
tree | ed60cde884e65e2a316216b7f9a487fdb9b8e5d1 /clojurescript/test.html | |
parent | c6dbddd6d0b00bb6d2c5d6e9befbad165c0cd7ba (diff) |
ClojureScript: Add command-line options, set-prop and get-prop, plus a
small pile of bug fixes.
Diffstat (limited to 'clojurescript/test.html')
-rw-r--r-- | clojurescript/test.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clojurescript/test.html b/clojurescript/test.html index 92cd1f32..17d23003 100644 --- a/clojurescript/test.html +++ b/clojurescript/test.html @@ -30,7 +30,8 @@ document.body.appendChild( s ); }, posttext: function() { - print( "user=> " + jsrepl.text.value.replace("\n","\n ")); + var text = jsrepl.text.value.replace(/\n$/,""); + print( "user=> " + text.replace(/\n/g,"\n ")); jsrepl.text.value = ""; }, state: function(s,m) { @@ -51,7 +52,7 @@ e = e || event; if( e.keyCode == 13 ) { var s = document.createElement('script'); - s.src = "http://localhost:8081/" + + s.src = "http://mycroft:8080/" + escape(jsrepl.text.value).replace(/\+/,'%2b'); document.body.appendChild( s ); } |