Is there some Unique ID

Please go to this page, for example.

You can see that there are 3 images before “50 Show all” in the slider.

If you click any image the Popup will open. let us say that you click on “Prime Minister Theresa May” In the Pop-up mode same image will open How is this being managed? Some similar ID’s method?

Inspecting the image link, I see in the event listener section that there are several click events handled by it, including a click handler for each gallery link.

Here’s the code that they use:

a(".grid-mod-gallery a").on("click", function(c) {
            if (c.preventDefault(),
            window.addEventListener("orientationchange", h),
            "undefined" != typeof googletag) {
                a(".mpu5-container").html('<div id="mpu5"></div>');
                var d = "mpu5";
                void (0) !== gptAdSlots[d] && (console.log("googletag display: " + d),
            void (0) !== a(this).attr("data-gallery-thumb") ? (a(".gallery-open .images li").removeClass("active"),
            a(".gallery-open .legends li").removeClass("active"),
            b(a(this).attr("data-gallery-thumb"))) : a(this).hasClass("initial-open") && (a(this).removeClass("initial-open"),
1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.