mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-07 05:53:00 +01:00
f
This commit is contained in:
@@ -56,9 +56,3 @@ function closeModal() {
|
|||||||
document.getElementById('modal').style.display = 'none';
|
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 -->
|
<span class="cart-count">0</span> <!-- Aantal producten -->
|
||||||
</div>
|
</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