Religion and sex education

” +


});

        var $context =
        jq(this);
        var creCookie = jq.cookie(cookieName) || false;
        if (creCookie) {
            jq(this).trigger('notify-hide');
        } else {
            /* Use smartscroll listener to fire the panel at end of article */
            jq(window).smartscroll(function () {
                //Calculate how far down the page the user has scrolled
                var scrollPos = (jq(window).scrollTop() / jq('div.article_bodycopy').height()) * 100;
                scrollPos = Math.round(scrollPos);

                if (scrollPos > 75) {
                    showContent++;
                    if (showContent == 1) {
                        jq.notify({
                            headline: articleheadline,
                            image: articleimage
                        }, readNextOptions);

                        dataLayer.push({
                            'category': evtCategory,
                            'action': 'Shown https://www.irishtimes.com/culture/art-and-design/visual-art/the-owners-faces-turned-pale-they-were-speechless-how-a-3m-painting-was-discovered-1.4545686, bottom of page',
                            'label': evtLabel
                        }, {'event': 'data-layer-event'});
                    }
                }
                // AUD-256 //
                if (jq("#wrapper").hasClass("pl-enabled")){
                    jq(".notifyjs-corner").css('bottom', '70px');
                }
            }); // end scroll
        }
        /* Tracking of CRE elements via GTM */
        /* Dismiss button on the top RHS of the card */
        jq(document).on('click', '.read-next--dismiss', function (e) {
            dataLayer.push({
                'category': evtCategory,
                'action': 'Closed https://www.irishtimes.com/culture/art-and-design/visual-art/the-owners-faces-turned-pale-they-were-speechless-how-a-3m-painting-was-discovered-1.4545686, bottom of page',
                'label': evtLabel
            }, {'event': 'data-layer-event'});
        });
        /* Read Next title More Information */
        jq(document).on('click', '.read-next--title', function (e) {
            dataLayer.push({
                'category': evtCategory,
                'action': 'More info https://www.irishtimes.com/culture/art-and-design/visual-art/the-owners-faces-turned-pale-they-were-speechless-how-a-3m-painting-was-discovered-1.4545686, bottom of page',
                'label': evtLabel
            }, {'event': 'data-layer-event'});
        });
        /* Article link Headline */
        jq(document).on('click', '.read-next--headline', function (e) {
            dataLayer.push({
                'category': evtCategory,
                'action': 'Clicked https://www.irishtimes.com/culture/art-and-design/visual-art/the-owners-faces-turned-pale-they-were-speechless-how-a-3m-painting-was-discovered-1.4545686, bottom of page',
                'label': evtLabel
            }, {'event': 'data-layer-event'});
        });
        /* Article link 'READ NOW' button */
        jq(document).on('click', '.read-next--read', function (e) {
            dataLayer.push({
                'category': evtCategory,
                'action': 'Clicked READ NOW https://www.irishtimes.com/culture/art-and-design/visual-art/the-owners-faces-turned-pale-they-were-speechless-how-a-3m-painting-was-discovered-1.4545686, bottom of page',
                'label': evtLabel
            }, {'event': 'data-layer-event'});
        });
        /* 'OK GOT IT' button */
        jq(document).on('click', '.read-next--ok', function (e) {
            dataLayer.push({
                'category': evtCategory,
                'action': 'Accept https://www.irishtimes.com/culture/art-and-design/visual-art/the-owners-faces-turned-pale-they-were-speechless-how-a-3m-painting-was-discovered-1.4545686, bottom of page',
                'label': evtLabel
            }, {'event': 'data-layer-event'});
        });
        /* Opt Out button */
        jq(document).on('click', '.read-next--optout', function (e) {
            dataLayer.push({
                'category': evtCategory,
                'action': 'Opt Out https://www.irishtimes.com/culture/art-and-design/visual-art/the-owners-faces-turned-pale-they-were-speechless-how-a-3m-painting-was-discovered-1.4545686, bottom of page',
                'label': evtLabel
            }, {'event': 'data-layer-event'});
        });
    });
Facebook Comments

Leave a Reply

Translate »

This website uses cookies. By continuing to use this site, you accept our use of cookies.  Learn more

Share This