Spaces:
Sleeping
Sleeping
Update app.py
Browse files95 unmodified lines9697989910010110210310410510610711 unmodified lines11912012112212312412512612712812913013113295 unmodified linespopup_js = """<script>function showPopup(event, name, description, price) {const popup = document.getElementById("custom-popup");const overlay = document.getElementById("overlay");// Get the button's positionconst rect = event.target.getBoundingClientRect();const popupX = rect.left + window.scrollX + 10; // Offset for better visibilityconst popupY = rect.top + window.scrollY + 10;// Set the popup's position11 unmodified lines</div>`;// Show the popup and overlaypopup.style.display = "block";overlay.style.display = "block";}function closePopup() {const popup = document.getElementById("custom-popup");const overlay = document.getElementById("overlay");popup.style.display = "none";overlay.style.display = "none";}95 unmodified lines9697989910010110210310410510610710810911011111211311 unmodified lines12512612712812913013113213313413513613713813914014114214314414595 unmodified linespopup_js = """<script>function showPopup(event, name, description, price) {console.log("Popup triggered"); // Debug: Check if this function is calledconst popup = document.getElementById("custom-popup");const overlay = document.getElementById("overlay");if (!popup || !overlay) {console.error("Popup or overlay element not found"); // Debug: Log missing elementsreturn;}// Get the button's positionconst rect = event.target.getBoundingClientRect();const popupX = rect.left + window.scrollX + 10; // Add offset for better positioningconst popupY = rect.top + window.scrollY + 10;// Set the popup's position11 unmodified lines</div>`;// Display the popup and overlaypopup.style.display = "block";overlay.style.display = "block";}function closePopup() {console.log("Popup closed"); // Debug: Check if the close function is calledconst popup = document.getElementById("custom-popup");const overlay = document.getElementById("overlay");if (!popup || !overlay) {console.error("Popup or overlay element not found"); // Debug: Log missing elementsreturn;}popup.style.display = "none";overlay.style.display = "none";}
app.py+15-2