cookies should work now

This commit is contained in:
awesomeuser 2023-08-02 21:28:19 +00:00
parent 98279a72c0
commit 6e7d0b6467

View file

@ -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