ojudge

A competitive programming judging platform written in OCaml
git clone git://git.laack.co/ojudge.git
Log | Files | Refs | README

submit.sh (974B)


      1 #!/bin/sh
      2 printf 'Content-Type: text/html; charset=utf-8\r\n\r\n'
      3 cat <<'EOF'
      4 <!DOCTYPE html>
      5 <html>
      6 <head>
      7     <meta charset="utf-8">
      8     <title>Submit code</title>
      9 </head>
     10 <body>
     11     <h1>ojudge, submit code</h1>
     12     <div class="form-container">
     13         <h2>Code</h2>
     14         <form id="submit-code" action="submit-code" method="post">
     15             <label for="code">Code</label><br>
     16 
     17             <input id="username" name="username" rows="20" cols="80"
     18                       spellcheck="false" required></input><br>
     19 
     20               <select name="language" id="language">
     21                   <option value="ocaml">OCaml</option>
     22                   <option value="c">C</option>
     23                   <option value="cpp">C++</option>
     24               </select>
     25 
     26             <textarea id="code" name="code" rows="20" cols="80"
     27                       spellcheck="false" required></textarea><br>
     28             <input type="submit" value="Submit">
     29         </form>
     30     </div>
     31 </body>
     32 </html>
     33 EOF