typehere_docker/script.js

11 lines
317 B
JavaScript
Raw Normal View History

2023-11-19 01:40:49 +00:00
document.addEventListener('DOMContentLoaded', () => {
const typingCanvas = document.getElementById('typingCanvas');
typingCanvas.value = localStorage.getItem('storedText') || '';
typingCanvas.addEventListener('input', () => {
localStorage.setItem('storedText', typingCanvas.value);
});
});