PageSourceSearch

https://gwrdc.com.au/wp-content/plugins/mh-cookie-notice/js/mh-cookie-notice.js

js gwrdc.com.au collected 2026-10-02 17:45:33 UTC 955 bytes, 29 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {    
2    return toggleCookieNoticeDisplay();
3});
4
5const acceptCookie = () => {
6    const expireDays = 30;
7    let expiresDate = new Date();
8    expiresDate.setDate(expiresDate.getDate() + expireDays);
9    const expiresString = expiresDate.toUTCString();
10    document.cookie = `mh_cookie_accepted=1; expires = ${expiresString}; path=/`;
11    return checkCookie() ? closeCookieNotice() : openCookieNotice();
12}
13
14const checkCookie = () => {
15    const cookies = document.cookie
16    return cookies.split('; ').find(row => row.startsWith('mh_cookie_accepted')) ? true : false
17}
18
19const openCookieNotice = () => {
20    return document.getElementById("cookie-notice").style.display="block"
21}
22
23const closeCookieNotice = () => {
24    return document.getElementById("cookie-notice").style.display="none"
25}
26
27const toggleCookieNoticeDisplay = () => {
28    return checkCookie() ? closeCookieNotice() : openCookieNotice()
29}

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.