cookies should work now
This commit is contained in:
parent
98279a72c0
commit
6e7d0b6467
1 changed files with 2 additions and 3 deletions
|
@ -84,11 +84,10 @@
|
|||
<!-- save most recent signature as a cookie and autoload on page load -->
|
||||
<script>
|
||||
function logSignature() {
|
||||
// save signature to cookie;
|
||||
// save signature to cookie
|
||||
const d = new Date();
|
||||
d.setTime(d.getTime() + (1 * 24 * 60 * 60 * 1000));
|
||||
document.cookie = "signature=" + document.getElementById("signature-input").defaultValue + "; expires=" + d.toUTCString() + ";path=/";
|
||||
alert(document.getElementById("signature-input").defaultValue);
|
||||
document.cookie = "signature=" + document.getElementById("signature-input").value + "; expires=" + d.toUTCString() + ";path=/";
|
||||
}
|
||||
|
||||
// load caches signature
|
||||
|
|
Reference in a new issue