whoogle-search/app/templates
Ben Busby 01fe0c02a5
Add button to clear search input on mobile
This was unfortunately a bit more complex than just adding an HTML reset
button, since reset buttons only "reset" input content to its original
value rather than clearing it. This doesn't work for Whoogle's needs,
since inputs on search result pages are auto populated with the search
content as their default value.

A reset button was introduced anyways, but is controlled by a few lines
of javascript to allow completely clearing the search input. The button
will only appear on mobile searches.

At the moment, it isn't particularly pretty, but is functional. It uses
just a plain "x" character and is always visible on mobile search result
pages. This leaves plenty of room for improvement moving forward.

Fixes #291
2021-04-21 11:38:19 -04:00
..
display.html Add button to clear search input on mobile 2021-04-21 11:38:19 -04:00
error.html Send CSP header in all responses 2021-04-05 11:00:56 -04:00
header.html Add button to clear search input on mobile 2021-04-21 11:38:19 -04:00
index.html Disable autocorrect on mobile search inputs 2021-04-21 10:48:26 -04:00
logo.html Expand custom css theming support 2021-04-09 11:00:02 -04:00
opensearch.xml Handle FF sending bad search suggestion param 2020-10-28 23:02:41 -04:00