File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff 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 > © 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+ © 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 >
You can’t perform that action at this time.
0 commit comments