Vorlage:TopNews
Aus Geoportal
Version vom 13. Oktober 2023, 05:38 Uhr von Deepak (Diskussion | Beiträge)
Reading time: Calculating...
<script> function calculateReadingTime() { const wordsPerMinute = 200; // Adjust this value based on your content. const text = document.body.innerText; const words = text.split(/\s+/).length; const readingTime = Math.ceil(words / wordsPerMinute); document.getElementById('reading-time').textContent = `Reading time: ${readingTime} minutes`; } calculateReadingTime(); </script>