forked from rDrama/rDrama
1
0
Fork 0

remove unnecessary if condition

master
Aevann 2023-10-27 16:06:50 +03:00
parent cb639e821e
commit 986169d9f2
1 changed files with 78 additions and 80 deletions

View File

@ -4,94 +4,92 @@
<a href="{{image}}" style="text-decoration:none"> <a href="{{image}}" style="text-decoration:none">
<img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{image}}" width="100%"> <img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{image}}" width="100%">
{% if not hole %} {% set coordsLookup = ({
{% set coordsLookup = ({ "1.webp":({
"1.webp":({ "left":({
"left":({ "x":"72px",
"x":"72px", "y":"-205px"
"y":"-205px"
}),
"right":({
"x":"112px",
"y":"-209px"
})
}), }),
"2.webp":({ "right":({
"left":({ "x":"112px",
"x":"35px", "y":"-209px"
"y":"-335px" })
}), }),
"right":({ "2.webp":({
"x":"60px", "left":({
"y":"-337px" "x":"35px",
}) "y":"-335px"
}), }),
"3.webp":({ "right":({
"left":({ "x":"60px",
"x":"88px", "y":"-337px"
"y":"-272px" })
}), }),
"right":({ "3.webp":({
"x":"112px", "left":({
"y":"-276px" "x":"88px",
}) "y":"-272px"
}), }),
"4.webp":({ "right":({
"left":({ "x":"112px",
"x":"28px", "y":"-276px"
"y":"-152px" })
}), }),
"right":({ "4.webp":({
"x":"32px", "left":({
"y":"-152px" "x":"28px",
}) "y":"-152px"
}), }),
"5.webp":({ "right":({
"left":({ "x":"32px",
"x":"58px", "y":"-152px"
"y":"-155px" })
}), }),
"right":({ "5.webp":({
"x":"82px", "left":({
"y":"-160px" "x":"58px",
}) "y":"-155px"
}), }),
"6.webp":({ "right":({
"left":({ "x":"82px",
"x":"125px", "y":"-160px"
"y":"-219px" })
}), }),
"right":({ "6.webp":({
"x":"153px", "left":({
"y":"-219px" "x":"125px",
}) "y":"-219px"
}), }),
"7.webp":({ "right":({
"left":({ "x":"153px",
"x":"102px", "y":"-219px"
"y":"-205px" })
}), }),
"right":({ "7.webp":({
"x":"107px", "left":({
"y":"-205px" "x":"102px",
}) "y":"-205px"
}), }),
"8.webp":({ "right":({
"left":({ "x":"107px",
"x":"116px", "y":"-205px"
"y":"-203px" })
}), }),
"right":({ "8.webp":({
"x":"125px", "left":({
"y":"-203px" "x":"116px",
}) "y":"-203px"
}), }),
}) %} "right":({
<div class="d-none d-lg-block" style="position:absolute; pointer-events: none"> "x":"125px",
<img class="eye" src="{{SITE_FULL_IMAGES}}/assets/events/shared/images/eye.webp" loading="lazy" style="left:{{[coordsLookup][0][selected_image]['left']['x']}};top:{{[coordsLookup][0][selected_image]['left']['y']}}"> "y":"-203px"
<img class="eye" src="{{SITE_FULL_IMAGES}}/assets/events/shared/images/eye.webp" loading="lazy" style="left:{{[coordsLookup][0][selected_image]['right']['x']}};top:{{[coordsLookup][0][selected_image]['right']['y']}}"> })
</div> }),
{% endif %} }) %}
<div class="d-none d-lg-block" style="position:absolute; pointer-events: none">
<img class="eye" src="{{SITE_FULL_IMAGES}}/assets/events/shared/images/eye.webp" loading="lazy" style="left:{{[coordsLookup][0][selected_image]['left']['x']}};top:{{[coordsLookup][0][selected_image]['left']['y']}}">
<img class="eye" src="{{SITE_FULL_IMAGES}}/assets/events/shared/images/eye.webp" loading="lazy" style="left:{{[coordsLookup][0][selected_image]['right']['x']}};top:{{[coordsLookup][0][selected_image]['right']['y']}}">
</div>
</a> </a>
<script defer src="{{'events/shared/js/eye_tracking.js' | asset}}" ></script> <script defer src="{{'events/shared/js/eye_tracking.js' | asset}}" ></script>