mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-11-21 22:03:03 +01:00
Update cart.js
This commit is contained in:
1 parent
6a58fa87f4
commit
b2bbf6ccac
1 file changed
+6
@@ -56,3 +56,9 @@ function closeModal() {
|
||||
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