PageSourceSearch

https://discoversaintjohn.com/themes/custom/dsj/js/cookie.js?tltet6

js discoversaintjohn.com collected 2026-10-02 10:21:13 UTC 3,417 bytes, 70 lines download raw bytes

1function clearCookie(name, domain, path) {
2  document.cookie = encodeURIComponent(name) +
3    "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" +
4    (domain ? "; domain=" + domain : "") +
5    (path ? "; path=" + path : "");
6};
7
8window.addEventListener("load", function() {
9  window.cookieconsent.initialise({
10    "palette": {
11      "popup": {
12        "background": "#ffffff",
13        "text": "#307FE2"
14      },
15      "button": {
16        "background": "#307FE2",
17        "text": "#ffffff"
18      }
19    },
20    "theme": "edgeless",
21    "type": "opt-out",
22    "content": {
23      "message": Drupal.t("This website uses cookies to ensure you get the best experience on our website."),
24      "deny": Drupal.t("Deny cookies"),
25      "dismiss": Drupal.t("Got it!"),
26      "href": "/privacy-policy",
27      "link": Drupal.t("Learn more")
28    },
29    onInitialise: function(status) {
30      var type = this.options.type;
31      var didConsent = this.hasConsented();
32      jQuery('.cc-revoke').hide();
33      if (type == 'opt-in' && didConsent) {
vendor: 338 bytes, lines 33-34
33
34        (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create", "
34UA-4891031-3
vendor: 28 bytes, line 34
34", {"cookieDomain":"auto"});
34ga("set", "anonymizeIp", true);ga("send", "pageview");
35      }
36      if (type == 'opt-out' && !didConsent) {
37        clearCookie('_ga','.discoversaintjohn.com','/');
38				clearCookie('_gat_gtag_UA-4891031-3','.discoversaintjohn.com','/');
39				clearCookie('_gid','.discoversaintjohn.com','/');
40      }
41    },
42
43    onStatusChange: function(status, chosenBefore) {
44      var type = this.options.type;
45      var didConsent = this.hasConsented();
46      jQuery('.cc-revoke').hide();
47      if (type == 'opt-in' && didConsent) {
vendor: 338 bytes, lines 47-48
47
48        (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create", "
48UA-4891031-3
vendor: 28 bytes, line 48
48", {"cookieDomain":"auto"});
48ga("set", "anonymizeIp", true);ga("send", "pageview");
49      }
50      if (type == 'opt-out' && !didConsent) {
51        clearCookie('_ga','.discoversaintjohn.com','/');
52				clearCookie('_gat_gtag_UA-4891031-3','.discoversaintjohn.com','/');
53				clearCookie('_gid','.discoversaintjohn.com','/');
54      }
55    },
56
57    onRevokeChoice: function() {
58      var type = this.options.type;
59      jQuery('.cc-revoke').hide();
60      if (type == 'opt-in') {
vendor: 338 bytes, lines 60-61
60
61        (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create", "
61UA-4891031-3
vendor: 28 bytes, line 61
61", {"cookieDomain":"auto"});
61ga("set", "anonymizeIp", true);ga("send", "pageview");
62      }
63      if (type == 'opt-out') {
64        clearCookie('_ga','.discoversaintjohn.com','/');
65				clearCookie('_gat_gtag_UA-4891031-3','.discoversaintjohn.com','/');
66				clearCookie('_gid','.discoversaintjohn.com','/');
67      }
68    },
69  })
70});

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.