* 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
10 lines
419 B
JavaScript
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';
|
|
};
|
|
});
|