-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproducts.html
More file actions
49 lines (43 loc) · 1.33 KB
/
products.html
File metadata and controls
49 lines (43 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BuggyMart - Products</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<nav>
<a href="index.html">Home</a>
<a href="products.html">Products</a>
<a href="contact.hml">Contact</a> <!-- BUG: same broken link -->
</nav>
<header>
<h1>Our Products</h1>
<p>Showing <span id="product-count"></span> items</p>
</header>
<main>
<div class="filters">
<label>Sort by:</label>
<select id="sort-select" onchange="sortProducts()">
<option value="price-asc">Price: Low to High</option>
<option value="price-desc">Price: High to Low</option>
<option value="name">Name</option>
</select>
<button onclick="filterCheap()">Show items under $20</button>
<button onclick="clearFilter()">Clear Filter</button>
</div>
<div id="product-grid" class="product-grid"></div>
<div class="cart-summary">
<h2>Your Cart</h2>
<ul id="cart-list"></ul>
<p>Total: $<span id="cart-total">0</span></p>
<button onclick="checkout()">Checkout</button>
</div>
</main>
<footer>
<p>© 2025 BuggyMart. All rights reservd.</p>
</footer>
<script src="products.js"></script>
</body>
</html>