PageSourceSearch

https://www.hologic.co.uk/themes/custom/hologic/global/js/cookie-consent.js?tm4wcr

js hologic.co.uk collected 2026-09-30 20:50:15 UTC 569 bytes, 22 lines download raw bytes

1(function ($) {
2  'use strict';
3
4  setCookie();
5  checkIfCookieExists();
6
7  // - - - Set a cookie when clicking on newsletter popup buttons - - -
8  function setCookie() {
9    $(".js-cookie-banner__btn").on("click", function () {
10      Cookies.set('cookie-consent-banner', 'accepted')
11      $(".js-cookie-banner").addClass("has-cookie");
12    })
13  }
14
15  // - - - Hide newsletter popup if cookie already exists - - -
16  function checkIfCookieExists() {
17    if (Cookies.get('cookie-consent-banner') != undefined) {
18      $(".js-cookie-banner").hide();
19    }
20  }
21
22})(jQuery);

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.