diff options
Diffstat (limited to 'search.php')
-rw-r--r-- | search.php | 59 |
1 files changed, 31 insertions, 28 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"/> @@ -49,33 +49,36 @@ <form> <div id="query_wrap"> <input id="query" type='searcg' value='<?=$query;?>' name='query' autocorrect="off" autocapitalize="none" required/> - <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> - <button id="def" type='submit' value='man' name='action' class="btn-def" aria-hidden="true" tabindex="-1"></button> + <button id="def" type='submit' value='man' name='action' class="btn-def" aria-hidden="true" tabindex="-1"></button> + <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> <button id="mank" type='submit' value='apropos' name='action' title="apropos(1)">-k</button> <button id="man" type='submit' value='man' name='action' title="Feeling lucky, punk?" class="btn-acc"> <div id="query_icon"></div> |