Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,6 @@ def app():
|
|
| 128 |
" onclick="addToCart()">Add</button>
|
| 129 |
</div>
|
| 130 |
</div>
|
| 131 |
-
|
| 132 |
<script>
|
| 133 |
let cart = [];
|
| 134 |
function openModal(name, image, description, price) {
|
|
@@ -142,12 +141,10 @@ def app():
|
|
| 142 |
document.getElementById('modal-description').innerText = description;
|
| 143 |
document.getElementById('modal-price').innerText = `$${price}`;
|
| 144 |
}
|
| 145 |
-
|
| 146 |
function closeModal() {
|
| 147 |
const modal = document.getElementById('modal');
|
| 148 |
modal.style.display = 'none';
|
| 149 |
}
|
| 150 |
-
|
| 151 |
function addToCart() {
|
| 152 |
const name = document.getElementById('modal-name').innerText;
|
| 153 |
const price = document.getElementById('modal-price').innerText;
|
|
|
|
| 128 |
" onclick="addToCart()">Add</button>
|
| 129 |
</div>
|
| 130 |
</div>
|
|
|
|
| 131 |
<script>
|
| 132 |
let cart = [];
|
| 133 |
function openModal(name, image, description, price) {
|
|
|
|
| 141 |
document.getElementById('modal-description').innerText = description;
|
| 142 |
document.getElementById('modal-price').innerText = `$${price}`;
|
| 143 |
}
|
|
|
|
| 144 |
function closeModal() {
|
| 145 |
const modal = document.getElementById('modal');
|
| 146 |
modal.style.display = 'none';
|
| 147 |
}
|
|
|
|
| 148 |
function addToCart() {
|
| 149 |
const name = document.getElementById('modal-name').innerText;
|
| 150 |
const price = document.getElementById('modal-price').innerText;
|