Web platform for sharing free data for ML and research

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 dialogs.js

View raw Download
text/plain • 217 B
ASCII text
        
            
1
document.body.addEventListener('click', function (event) {
2
const dialog = event.target.closest('dialog'); // Find the closest dialog element
3
if (event.target.matches('dialog')) {
4
event.target.close();
5
}
6
});
7