Spaces:
Build error
Build error
Update app.py
Browse files56 unmodified lines575859606162636465666779 unmodified lines1471481491501511521539 unmodified lines16316416516616716816956 unmodified linesalert("You cannot add more items after finalizing your order.");return;}document.getElementById('modal').style.display = 'block';document.getElementById('modal-image').src = image;document.getElementById('modal-name').innerText = name;document.getElementById('modal-description').innerText = description;document.getElementById('modal-price').innerText = price;// Reset extrasconst extrasInputs = document.querySelectorAll('input[name="biryani-extra"]');extrasInputs.forEach(input => input.checked = false);79 unmodified lines# Modal windowmodal_window = gr.HTML("""<div id="modal" style="display: none; position: fixed; top: 10%; left: 5%; width: 90%; max-width: 400px; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index: 1000;"><div style="text-align: right;"><button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">×</button></div>9 unmodified lines<label><input type="checkbox" name="biryani-extra" value="Extra Raitha" /> Extra Raitha + $1.00</label><label><input type="checkbox" name="biryani-extra" value="Extra Salan" /> Extra Salan + $2.00</label><label><input type="checkbox" name="biryani-extra" value="Extra Onion & Lemon" /> Extra Onion & Lemon + $2.00</label><label><input type="checkbox" name="biryani-extra" value="Chill Chicken" /> Chilli Chicken + $14.00</label><label><input type="checkbox" name="biryani-extra" value="Veg Manchurian" /> Veg Manchurian + $12.00</label></div><!-- Quantity and Special Instructions -->56 unmodified lines575859606162636465666768697071727379 unmodified lines1531541551561571581599 unmodified lines16917017117217317417556 unmodified linesalert("You cannot add more items after finalizing your order.");return;}const modal = document.getElementById('modal');modal.style.display = 'block';modal.style.position = 'absolute';modal.style.top = `${window.scrollY + window.innerHeight / 2 - modal.offsetHeight / 2}px`;modal.style.left = `${window.innerWidth / 2 - modal.offsetWidth / 2}px`;document.getElementById('modal-image').src = image;document.getElementById('modal-name').innerText = name;document.getElementById('modal-description').innerText = description;document.getElementById('modal-price').innerText = price;// Reset extrasconst extrasInputs = document.querySelectorAll('input[name="biryani-extra"]');extrasInputs.forEach(input => input.checked = false);79 unmodified lines# Modal windowmodal_window = gr.HTML("""<div id="modal" style="display: none; position: absolute; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index: 1000;"><div style="text-align: right;"><button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">×</button></div>9 unmodified lines<label><input type="checkbox" name="biryani-extra" value="Extra Raitha" /> Extra Raitha + $1.00</label><label><input type="checkbox" name="biryani-extra" value="Extra Salan" /> Extra Salan + $2.00</label><label><input type="checkbox" name="biryani-extra" value="Extra Onion & Lemon" /> Extra Onion & Lemon + $2.00</label><label><input type="checkbox" name="biryani-extra" value="Chilli Chicken" /> Chilli Chicken + $14.00</label><label><input type="checkbox" name="biryani-extra" value="Veg Manchurian" /> Veg Manchurian + $12.00</label></div><!-- Quantity and Special Instructions -->
app.py+9-3