--- /dev/null
+<!doctype html>
+<html>
+ <head>
+ <style>
+ /* The console container element */
+ body { background-color: black; font-size: 16px; font-family: Courier; }
+
+ #console {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ background-color:black;
+ }
+ /* The inner console element. */
+ .jqconsole {
+ padding: 10px;
+ }
+ /* The cursor. */
+ .jqconsole-cursor {
+ background-color: gray;
+ }
+ /* The cursor color when the console looses focus. */
+ .jqconsole-blurred .jqconsole-cursor {
+ background-color: #666;
+ }
+ /* The current prompt text color */
+ .jqconsole-prompt {
+ color: White;
+ }
+ /* The command history */
+ .jqconsole-old-prompt {
+ color: White;
+ font-weight: normal;
+ }
+ /* The text color when in input mode. */
+ .jqconsole-input {
+ color: White;
+ }
+ /* Previously entered input. */
+ .jqconsole-old-input {
+ color: White;
+ font-weight: normal;
+ }
+ /* The text color of the output. */
+ .jqconsole-output, .jqconsole-header {
+ color: gray;
+ }
+ .jqconsole-error {
+ color: red;
+ }
+</style>
+ </head>
+
+ <body>
+ <div id="console"></div>
+ <script src="lispstrack.js" type="text/javascript"></script>
+ <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
+ <script src="jqconsole.min.js" type="text/javascript" charset="utf-8"></script>
+ <script>
+ $(function () {
+ var jqconsole = $('#console').jqconsole('Welcome to Lisptrack!\n\n', '> ');
+ jqconsole.RegisterMatching('(', ')', 'parents');
+
+ var startPrompt = function () {
+ // Start the prompt with history enabled.
+ jqconsole.Prompt(true, function (input) {
+ // Output input with the class jqconsole-output.
+ if (input[0] != ','){
+ try {
+ jqconsole.Write(JSON.stringify(lisp.evalString(input)) + '\n', 'jqconsole-output');
+ } catch(error) {
+ jqconsole.Write('ERROR: ' + error + '\n', 'jqconsole-error');
+ }
+ } else {
+ jqconsole.Write(JSON.stringify(lisp.compileString(input.slice(1))) + '\n', 'jqconsole-output');
+ }
+ // Restart the prompt.
+ startPrompt();
+ }, function(input){
+ try {
+ lisp.read(input[0]==','? input.slice(1): input);
+ } catch(error) {
+ return 0;
+ }
+ return false;
+ });
+ };
+ startPrompt();
+ });
+ </script>
+ </body>
+</html>
+++ /dev/null
-<!doctype html>
-<html>
- <head>
- <style>
- /* The console container element */
- body { background-color: black; font-size: 16px; font-family: Courier; }
-
- #console {
- position: absolute;
- width: 100%;
- height: 100%;
- background-color:black;
- }
- /* The inner console element. */
- .jqconsole {
- padding: 10px;
- }
- /* The cursor. */
- .jqconsole-cursor {
- background-color: gray;
- }
- /* The cursor color when the console looses focus. */
- .jqconsole-blurred .jqconsole-cursor {
- background-color: #666;
- }
- /* The current prompt text color */
- .jqconsole-prompt {
- color: White;
- }
- /* The command history */
- .jqconsole-old-prompt {
- color: White;
- font-weight: normal;
- }
- /* The text color when in input mode. */
- .jqconsole-input {
- color: White;
- }
- /* Previously entered input. */
- .jqconsole-old-input {
- color: White;
- font-weight: normal;
- }
- /* The text color of the output. */
- .jqconsole-output, .jqconsole-header {
- color: gray;
- }
- .jqconsole-error {
- color: red;
- }
-</style>
- </head>
-
- <body>
- <div id="console"></div>
- <script src="lispstrack.js" type="text/javascript"></script>
- <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
- <script src="jqconsole.min.js" type="text/javascript" charset="utf-8"></script>
- <script>
- $(function () {
- var jqconsole = $('#console').jqconsole('Welcome to Lisptrack!\n\n', '> ');
- jqconsole.RegisterMatching('(', ')', 'parents');
-
- var startPrompt = function () {
- // Start the prompt with history enabled.
- jqconsole.Prompt(true, function (input) {
- // Output input with the class jqconsole-output.
- if (input[0] != ','){
- try {
- jqconsole.Write(JSON.stringify(lisp.evalString(input)) + '\n', 'jqconsole-output');
- } catch(error) {
- jqconsole.Write('ERROR: ' + error + '\n', 'jqconsole-error');
- }
- } else {
- jqconsole.Write(JSON.stringify(lisp.compileString(input.slice(1))) + '\n', 'jqconsole-output');
- }
- // Restart the prompt.
- startPrompt();
- }, function(input){
- try {
- lisp.read(input[0]==','? input.slice(1): input);
- } catch(error) {
- return 0;
- }
- return false;
- });
- };
- startPrompt();
- });
- </script>
- </body>
-</html>