tricu

An interpreted language for exploring Tree Calculus
Log | Files | Refs | README | LICENSE

index.php (832B)


      1 <?php
      2 declare(strict_types=1);
      3 ?>
      4 <!DOCTYPE html>
      5 <html lang="en">
      6 <head>
      7     <meta charset="utf-8">
      8     <title>Arboricx Web</title>
      9     <script src="https://unpkg.com/htmx.org@2.0.4"></script>
     10 </head>
     11 <body>
     12     <h1>Arboricx Bundle Runner</h1>
     13     <form hx-post="eval.php" hx-target="#result" enctype="multipart/form-data">
     14         <p>
     15             <label>Bundle (.arboricx)<br>
     16             <input type="file" name="bundle" accept=".arboricx" required></label>
     17         </p>
     18         <?php for ($i = 0; $i < 5; $i++): ?>
     19         <p>
     20             <label>Arg <?= $i + 1 ?> <small>(ignored if empty)</small><br>
     21             <input type="text" name="arg<?= $i ?>"></label>
     22         </p>
     23         <?php endfor; ?>
     24         <p>
     25             <button type="submit">Run</button>
     26         </p>
     27     </form>
     28     <pre id="result"></pre>
     29 </body>
     30 </html>