Skip to content

Commit 9458c8f

Browse files
Update index.html
1 parent 4d2d19e commit 9458c8f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

index.html

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@ <h3>Forecast Visualization</h3>
289289
<!-- Footer -->
290290
<div class="footer">
291291
<small style="color:#aaa;">App Version: 1.0.0 (Beta)</small>
292-
<br> &copy; 2025 Hariprashad Ravikumar · All rights reserved<br>
292+
<br> <div style="margin:8px 0; font-size:14px; color:#ccc;">
293+
Total page views : <strong id="visit-counter"></strong>
294+
</div>
295+
&copy; 2025 Hariprashad Ravikumar · All rights reserved<br>
293296
<a href="https://hariprashad-ravikumar.github.io" target="_blank">Website</a> ·
294297
<a href="https://github.com/Hariprashad-Ravikumar" target="_blank">GitHub</a>
295298
</div>
@@ -399,5 +402,21 @@ <h3>Forecast Visualization</h3>
399402
document.getElementById('forecastPlot').style.display = 'block';
400403
});
401404
</script>
405+
406+
<script>
407+
async function updateCounter() {
408+
try {
409+
const res = await fetch(
410+
'https://api.countapi.xyz/hit/AI-DataScience-Lab/page_visits'
411+
);
412+
const { value } = await res.json();
413+
document.getElementById('visit-counter').textContent = value;
414+
} catch (err) {
415+
console.error('Counter error', err);
416+
}
417+
}
418+
updateCounter();
419+
</script>
420+
402421
</body>
403422
</html>

0 commit comments

Comments
 (0)