diff --git a/root/editor.css b/root/editor.css index 7651e4d..e5dfc67 100644 --- a/root/editor.css +++ b/root/editor.css @@ -7,6 +7,7 @@ h1{border-bottom: double 5px #72ff83;} textarea {height:300px; width:500px; margin-bottom: 20px;} +textarea.tea {height:100px; width:400px; margin-bottom: 20px;} div#result{ background-color: black; diff --git a/root/editor.rb b/root/editor.rb index 3fde2ce..50294c4 100755 --- a/root/editor.rb +++ b/root/editor.rb @@ -7,19 +7,20 @@ require'open3' require'timeout' -#ENV['RUBYOPT']="-Ku" + +begin + Timeout.timeout(0.5){ c = CGI.new(:accept_charset => "UTF-8") -p = " -i = 1 -while i <= 1000 -if i%2 == 0 -puts i -end -i += 1 -end -".toutf8 +# question = c["que"] +# pro = c["program"].toutf8 +# mes = c["mes"] +# hint = c["hint"] + +p = "puts\"aa\"" +que = "問題文" +mes = "メッセージ" cmd = "ruby -Ku -e '#{p}'" o,e,s = Open3.capture3(cmd) @@ -42,18 +43,30 @@
") puts("