15 lines
303 B
JavaScript
15 lines
303 B
JavaScript
function getAccepted() {
|
|
var value = localStorage.getItem("accepted");
|
|
return (value = "0");
|
|
}
|
|
|
|
function setAccepted() {
|
|
localStorage.setItem("accepted", accepted ? "0" : "1");
|
|
}
|
|
|
|
function acceptDisclaimer(disclaimer) {
|
|
if (getAccepted() == 0) setAccepted(1);
|
|
else {
|
|
setAccepted(0);
|
|
}
|
|
}
|