From 986169d9f2a901a86f5a1d9522b5e7f673b5aae6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 27 Oct 2023 16:06:50 +0300 Subject: [PATCH] remove unnecessary if condition --- .../templates/events/shared/eye_tracking.html | 158 +++++++++--------- 1 file changed, 78 insertions(+), 80 deletions(-) diff --git a/files/templates/events/shared/eye_tracking.html b/files/templates/events/shared/eye_tracking.html index c1e3abf4f..b525d7998 100644 --- a/files/templates/events/shared/eye_tracking.html +++ b/files/templates/events/shared/eye_tracking.html @@ -4,94 +4,92 @@ sidebar image - {% if not hole %} - {% set coordsLookup = ({ - "1.webp":({ - "left":({ - "x":"72px", - "y":"-205px" - }), - "right":({ - "x":"112px", - "y":"-209px" - }) + {% set coordsLookup = ({ + "1.webp":({ + "left":({ + "x":"72px", + "y":"-205px" }), - "2.webp":({ - "left":({ - "x":"35px", - "y":"-335px" - }), - "right":({ - "x":"60px", - "y":"-337px" - }) + "right":({ + "x":"112px", + "y":"-209px" + }) + }), + "2.webp":({ + "left":({ + "x":"35px", + "y":"-335px" }), - "3.webp":({ - "left":({ - "x":"88px", - "y":"-272px" - }), - "right":({ - "x":"112px", - "y":"-276px" - }) + "right":({ + "x":"60px", + "y":"-337px" + }) + }), + "3.webp":({ + "left":({ + "x":"88px", + "y":"-272px" }), - "4.webp":({ - "left":({ - "x":"28px", - "y":"-152px" - }), - "right":({ - "x":"32px", - "y":"-152px" - }) + "right":({ + "x":"112px", + "y":"-276px" + }) + }), + "4.webp":({ + "left":({ + "x":"28px", + "y":"-152px" }), - "5.webp":({ - "left":({ - "x":"58px", - "y":"-155px" - }), - "right":({ - "x":"82px", - "y":"-160px" - }) + "right":({ + "x":"32px", + "y":"-152px" + }) + }), + "5.webp":({ + "left":({ + "x":"58px", + "y":"-155px" }), - "6.webp":({ - "left":({ - "x":"125px", - "y":"-219px" - }), - "right":({ - "x":"153px", - "y":"-219px" - }) + "right":({ + "x":"82px", + "y":"-160px" + }) + }), + "6.webp":({ + "left":({ + "x":"125px", + "y":"-219px" }), - "7.webp":({ - "left":({ - "x":"102px", - "y":"-205px" - }), - "right":({ - "x":"107px", - "y":"-205px" - }) + "right":({ + "x":"153px", + "y":"-219px" + }) + }), + "7.webp":({ + "left":({ + "x":"102px", + "y":"-205px" }), - "8.webp":({ - "left":({ - "x":"116px", - "y":"-203px" - }), - "right":({ - "x":"125px", - "y":"-203px" - }) + "right":({ + "x":"107px", + "y":"-205px" + }) + }), + "8.webp":({ + "left":({ + "x":"116px", + "y":"-203px" }), - }) %} -
- - -
- {% endif %} + "right":({ + "x":"125px", + "y":"-203px" + }) + }), + }) %} +
+ + +