typehere_docker/script.js
2023-11-18 17:40:49 -08:00

11 lines
317 B
JavaScript

document.addEventListener('DOMContentLoaded', () => {
const typingCanvas = document.getElementById('typingCanvas');
typingCanvas.value = localStorage.getItem('storedText') || '';
typingCanvas.addEventListener('input', () => {
localStorage.setItem('storedText', typingCanvas.value);
});
});