forked from Khushi-Pushkar/Calories-Burnt-Prediction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.html
106 lines (102 loc) · 4.45 KB
/
data.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Information</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="css/data.css">
<link rel="icon" type="image/png" href="images/logo.png">
</head>
<body>
<nav>
<div class="nav__logo">
<h3>Calories<span>Burnt Prediction</span></h3>
</div>
<button class="nav__toggle">☰</button>
<ul class="nav__links">
<li class="link"><a href="index.html">Home</a></li>
<li class="link"><a href="data.html">Data Info</a></li>
<li class="link"><a href="predict.html">Prediction</a></li>
<li class="link"><a href="visualization.html">Visualization</a></li>
<li class="link"><a href="contactus.html">Contact Us</a></li>
<li class="link"><a href="FAQ.html">FAQ</a></li>
</ul>
</nav>
<header class="Data-header">
<h1>Data Information</h1>
<p>Essential Insights for Predicting Calories Burnt Efficiently</p>
</header>
<div class="table-container">
<table>
</table>
</div>
<div class="download">
<a href="/csvfile/exerciseog.csv" class="download-btn" download="excercise.csv" >Download CSV</a>
</div>
<footer>
<div class="footer-container">
<div class="footer-section logo-section">
<a href="index.html">
<img src="images/logo.png" alt="Logo" class="footer-logo"></a>
<h2>Calories Burnt Prediction</h2>
<p>This website provides a platform for users to predict the calories burned based on various factors.</p>
</div>
<div class="footer-section quick-links">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="FAQ.html">FAQ</a></li>
<li><a href="predict.html">Prediction</a></li>
<li><a href="contactus.html">Contact</a></li>
</ul>
</div>
<div class="footer-section contact-us">
<h3>Contact Us</h3>
<p><i class="fas fa-map-marker-alt"></i> New Delhi, India</p>
<p><i class="fas fa-envelope"></i> [email protected]</p>
<p><i class="fas fa-phone"></i> +123 456 7890</p>
</div>
<div class="footer-section stay-connected">
<h3>Stay Connected</h3>
<div class="social-icons">
<a href="https://x.com/Mansi2545"><i class="fab fa-twitter"></i></a>
<a href="https://www.instagram.com/khsharma2348?igsh=MTU3d3E0NHlpbnlzYQ=="><i class="fab fa-instagram"></i></a>
<a href="https://www.linkedin.com/in/khushi-pushkar-9029b8287/"><i class="fab fa-linkedin"></i></a>
<a href="https://github.com/Khushi-Pushkar"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Calories Burnt Prediction. All rights reserved.</p>
<p>Developed by Khushi Pushkar | Khushi Sharma | Mansi Salonki</p>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function () {
const navToggle = document.querySelector('.nav__toggle');
const navLinks = document.querySelector('.nav__links');
navToggle.addEventListener('click', function () {
navLinks.classList.toggle('active');
});
});
onload = fetch("exercise.csv").then(res => {
return res.text();
}).then(data => {
let result = data.split(/\r?\n|\r/).map(e => {
return e.split(",");
});
result.forEach(e => {
let m = e.map(e => {
return `<td>${e}</td>`;
}).join("");
let ce = document.createElement("tr");
ce.innerHTML = m;
if (ce.innerText !== "") {
document.querySelector("table").appendChild(ce);
}
});
});
</script>
</body>
</html>