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 | 174 +++++++----------- .../objects/image/block_blur_img_slider.html | 9 +- 2 files changed, 72 insertions(+), 111 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 @@
Capture {% if not dict_domain["crawler_history_items"] %}: Domain DOWN{% end {% endfor %} - - {%if item['crawler']["screenshot"]%} - - - {%endif%} - + {%if item['crawler']["screenshot"]%} + + + + + + {% else %} + + {%endif%} + {% endfor %} @@ -474,32 +478,12 @@
Capture {% if not dict_domain["crawler_history_items"] %}: Domain DOWN{% end
-
-
-
-
- -
-
- -
-
- -
-
-
-
- +{# button usafe if not tag safe #} + +
+ {% include 'objects/image/block_blur_img_slider.html' %} +
+
@@ -557,88 +541,58 @@
Capture {% if not dict_domain["crawler_history_items"] %}: Domain DOWN{% end - 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