diff options
author | dweller <dweller@cabin.digital> | 2024-03-05 23:50:29 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2024-03-05 23:50:29 +0200 |
commit | 3eb27535646fd45a61365870f4ed8a65dd1f02ec (patch) | |
tree | 45bc1f4e563ca8e3f4c29d7bd11bda100c648e32 /index.php | |
parent | 98cc28af8d4cb81a7070ba0d43e2254eae073d01 (diff) |
hide query options (-s -S). fml that took some work, esp. on iOS
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 58 |
1 files changed, 31 insertions, 27 deletions
@@ -14,7 +14,7 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> - <title>Manup               Lonely MAN near You</title> + <title>Manup                     Lonely MAN near You</title> <link rel="icon" type="image/png" sizes="128x128" href="imgs/logo-goog.png"/> <link rel="icon" type="image/png" sizes="32x32" href="imgs/logo-goog32.png"/> @@ -56,32 +56,36 @@ <div id="query_icon"></div> <input id="query" type='search' value='<?php if($action === 'lmmtfy') echo $query;?>' name='query' autocorrect="off" autocapitalize="none" required autofocus/> <button id="def" type='submit' value='man' name='action' class="btn-def" aria-hidden="true" tabindex="-1"></button> - <span class="query_opt" title="section">-s</span> - <select id="sect" name='section' title="section" autocomplete="off"> - <option value=""></option> - <?php - for($i = 1; $i <= 9; $i++) - { - $sel = ""; - if((strlen($section) > 0) && ($section[0] == $i)) - $sel = 'selected="selected"'; - echo "<option value='$i' $sel>$i</option>"; - } - ?> - </select> - <span class="query_opt" title="architecture">-S</span> - <select id="arch" name='arch' title="architecture" autocomplete="off"> - <option value=""></option> - <?php - foreach($archs as $a) - { - $sel = ""; - if((strlen($arch) > 0) && ($arch == $a)) - $sel = 'selected="selected"'; - echo "<option value='$a' $sel>$a</option>"; - } - ?> - </select> + <input type="checkbox" id="query_opts_toggle"/> + <div id="query_opts"> + <span class="query_opt" title="section">-s</span> + <select id="sect" name='section' title="section" autocomplete="off"> + <option value=""></option> + <?php + for($i = 1; $i <= 9; $i++) + { + $sel = ""; + if((strlen($section) > 0) && ($section[0] == $i)) + $sel = 'selected="selected"'; + echo "<option value='$i' $sel>$i</option>"; + } + ?> + </select> + <span class="query_opt" title="architecture">-S</span> + <select id="arch" name='arch' title="architecture" autocomplete="off"> + <option value=""></option> + <?php + foreach($archs as $a) + { + $sel = ""; + if((strlen($arch) > 0) && ($arch == $a)) + $sel = 'selected="selected"'; + echo "<option value='$a' $sel>$a</option>"; + } + ?> + </select> + </div> + <span id="qfill"></span> </div> <div> <button id="mank" type='submit' value='apropos' name='action' title="apropos(1)">man -k</button> |