1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-05 04:40:11 +01:00
searxng/searx/static/themes/simple
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
..
css [build] /static 2021-12-15 14:47:43 +01:00
img [build] /static 2021-12-18 21:25:22 +01:00
js [build] /static 2021-12-15 10:45:25 +01:00
src [fix] simple theme: hide the image if img load fails 2021-12-29 14:30:16 +01:00
.eslintrc.json [mod] SearXNG JavaScript Style Guide (eslint:recommended) 2021-12-14 06:50:26 +01:00
.gitignore [themes] ignore packages-lock.json 2021-06-22 08:17:06 +02:00
.jshintrc [emacs] .dir-locals.el: add setup for js-mode 2021-06-24 13:27:21 +02:00
.stylelintrc.json [mod] add stylelint process to target themes.simple 2021-06-24 13:27:21 +02:00
gruntfile.js [fix] theme: build img_load_error.svg as svg 2021-12-18 21:24:59 +01:00
package.json [simple theme] activate - SearXNG JavaScript Style Guide 2021-12-14 07:50:53 +01:00
svg4favicon.svgo.js [enh] add SVG favicon href="favicon.svg" type="image/svg+xml" 2021-11-29 20:36:31 +01:00
svg4web.svgo.js [fix] eslint --fix 2021-12-14 07:31:58 +01:00