nagasurendra commited on
Commit
aaced56
·
verified ·
1 Parent(s): 88df650

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -34
app.py CHANGED
@@ -388,7 +388,7 @@ def app():
388
  <!-- Add to Cart Button -->
389
  <button style="background-color: #28a745; color: white; border: none; padding: 10px 20px; font-size: 14px; border-radius: 5px; cursor: pointer;" onclick="addToCart()">Add to Cart</button>
390
  </div>
391
-
392
 
393
  # Modal for Cart Details
394
  cart_modal = gr.HTML('''
@@ -511,36 +511,3 @@ def app():
511
  if __name__ == "__main__":
512
  app().launch()
513
 
514
-
515
-
516
- # Modal window
517
- modal_window = gr.HTML("""
518
- <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: 1000;">
519
- <div style="text-align: right;">
520
- <button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">&times;</button>
521
- </div>
522
- <img id="modal-image" style="width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px;" />
523
- <h2 id="modal-name"></h2>
524
- <p id="modal-description"></p>
525
- <p id="modal-price"></p>
526
- <!-- Biryani Extras -->
527
- <label for="biryani-extras">Extras :</label>
528
- <div id="biryani-extras-options" style="display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0;">
529
- <label><input type="checkbox" name="biryani-extra" value="Thums up" /> Thums up + $2.00</label>
530
- <label><input type="checkbox" name="biryani-extra" value="Sprite" /> Sprite + $2.00</label>
531
- <label><input type="checkbox" name="biryani-extra" value="Extra Raitha" /> Extra Raitha + $1.00</label>
532
- <label><input type="checkbox" name="biryani-extra" value="Extra Salan" /> Extra Salan + $2.00</label>
533
- <label><input type="checkbox" name="biryani-extra" value="Extra Onion & Lemon" /> Extra Onion & Lemon + $2.00</label>
534
- <label><input type="checkbox" name="biryani-extra" value="Chilli Chicken" /> Chilli Chicken + $14.00</label>
535
- <label><input type="checkbox" name="biryani-extra" value="Veg Manchurian" /> Veg Manchurian + $12.00</label>
536
- </div>
537
- <!-- Quantity and Special Instructions -->
538
- <label for="quantity">Quantity:</label>
539
- <input type="number" id="quantity" value="1" min="1" style="width: 50px;" />
540
- <br><br>
541
- <textarea id="special-instructions" placeholder="Add special instructions here..." style="width: 100%; height: 60px;"></textarea>
542
- <br><br>
543
- <!-- Add to Cart Button -->
544
- <button style="background-color: #28a745; color: white; border: none; padding: 10px 20px; font-size: 14px; border-radius: 5px; cursor: pointer;" onclick="addToCart()">Add to Cart</button>
545
- </div>
546
-
 
388
  <!-- Add to Cart Button -->
389
  <button style="background-color: #28a745; color: white; border: none; padding: 10px 20px; font-size: 14px; border-radius: 5px; cursor: pointer;" onclick="addToCart()">Add to Cart</button>
390
  </div>
391
+ """)
392
 
393
  # Modal for Cart Details
394
  cart_modal = gr.HTML('''
 
511
  if __name__ == "__main__":
512
  app().launch()
513