From eff08844987eb184ea67a0a96d2ca4089f72f2d9 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 29 Nov 2021 16:27:16 +0100 Subject: [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 .. https://github.com/searxng/searxng/blob/d0e21a01b4e14df905f25445a3f6bcbec481671c/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 --- src/brand/img_load_error.svg | 71 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/brand/img_load_error.svg (limited to 'src') diff --git a/src/brand/img_load_error.svg b/src/brand/img_load_error.svg new file mode 100644 index 000000000..4bd867c5c --- /dev/null +++ b/src/brand/img_load_error.svg @@ -0,0 +1,71 @@ + + + + + + + + image/svg+xml + + + + + + + + + -- cgit v1.2.3-54-g00ecf