5000 Boxes
[be sure to click SAVE for any entry]

Text Boxes - Home
'); printWindow.document.close(); printWindow.print(); }); const copyButton = document.createElement('a'); copyButton.className = 'copyButton'; copyButton.href = '#'; copyButton.innerText = 'Copy'; copyButton.addEventListener('click', (event) => { event.preventDefault(); const id3 = event.target.getAttribute('data-id3'); const correspondingTextarea = document.querySelector('textarea[data-id3="' + id3 + '"]'); navigator.clipboard.writeText(correspondingTextarea.value).then(() => { alert('Content copied to clipboard'); }); }); const buttonContainer = document.createElement('div'); buttonContainer.appendChild(saveButton); buttonContainer.appendChild(backToTopLink); buttonContainer.appendChild(clearSearchLink); buttonContainer.appendChild(clearGoToLink); buttonContainer.appendChild(nextOccurrenceLink); buttonContainer.appendChild(printButton); buttonContainer.appendChild(copyButton); printButton.setAttribute('data-id3', i); copyButton.setAttribute('data-id3', i); container.appendChild(textarea); container.appendChild(buttonContainer); } searchBox.addEventListener('input', (event) => { const searchTerm = event.target.value.toLowerCase(); const textareas = document.querySelectorAll('.textbox'); textareas.forEach((textarea) => { const content = textarea.value.toLowerCase(); if (content.includes(searchTerm)) { textarea.style.display = 'block'; textarea.nextElementSibling.style.display = 'block'; } else { textarea.style.display = 'none'; textarea.nextElementSibling.style.display = 'none'; } }); }); const goToFunction = () => { const goToTerm = goToBox.value.toLowerCase(); const textareas = document.querySelectorAll('.textbox'); for (let i = 0; i < textareas.length; i++) { const content = textareas[i].value.toLowerCase(); if (content.includes(goToTerm)) { textareas[i].scrollIntoView({ behavior: 'smooth' }); currentIndex = i; break; } } }; goButton.addEventListener('click', goToFunction); goToBox.addEventListener('input', goToFunction);