| <?php | |
| function hasCookieConsent() { | |
| return isset($_COOKIE['eclipse_cookieconsent_status']) | |
| && $_COOKIE['eclipse_cookieconsent_status'] === 'allow'; | |
| } | |
| ?> | |
| <script defer> | |
| setTimeout(function () { | |
| var cookieButtons = document.querySelectorAll('.cc-compliance .cc-btn') | |
| for (var i=0; i<cookieButtons.length; i++) { | |
| cookieButtons[i].addEventListener("click", function () { | |
| location.reload() | |
| }); | |
| } | |
| }, 1000) | |
| </script> |