Update index.php

This commit is contained in:
awesomeuser 2023-08-02 21:14:44 +00:00
parent d41b473f39
commit 3a5b101479

View file

@ -83,11 +83,14 @@
<!-- save most recent signature as a cookie and autoload on page load -->
<script>
document.getElementById("signature-input").defaultValue = "cookie";
function logSignature() {
// save signature to cookie
alert(document.getElementById("signature-input").defaultValue);
document.cookie = "signature=" + document.getElementById("signature-input").defaultValue;
}
// load caches signature
if (document.cookie.includes('=')) {
document.getElementById("signature-input").defaultValue = document.cookie.split('=')[1];
}
</script>