summaryrefslogtreecommitdiff
path: root/search.php
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-03-05 23:50:29 +0200
committerdweller <dweller@cabin.digital>2024-03-05 23:50:29 +0200
commit3eb27535646fd45a61365870f4ed8a65dd1f02ec (patch)
tree45bc1f4e563ca8e3f4c29d7bd11bda100c648e32 /search.php
parent98cc28af8d4cb81a7070ba0d43e2254eae073d01 (diff)
hide query options (-s -S). fml that took some work, esp. on iOS
Diffstat (limited to '')
-rw-r--r--search.php59
1 files changed, 31 insertions, 28 deletions
diff --git a/search.php b/search.php
index d24a3b2..c8d41e8 100644
--- a/search.php
+++ b/search.php
@@ -14,7 +14,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <title>Manup &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; Lonely MAN near You</title>
+ <title>Manup &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; 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>