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 -->
|
<!-- save most recent signature as a cookie and autoload on page load -->
|
||||||
<script>
|
<script>
|
||||||
function logSignature() {
|
function logSignature() {
|
||||||
// save signature to cookie;
|
// save signature to cookie
|
||||||
const d = new Date();
|
const d = new Date();
|
||||||
d.setTime(d.getTime() + (1 * 24 * 60 * 60 * 1000));
|
d.setTime(d.getTime() + (1 * 24 * 60 * 60 * 1000));
|
||||||
document.cookie = "signature=" + document.getElementById("signature-input").defaultValue + "; expires=" + d.toUTCString() + ";path=/";
|
document.cookie = "signature=" + document.getElementById("signature-input").value + "; expires=" + d.toUTCString() + ";path=/";
|
||||||
alert(document.getElementById("signature-input").defaultValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// load caches signature
|
// load caches signature
|
||||||
|
|
Reference in a new issue