-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhistory.html
More file actions
65 lines (60 loc) · 2.17 KB
/
history.html
File metadata and controls
65 lines (60 loc) · 2.17 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>History - Sustainable Food Tracker</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<div class="container">
<header class="page-header">
<h1>
<i class="fas fa-history"></i>
Scan History
</h1>
<button onclick="clearHistory()" class="clear-button">
<i class="fas fa-trash"></i>
Clear
</button>
</header>
<main class="history-content">
<div id="historyList" class="history-list"></div>
<div id="emptyState" class="empty-state-container hidden">
<i class="fas fa-inbox"></i>
<h3>No History Yet</h3>
<p>Start scanning products to see your history here</p>
<a href="index.html" class="primary-button">Start Scanning</a>
</div>
</main>
<!-- Navigation -->
<nav class="bottom-nav">
<a href="index.html" class="nav-link">
<i class="fas fa-home"></i>
<span>Home</span>
</a>
<a href="history.html" class="nav-link active">
<i class="fas fa-history"></i>
<span>History</span>
</a>
<a href="profile.html" class="nav-link">
<i class="fas fa-user"></i>
<span>Profile</span>
</a>
</nav>
</div>
<script src="storage.js"></script>
<script src="app.js"></script>
<script src="app(1).js"></script>
<script>
window.addEventListener('DOMContentLoaded', loadHistoryPage);
window.clearHistory = function() {
if (confirm('Are you sure you want to clear all history?')) {
storage.clearHistory();
loadHistoryPage();
}
};
</script>
</body>
</html>