mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-04-22 06:50:46 +02:00
Update cart.js
This commit is contained in:
@@ -56,3 +56,9 @@ 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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user