0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-22 05:58:21 -05:00

feat: add clear button near the search bar input field (#394)

This commit is contained in:
neon_arch 2024-09-29 21:44:08 +03:00
parent b59c90157b
commit 9ff9493f8e

View File

@ -16,6 +16,9 @@ pub fn bar(query: &str) -> Markup {
html!( html!(
(PreEscaped("<div class=\"search_bar\">")) (PreEscaped("<div class=\"search_bar\">"))
input type="search" name="search-box" value=(query) placeholder="Type to search"; input type="search" name="search-box" value=(query) placeholder="Type to search";
button type="reset" onclick="clearSearchText()" {
img src="./images/close.svg" alt="Clear button icon for clearing search input text";
}
button type="submit" onclick="searchWeb()" { button type="submit" onclick="searchWeb()" {
img src="./images/magnifying_glass.svg" alt="Info icon for error box"; img src="./images/magnifying_glass.svg" alt="Info icon for error box";
} }