mirror of https://gitlab.com/curben/blog
feat: add tooltip to search button
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc inline svg doesn't require xmlns attribute https://github.com/svg/svgo/blob/master/plugins/removeXMLNS.js
This commit is contained in:
parent
bc4082ac06
commit
045882e527
|
@ -7,7 +7,13 @@
|
|||
|
||||
<div class="searchContainer">
|
||||
<input class="searchBox" type="text" id="search" placeholder="Search...">
|
||||
<a class="searchBtn no-underline" href="#" onClick="window.open(`https://gitlab.com/search?utf8=%E2%9C%93&search=` + document.getElementById(`search`).value + `&group_id=&project_id=8306723&search_code=true&repository_ref=master`)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><use href="/svg/search.svg#search" title="Search"/></svg></a>
|
||||
<a class="searchBtn no-underline" href="#" onClick="window.open(`https://gitlab.com/search?utf8=%E2%9C%93&search=` + document.getElementById(`search`).value + `&group_id=&project_id=8306723&search_code=true&repository_ref=master`)">
|
||||
<svg viewBox="0 0 512 512">
|
||||
<title>Search</title>
|
||||
<desc>Search icon</desc>
|
||||
<use href="/svg/search.svg#search"/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
<%/* Nav menu for mobile */%>
|
||||
|
|
Loading…
Reference in New Issue