Spaces:
Sleeping
Sleeping
Update app.py
Browse files100 unmodified lines10110210310410510410510610710829 unmodified lines138139140141141142143144100 unmodified lines
// Get the button's position const rect = event.target.getBoundingClientRect(); const popupX = rect.left + window.scrollX; const popupY = rect.top + window.scrollY; const popupX = rect.left + window.scrollX + 10; // Offset for better visibility const popupY = rect.top + window.scrollY + 10;
// Set the popup's position popup.style.left = popupX + "px";29 unmodified lines<div id="overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 999;"></div><div id="custom-popup" style="position: absolute; display: none; width: 250px; background: white; padding: 10px; border-radius: 10px; box-shadow: 0px 4px 6px rgba(0,0,0,0.1); z-index: 1000;"> style="position: absolute; display: none; width: 300px; background: white; padding: 10px; border-radius: 10px; box-shadow: 0px 4px 6px rgba(0,0,0,0.1); z-index: 1000;"></div>"""
app.py+3-3