diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/index.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/web/index.php b/web/index.php index 2aec31f..5c5b7af 100644 --- a/web/index.php +++ b/web/index.php @@ -2,6 +2,8 @@ if (isset($_POST['decklist'])) { $_ENV['DECKLIST'] = $_POST['decklist']; + $_ENV['USE_UNROUNDED_CORNERS'] = isset($_POST['use_unrounded_corners']); + $_ENV['UNROUNDED_CORNER_COLOR'] = $_POST['unrounded_corner_color']; include __DIR__ . '/print/print.php'; exit; } @@ -29,8 +31,18 @@ PLCHLDR; </head> <body> <form action="" method="POST"> - <textarea name="decklist" placeholder="<?php echo $placeholder; ?>" rows="10" cols="40" style="max-width: 100%;" required></textarea> - <button>Submit</button> + <div> + <textarea name="decklist" placeholder="<?php echo $placeholder; ?>" rows="10" cols="40" style="max-width: 100%;" required></textarea> + </div> + <div> + <label>Use Unrounded Corners <input type="checkbox" name="use_unrounded_corners" value="1"></label> + </div> + <div> + <label>Unrounded Corner Color <input type="color" name="unrounded_corner_color"></label> + </div> + <div> + <button style="width: 100%; min-height: 4rem;">Submit</button> + </div> </form> <hr> <a href="https://git.dweipert.de/mtg-pdf">Source</a> |