aboutsummaryrefslogtreecommitdiffstats
path: root/partials/header_search.php
diff options
context:
space:
mode:
authorsillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
committersillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
commit898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch)
tree85c6ee5ad58b860144551184d4cf86b560c62b91 /partials/header_search.php
downloadwww-main.tar.gz
www-main.zip
import live www.sillylaird.ca webrootHEADmain
Diffstat (limited to 'partials/header_search.php')
-rw-r--r--partials/header_search.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/partials/header_search.php b/partials/header_search.php
new file mode 100644
index 0000000..85b57e4
--- /dev/null
+++ b/partials/header_search.php
@@ -0,0 +1,34 @@
+<?php
+/** Header search bar — sits inside site-header, aligned with header-inner width. */
+?>
+<div class="header-search" id="header-search" role="search" aria-label="Search the web or this site">
+ <div class="header-search-inner">
+ <form id="gh-search-form"
+ class="gh-search-form"
+ method="get"
+ action="https://www.google.ca/search"
+ target="_blank"
+ rel="noopener noreferrer">
+ <div class="unified-search">
+ <div class="search-engine-picker">
+ <button type="button"
+ id="gh-search-engine-toggle"
+ class="search-engine-toggle"
+ aria-haspopup="listbox"
+ aria-expanded="false"
+ aria-label="Choose search engine">G <span class="search-engine-caret" aria-hidden="true">▾</span></button>
+ <ul id="gh-search-engine-menu" class="search-engine-menu" role="listbox" hidden></ul>
+ </div>
+ <label class="visually-hidden" for="gh-search-input">Search query</label>
+ <input type="search"
+ id="gh-search-input"
+ name="q"
+ class="unified-search-input"
+ placeholder="Search Google…"
+ autocomplete="off"
+ enterkeyhint="search" />
+ </div>
+ </form>
+ <ul id="site-search-hits" class="site-search-hits" role="listbox" aria-label="Matching pages on this site" hidden></ul>
+ </div>
+</div> \ No newline at end of file