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),
                googletag.display(d),
                googletag.pubads().refresh([gptAdSlots[d]]))
            }
            ;a("body").addClass("fullscreen-gallery"),
            a(this).parents(".grid-mod-gallery").next(".full-gallery").addClass("gallery-open"),
            void (0) !== a(this).attr("data-gallery-thumb") ? (a(".gallery-open .images li").removeClass("active"),
            a(".gallery-open .legends li").removeClass("active"),
            a(this).parents("article").find(".show-all").removeClass("initial-open"),
            b(a(this).attr("data-gallery-thumb"))) : a(this).hasClass("initial-open") && (a(this).removeClass("initial-open"),
            b(1))
        }),
1 Like

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