Skip to content

Commit aa269b4

Browse files
Update index.html
1 parent c483627 commit aa269b4

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

index.html

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,8 @@ <h3>Forecast Visualization</h3>
286286
</div>
287287
</div>
288288

289-
<!-- Footer -->
290-
<div style="margin:8px 0; font-size:14px; color:#ccc;">
291-
Total page views: <strong id="visit-counter">0</strong>
292-
</div>
289+
290+
293291
<div class="footer">
294292
<small style="color:#aaa;">App Version: 1.0.0 (Beta)</small>
295293
<br> &copy; 2025 Hariprashad Ravikumar · All rights reserved<br>
@@ -402,26 +400,6 @@ <h3>Forecast Visualization</h3>
402400
document.getElementById('forecastPlot').style.display = 'block';
403401
});
404402
</script>
405-
406-
<!-- right before </body> -->
407-
<script>
408-
document.addEventListener('DOMContentLoaded', () => {
409-
const el = document.getElementById('visit-counter');
410-
fetch(URL)
411-
.then(res => {
412-
if (!res.ok) throw new Error(`HTTP ${res.status}`);
413-
return res.json();
414-
})
415-
.then(data => {
416-
el.textContent = data.value;
417-
})
418-
.catch(err => {
419-
console.error('Counter error:', err);
420-
// optionally: el.textContent = '—';
421-
});
422-
});
423-
</script>
424-
425403

426404
</body>
427405
</html>

0 commit comments

Comments
 (0)