如何在AgeGate上插入Cookie?
这是我的代码:
document.addEventListener('DOMContentLoaded', function(e) {
/**
* AgeGate object imported and attached to window.AgaGate
*/
var gate = new AgeGate({
// set options
form: document.querySelector('form'),
countries: true,
}, function(err) {
// handle post-validation action
if (err)
alert('Age check failed!');
else
$('#age-gate').hide();
});
});