This commit is contained in:
2021-09-16 11:28:28 +02:00
parent 0a44536179
commit e485a0bb3b
2 changed files with 25 additions and 14 deletions

View File

@ -133,19 +133,21 @@ if ($action == 'reset') {
<body class="container-fluid">
<form method="get">
<header class="grid">
<?php foreach ($buttons as $act => $label) { ?>
<button type="submit" name="action" value="<?=$act?>" class="<?=($action == $act? ' contrast': '')?>"><?=$label?></button>
<?php } ?>
<a href="/">Reset</a>
<a href="<?=$help?>">Help</a>
</header>
<main class="layout">
<div>
<?php foreach ($buttons as $act => $label) { ?>
<button type="submit" name="action" value="<?=$act?>" class="<?=($action == $act? ' contrast': '')?>"><?=$label?></button>
<?php } ?>
<a href="/" role="button" class="secondary">Reset</a>
<a href="<?=$help?>" role="button" class="secondary">Help</a>
</div>
<main class="grid">
<div>
<textarea name="str" class="form-input" placeholder="Paste a string here"><?=htmlentities($result, ENT_QUOTES | ENT_HTML5 | ENT_IGNORE)?></textarea>
</div>
</main>
<footer class="grid">
<footer>
<small>Contact me via <a href="mailto:correo@sergio.am">email</a> or <a href="https://twitter.com/xergio">twitter</a>. Made with pure <a href="https://php.net/">PHP</a> and <a href="https://picocss.com/"><strong>Pico</strong>.css</a>. <a href="https://sergio.am/code/dencode.xrg.es">Code</a>.</small>
</footer>
</form>