aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.html
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-12-14 12:19:33 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-12-14 12:19:33 +0200
commit869d2c46b3f15a695a3327b764fcab84224f5cba (patch)
treec6208c7f6f2fa9afc97fd020af71e78d7e76c649 /src/index.html
parent87b32ba483204cded170b3b41d651cfddf777856 (diff)
downloadpage-869d2c46b3f15a695a3327b764fcab84224f5cba.tar.zst
Update
Diffstat (limited to '')
-rw-r--r--src/index.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/index.html b/src/index.html
index 5573e60..30e843b 100644
--- a/src/index.html
+++ b/src/index.html
@@ -17,22 +17,26 @@
<div class="logo-large">SEARCH</div>
<div class="tagline">Universal Search Engine</div>
- <div class="search-container">
+ <!-- Wrap in form for better URL handling -->
+ <form class="search-container" onsubmit="event.preventDefault(); search(searchInput.value);">
<div class="search-box">
<div class="search-prefix">→</div>
<input
type="text"
id="search-input"
+ name="q"<!-- Add name attribute -->
placeholder="SEARCH, $TICKER, !N NEWS..."
autofocus
spellcheck="false"
>
<div class="search-actions">
- <button class="action-btn" id="voice-btn" title="VOICE">◉</button>
- <button class="action-btn" id="clear-btn" title="CLEAR">×</button>
+ <button class="action-btn" id="voice-btn" title="VOICE" type="button">◉</button>
+ <button class="action-btn" id="clear-btn" title="CLEAR" type="button">×</button>
</div>
</div>
- </div>
+ <!-- Hidden submit button for accessibility -->
+ <button type="submit" style="display: none;">Search</button>
+ </form>
<div class="shortcuts">
<span class="shortcut" onclick="insertBang('!n')">!N NEWS</span>