1
0
mirror of https://github.com/searxng/searxng.git synced 2024-10-05 19:10:10 +02:00
searxng/searx
Markus Heiser f75199b1ec [fix] simple theme: hide the image if img load fails
Add event listener to query selector::

    '#urls img.image'

From the user point of view, I think it is better to hide the image:
img_load_error.svg is helplful in the image category because it still allows to
select the image. IMO, in the news category, the fact there is a missing image
won't help to choose the links. From a developer point of view, the place holder
is signal that may be the engine needs to be updated (at least give a look). The
browser console should show the same information too, but it requires some
additional steps. [1]

[1] https://github.com/searxng/searxng/pull/610#issuecomment-997640132

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-29 14:30:16 +01:00
..
answerers [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
data [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
engines [pylint] Bing (Videos) engine 2021-12-28 14:33:05 +01:00
metrics [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
network [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
plugins [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
search [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
shared [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
static [fix] simple theme: hide the image if img load fails 2021-12-29 14:30:16 +01:00
templates [fix] lazy loading of <img> tags 2021-12-15 10:39:55 +01:00
translations [translations] update from Weblate 2021-12-24 07:18:11 +00:00
__init__.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
autocomplete.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
exceptions.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
external_bang.py [pylint] fix global-variable-not-assigned issues 2021-09-17 10:14:27 +02:00
external_urls.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
flaskfix.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
languages.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
locales.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
preferences.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
query.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
results.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
settings_defaults.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
settings_loader.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
settings.yml [del] remove geektimes (redirects to habrahabr) 2021-12-22 13:20:56 +01:00
unixthreadname.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
utils.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
version.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
webadapter.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
webapp.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
webutils.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00