Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
srv
/
data
/
web
/
vhosts
/
716cf56cb2.url-de-test.ws
/
htdocs
/
assets
/
js
/
//proc/thread-self/root/srv/data/web/vhosts/716cf56cb2.url-de-test.ws/htdocs/assets/js/zoomImage.js
// Zoom pour les images $(function () { $(".zoom-img").each(function () { $(this).wrap("<div class='zoom-img-open'></div>") let imgSrc = $(this).find("img").attr("src"); $(this).css('background-image', 'url(' + imgSrc + ')'); }) $(".zoom-img-open").click(function () { let w = $(this).outerWidth() let h = $(this).outerHeight() let x = $(this).offset().left let y = $(this).offset().top $(".active").not($(this)).remove() let copy = $(this).clone(); copy.insertAfter($(this)).height(h).width(w).delay(500).addClass("active") $(".active").css('top', y - 8); $(".active").css('left', x - 8); setTimeout(function () { copy.addClass("positioned") }, 0) }) }) $(document).on("click", ".zoom-img-open.active", function () { let copy = $(this) copy.removeClass("positioned active").addClass("postactive") setTimeout(function () { copy.remove(); }, 500) })