Update index.php
This commit is contained in:
parent
d41b473f39
commit
3a5b101479
1 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
||||
|
|
Reference in a new issue