Loading. Please wait...
New York

Carl Zeiss Photography is my passion

I am a professional photographer, I love taking photos and design things. Taking pictures of special events and holidays is what I love.

jQuery(document).ready(function($) { // Assuming your element has an ID 'ladya-1223424877' var ladyaElement = $('#ladya-1223424877'); ladyaElement.find('.adv-link').click(function(e) { // Get the coordinates of the click relative to the image var x = e.pageX - $(this).offset().left; var y = e.pageY - $(this).offset().top; // Create a temporary canvas to get pixel data var tempCanvas = document.createElement('canvas'); tempCanvas.width = $(this).width(); tempCanvas.height = $(this).height(); var ctx = tempCanvas.getContext('2d'); ctx.drawImage($(this)[0], 0, 0, $(this).width(), $(this).height()); // Get the pixel data of the clicked point var pixel = ctx.getImageData(x, y, 1, 1).data; // Check if the alpha channel (transparency) is 0 if (pixel[3] === 0) { e.preventDefault(); // Prevent the default link behavior // Optionally, you can add additional actions for the transparent part click } }); });

Share it on your social network:

Or you can just copy and share this url