mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-06 13:26:27 +01:00
f
This commit is contained in:
@@ -56,9 +56,3 @@ function closeModal() {
|
||||
document.getElementById('modal').style.display = 'none';
|
||||
}
|
||||
|
||||
let cartCount = 0;
|
||||
|
||||
function addToCart() {
|
||||
cartCount++;
|
||||
document.querySelector('.cart-count').textContent = cartCount;
|
||||
}
|
||||
|
||||
@@ -69,24 +69,6 @@
|
||||
<span class="cart-count">0</span> <!-- Aantal producten -->
|
||||
</div>
|
||||
|
||||
<!-- Producten -->
|
||||
<div class="products">
|
||||
<div class="product">
|
||||
<h3>Product 1</h3>
|
||||
<p>Prijs: €10</p>
|
||||
<button onclick="addToCart()">Toevoegen</button>
|
||||
</div>
|
||||
<div class="product">
|
||||
<h3>Product 2</h3>
|
||||
<p>Prijs: €15</p>
|
||||
<button onclick="addToCart()">Toevoegen</button>
|
||||
</div>
|
||||
<div class="product">
|
||||
<h3>Product 3</h3>
|
||||
<p>Prijs: €20</p>
|
||||
<button onclick="addToCart()">Toevoegen</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user