Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -189,8 +189,8 @@ with gr.Blocks() as demo:
|
|
| 189 |
alert(dishName + " with " + spiceLevel + " spice level and extras: " + selectedExtras + " has been added to the cart!");
|
| 190 |
}
|
| 191 |
|
| 192 |
-
const menuItems = document.querySelectorAll(
|
| 193 |
-
|
| 194 |
});
|
| 195 |
});
|
| 196 |
</script>
|
|
|
|
| 189 |
alert(dishName + " with " + spiceLevel + " spice level and extras: " + selectedExtras + " has been added to the cart!");
|
| 190 |
}
|
| 191 |
|
| 192 |
+
const menuItems = document.querySelectorAll(display_dishes(category));
|
| 193 |
+
display_dishes.forEach(item => {item.addEventListener('click', function(event) {showPopup(event, item.getAttribute('data-name'));
|
| 194 |
});
|
| 195 |
});
|
| 196 |
</script>
|