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 eff0884498 [simple] ImageLayout.watch: img_load_error.svg if img load fails
Show default image `img/img_load_error.svg` when image can't be loaded.

----
Some words about class ImageLayout:

The https://github.com/searxng/searxng/blob/master/searx/static/themes/simple/js/searxng.js is build by a grunt task ..

d0e21a01b4/searx/static/themes/simple/gruntfile.js (L91-L93)

The `/__common__/js/*.js` concats also https://github.com/searxng/searxng/blob/master/searx/static/themes/__common__/js/image_layout.js where a modified copy of the of the "Google-image-layout" (`ImageLayout`) is implemented [1][2][3].

[1] https://ptgamr.github.io/2014-09-12-google-image-layout/
[2] https://ptgamr.github.io/google-image-layout/src/google-image-layout.js
[3] https://github.com/ptgamr/google-image-layout/tree/master
----

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29 21:10:13 +01:00
..
css [build] /static 2021-11-29 20:48:38 +01:00
img [build] /static 2021-11-29 20:37:23 +01:00
js [build] /static 2021-11-21 21:40:49 +01:00
src [fix] simple theme: set img background color to wallpaper's color 2021-11-29 20:47:37 +01:00
.eslintrc.json [fix] Optimize SVG for WEB usage / CSP 'style-src self' 2021-11-15 14:51:55 +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 [simple] ImageLayout.watch: img_load_error.svg if img load fails 2021-11-29 21:10:13 +01:00
package.json [mod] simple theme: use sharp instead of convert to create .png from .svg 2021-11-28 20:05:37 +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] Optimize SVG for WEB usage / CSP 'style-src self' 2021-11-15 14:51:55 +01:00