-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhistory.html
More file actions
37 lines (31 loc) · 1.05 KB
/
Copy pathhistory.html
File metadata and controls
37 lines (31 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Comparison History</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="ribbon" style="display: flex; justify-content: space-between; align-items: center;">
<button class="compare-btn" onclick="window.location.href='index.html'" style="margin-left: 10px;">Home</button>
<h1 style="margin: 0 auto;">Comparison History</h1>
</div>
<div class="container">
<div id="history-container" style="width: 100%;"></div>
<div style="margin-top: 20px;">
<button id="delete-selected" class="compare-btn">Delete Selected</button>
<button id="delete-all" class="compare-btn">Delete All</button>
</div>
</div>
<script src="history.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const theme = localStorage.getItem("theme");
if (theme === "dark") {
document.body.classList.add("dark-mode");
}
});
</script>
</body>
</html>