mirror of https://gitlab.com/curben/blog
fix(search): "search" icon as enterkey
- https://www.smashingmagazine.com/2022/03/html-attributes-you-never-use/ - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search
This commit is contained in:
parent
80999674ac
commit
b687cd6666
|
@ -8,8 +8,8 @@
|
|||
<% }} %>
|
||||
|
||||
<div class="search-container">
|
||||
<form id="searchForm" method="post" action="https://duckduckgo.com/" rel="noopener external nofollow noreferrer">
|
||||
<input type="text" name="q" class="search-box" placeholder="Search..." title="Powered by DuckDuckGo">
|
||||
<form id="searchForm" method="post" action="https://duckduckgo.com/" rel="noopener external nofollow noreferrer" role="search">
|
||||
<input type="search" name="q" class="search-box" placeholder="Search..." title="Powered by DuckDuckGo" enterkeyhint="search">
|
||||
<input type="hidden" name="sites" value="<%- config.url.replace(/^http(s)?:\/\//, '') %>">
|
||||
<input type="hidden" name="kd" value="-1">
|
||||
<input type="hidden" name="kg" value="p">
|
||||
|
@ -28,8 +28,8 @@
|
|||
<input id="mobile-menu-toggle" type="checkbox"/>
|
||||
<ul id="mobile-nav-link">
|
||||
<div class="search-container">
|
||||
<form id="searchFormMob" method="post" action="https://duckduckgo.com/" rel="noopener external nofollow noreferrer">
|
||||
<input type="text" name="q" class="search-box" placeholder="Search..." title="Powered by DuckDuckGo">
|
||||
<form id="searchFormMob" method="post" action="https://duckduckgo.com/" rel="noopener external nofollow noreferrer" role="search">
|
||||
<input type="search" name="q" class="search-box" placeholder="Search..." title="Powered by DuckDuckGo" enterkeyhint="search">
|
||||
<input type="hidden" name="sites" value="<%- config.url.replace(/^http(s)?:\/\//, '') %>">
|
||||
<input type="hidden" name="kd" value="-1">
|
||||
<input type="hidden" name="kg" value="p">
|
||||
|
|
Loading…
Reference in New Issue