aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.html
diff options
context:
space:
mode:
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>