From a5a2f90e8b6c39fa09b8708507893f95091e958e Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 19 Sep 2024 10:16:17 +0200 Subject: [PATCH] chg: [show domain screenshots] replace canevas by img blur --- .../crawler/crawler_splash/showDomain.html | 158 +++++++----------- .../objects/image/block_blur_img_slider.html | 9 +- 2 files changed, 64 insertions(+), 103 deletions(-) diff --git a/var/www/templates/crawler/crawler_splash/showDomain.html b/var/www/templates/crawler/crawler_splash/showDomain.html index ea8075e8..14ca0da0 100644 --- a/var/www/templates/crawler/crawler_splash/showDomain.html +++ b/var/www/templates/crawler/crawler_splash/showDomain.html @@ -423,12 +423,16 @@ {% endfor %} - - {%if item['crawler']["screenshot"]%} - - - {%endif%} - + {%if item['crawler']["screenshot"]%} + + + + + + {% else %} + + {%endif%} + {% endfor %} @@ -474,32 +478,12 @@
-
-
-
-
- -
-
- -
-
- -
-
-
-
- +{# button usafe if not tag safe #} + +
+ {% include 'objects/image/block_blur_img_slider.html' %} +
+
@@ -557,88 +541,58 @@ function toggle_sidebar(){ - diff --git a/var/www/templates/objects/image/block_blur_img_slider.html b/var/www/templates/objects/image/block_blur_img_slider.html index c13372f7..bf0813e1 100644 --- a/var/www/templates/objects/image/block_blur_img_slider.html +++ b/var/www/templates/objects/image/block_blur_img_slider.html @@ -11,7 +11,7 @@
- @@ -31,4 +31,11 @@ images[i].style.filter = "blur(" + blurValue + "px)"; } } + function blur_unsafe(){ + blur_slider.val(0); + blur_images(); + let btn = $('#btn_unblur_img'); + btn.removeClass("btn-secondary") + btn.addClass("btn-danger"); + } \ No newline at end of file