aowow/static/js/consent.js
Sarjuuk e421bdba79 PageTemplate/Cookies
* set path and domain on consent cookie
 * if page uses https, tag cookies as secure
 * use samesite=lax so cookies get sent if user visits via external link
2026-02-09 09:14:07 +01:00

10 lines
419 B
JavaScript

$(document).ready(function() {
$WH.qs('#consent-overlay #accept-btn').onclick = function () {
$WH.sc('consent', 1000, 1, '/', location.hostname);
$WH.ge('consent-overlay').style.display = 'none';
};
$WH.qs('#consent-overlay #reject-all').onclick = function () {
$WH.sc('consent', 1000, 0, '/', location.hostname);
$WH.ge('consent-overlay').style.display = 'none';
};
});