Mercurial Hosting > luan
diff src/luan/modules/http/tools/Run.luan @ 1293:007ceb8dcf89
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 06 Jan 2019 14:09:24 -0700 |
parents | 299996e03876 |
children | 9eba6bf0163b |
line wrap: on
line diff
--- a/src/luan/modules/http/tools/Run.luan Thu Jan 03 15:01:36 2019 -0700 +++ b/src/luan/modules/http/tools/Run.luan Sun Jan 06 14:09:24 2019 -0700 @@ -34,18 +34,11 @@ <title>Run Luan Code</title> <style> body { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: sans-serif; text-align: center; - margin-top: 1em; - } - h2 { - margin-bottom: .3em; - font-weight: normal; } textarea { font: inherit; - border-radius: 4px; - padding: .5em .8em; } input[type="submit"] { margin-top: .3em; @@ -55,9 +48,7 @@ font: inherit; padding: .5em; border-radius: 4px; - } - input[type="submit"]:hover { - background: #236aa7 !important; + cursor: pointer; } </style> </head> @@ -66,7 +57,7 @@ <form method="post"> <input type="hidden" name="content_type" value="text/plain; charset=utf-8" /> <div> - <textarea name="code" rows="20" cols="90" wrap="off" autofocus></textarea> + <textarea name="code" rows="20" cols="90" autofocus></textarea> </div> <div> <input type="submit" value="Execute Luan Code"/> @@ -91,16 +82,16 @@ function() local run = load(code,"<web_run>") run() - end; + end catch = function(e) Http.response.reset() Http.response.headers["content-type"] = "text/plain; charset=utf-8" Io.stdout = Http.response.text_writer() print(e) - print"" - print"" + print() + print() print_with_line_numbers(code) - end; + end } end