diff --git a/apps/furnace-fjsc/furnace-fjsc.factor b/apps/furnace-fjsc/furnace-fjsc.factor index a065bb5623..1105682032 100644 --- a/apps/furnace-fjsc/furnace-fjsc.factor +++ b/apps/furnace-fjsc/furnace-fjsc.factor @@ -70,7 +70,7 @@ USING: kernel html furnace xml io httpd sequences ! the 'fjsc' responder. "fjsc-resources" [ [ - "apps/furnace-fjsc/resources/" resource-path "doc-root" set + "libs/fjsc/resources/" resource-path "doc-root" set file-responder ] with-scope ] add-simple-responder diff --git a/apps/furnace-fjsc/repl.fhtml b/apps/furnace-fjsc/repl.fhtml index 106ebc2893..3f6b842458 100644 --- a/apps/furnace-fjsc/repl.fhtml +++ b/apps/furnace-fjsc/repl.fhtml @@ -1,11 +1,36 @@ +

Factor to Javascript Compiler

+ + + + +
-
-
+
-
\ No newline at end of file + +
+

More information on the Factor to Javascript compiler can be found at these blog posts:" +

+

+

Some useful words: +

+
vocabs ( -- seq )
+
Return a sequence of available vocabularies
+
words ( string -- seq )
+
Return a sequence of words in the given vocabulary
+
all-words ( -- seq )
+
Return a sequence of all words
+
+

+

The contents of bootstrap.factor have been loaded on startup.

+
diff --git a/apps/furnace-fjsc/resources/bootstrap.factor b/libs/fjsc/resources/bootstrap.factor similarity index 100% rename from apps/furnace-fjsc/resources/bootstrap.factor rename to libs/fjsc/resources/bootstrap.factor diff --git a/apps/furnace-fjsc/resources/bootstrap.js b/libs/fjsc/resources/bootstrap.js similarity index 99% rename from apps/furnace-fjsc/resources/bootstrap.js rename to libs/fjsc/resources/bootstrap.js index 50b330cf16..6de5fac895 100644 --- a/apps/furnace-fjsc/resources/bootstrap.js +++ b/libs/fjsc/resources/bootstrap.js @@ -120,7 +120,7 @@ Factor.prototype.make_quotation = function(source, func) { Factor.prototype.server_eval = function(text, next) { var self = this; $.post("/responder/fjsc/compile", { code: text }, function(result) { - document.getElementById('compiled').innerHTML="
" + result + "
"; + document.getElementById('compiled').value=result; document.getElementById('code').value=""; var func = eval(result); factor.cont.next = function() { self.display_datastack(); } diff --git a/apps/furnace-fjsc/resources/jquery.js b/libs/fjsc/resources/jquery.js similarity index 100% rename from apps/furnace-fjsc/resources/jquery.js rename to libs/fjsc/resources/jquery.js