mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-06 21:36:27 +01: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