PageSourceSearch

https://www.poetryproject.org/assets/scripts/cookie-consent.min.js

js poetryproject.org collected 2026-10-01 10:42:35 UTC 2,278 bytes, 1 lines download raw bytes

1function checkCookie(e){for(var o=cookieName+"=",t=document.cookie.split(";"),a=0;a<t.length;a++){for(var i=t[a];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(o))return i.substring(o.length,i.length)}return null}function createBanner(){$("body").append('<div class="cookieBanner"><p>Our website uses cookies (data stored temporarily on the visitor’s computer) to keep statistics of visits and to display the Tweeter feed. If you prefer to disable cookies, the Tweeter feed will be hidden and your visits will not be counted in our statistics. Please <button class="reset allowCookie">allow</button> or <button class="reset refuseCookie">decline</button> cookies.</p></div>')}function createCookie(e,o,t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3);var i="; expires="+a.toGMTString();document.cookie=e+"="+o+i+"; path=/; SameSite=Lax"}function removeBanner(){$(".cookieBanner").remove()}function launchTweeterFeed(){var e=$(".tweeterFeed script"),o=e.attr("data-src");e.attr("src",o)}function harvestStatistics(){var e=$("meta[name=matomoUrl]").attr("content"),o=parseInt($("meta[name=matomoId]").attr("content"));_paq.push(["trackPageView"]),_paq.push(["enableLinkTracking"]),_paq.push(["setTrackerUrl",e+"matomo.php"]),_paq.push(["setSiteId",o]);var t=document,a=t.createElement("script"),i=t.getElementsByTagName("script")[0];a.type="text/javascript",a.async=!0,a.defer=!0,a.src=e+"matomo.js",i.parentNode.insertBefore(a,i)}var enableCookie=!0,cookieDuration=100,cookieName="cookieConsent",allowedValue="allowed",refusedValue="refused",_paq=window._paq||[];$(document).ready(function(){enableCookie&&null!=checkCookie(cookieName)?checkCookie(cookieName)==allowedValue?(createCookie(cookieName,allowedValue,cookieDuration),$("body").addClass("cookies"),launchTweeterFeed(),harvestStatistics()):checkCookie(cookieName)==refusedValue&&(createCookie(cookieName,refusedValue,cookieDuration),$("body").addClass("noCookies")):(createBanner(),$(".allowCookie").click(function(){createCookie(cookieName,allowedValue,cookieDuration),$("body").addClass("cookies"),launchTweeterFeed(),harvestStatistics(),removeBanner()}),$(".refuseCookie").click(function(){createCookie(cookieName,refusedValue,cookieDuration),$("body").addClass("noCookies"),removeBanner()}))});

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.