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