1const consentBannerContainer = document.getElementById("consent-banner-container"); 2const consentBannerLink = document.getElementById("consent-banner-link"); 3 4function init() { 5 document.querySelectorAll(".consent-btn").forEach(btn => { 6 btn.addEventListener("click", function () { 7 let selection = btn.getAttribute("data-option"); 8 9 $.ajax({ 10 type: "POST", 11 cache: false, 12 url: "/ws/external/consent-banner-selection/?selection=" + selection, 13 success: function () { 14 consentBannerContainer.classList.add("hide"); 15 }, 16 error: function () { 17 console.log("Error submitting consent selection"); 18 } 19 }); 20 }) 21 }) 22 23 if (consentBannerLink) { 24 consentBannerLink.addEventListener("click", function (e) { 25 e.preventDefault(); 26 if (consentBannerContainer) { 27 consentBannerContainer.classList.remove("hide"); 28 } 29 }) 30 } 31} 32 33init();
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.