PageSourceSearch

https://lymphoma-action.org.uk/themes/custom/lymphoma/assets/js/youtube-cookie-consent.js?tluzpv

js lymphoma-action.org.uk collected 2026-09-24 11:09:25 UTC 1,203 bytes, 39 lines download raw bytes

1/*function updateVideoAspect() {
2  var videoWrappers = document.querySelectorAll(".video-wrapper");
3
4  videoWrappers.forEach(function(videoWrapper) {
5    if (Cookiebot.consent.marketing) {
6      videoWrapper.style.aspectRatio = "16 / 9"; // Set correct aspect ratio
7    } else {
8      videoWrapper.style.aspectRatio = "auto"; // Remove aspect-ratio if no consent
9    }
10  });
11}
12
13// Run on page load
14window.addEventListener("load", updateVideoAspect);
15
16// Listen for Cookiebot consent changes
17window.addEventListener("CookiebotOnConsentReady", updateVideoAspect);
18window.addEventListener("CookiebotOnAccept", updateVideoAspect);*/
19
20/*
21window.addEventListener('CookiebotOnAccept', function() {
22  if (Cookiebot.consent.marketing) {
23    window.dataLayer = window.dataLayer || [];
24    dataLayer.push({ event: 'cookie_consent_marketing_granted' });
25  }
26});*/
27
28
29Cookiebot.onaccept = function () {
30  if (Cookiebot.consent && Cookiebot.consent.marketing) {
31    window.dataLayer = window.dataLayer || [];
32    dataLayer.push({ event: 'cookie_consent_marketing_granted' });
33
34    // Optional: re-trigger GTM YouTube listener
35    setTimeout(function(){
36      dataLayer.push({ event: 'gtm.video' });
37    }, 1000);
38  }
39}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.