Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def create_modal_window():
|
|
125 |
"""
|
126 |
|
127 |
modal_html = f"""
|
128 |
-
<div id="modal" style="display: none; position: fixed; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index:
|
129 |
<div style="text-align: right;">
|
130 |
<button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">×</button>
|
131 |
</div>
|
@@ -251,7 +251,7 @@ with gr.Blocks() as app:
|
|
251 |
preference = gr.Radio(choices=["All", "Veg", "Non-Veg"], label="Filter Preference", value="All")
|
252 |
menu_output = gr.HTML()
|
253 |
gr.HTML("<div id='cart-button' style='position: fixed; bottom: 20px; right: 20px; background: #28a745; color: white; padding: 10px 20px; border-radius: 30px; cursor: pointer; z-index: 1000;' onclick='openCartModal()'>View Cart</div>")
|
254 |
-
gr.HTML("<div id='cart-button-top' style='position: fixed; top: 20px;
|
255 |
gr.HTML(create_modal_window())
|
256 |
gr.HTML(modal_js())
|
257 |
|
|
|
125 |
"""
|
126 |
|
127 |
modal_html = f"""
|
128 |
+
<div id="modal" style="display: none; position: fixed; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index: 10000;">
|
129 |
<div style="text-align: right;">
|
130 |
<button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">×</button>
|
131 |
</div>
|
|
|
251 |
preference = gr.Radio(choices=["All", "Veg", "Non-Veg"], label="Filter Preference", value="All")
|
252 |
menu_output = gr.HTML()
|
253 |
gr.HTML("<div id='cart-button' style='position: fixed; bottom: 20px; right: 20px; background: #28a745; color: white; padding: 10px 20px; border-radius: 30px; cursor: pointer; z-index: 1000;' onclick='openCartModal()'>View Cart</div>")
|
254 |
+
gr.HTML("<div id='cart-button-top' style='position: fixed; top: 20px; right: 20px; background: #28a745; color: white; padding: 10px 20px; border-radius: 30px; cursor: pointer; z-index: 1000;' onclick='openCartModal()'>View Cart</div>")
|
255 |
gr.HTML(create_modal_window())
|
256 |
gr.HTML(modal_js())
|
257 |
|