c08926b817
Replace ~50 inline style="" attributes with CSS classes, move 3 inline
<script> blocks to external JS files, replace all inline event handlers
(onclick, onerror) with addEventListener, and remove createElement('style')
from icons.js. All changes support the strict CSP policy (style-src 'self';
script-src 'self') without weakening it.
8 lines
191 B
JavaScript
8 lines
191 B
JavaScript
document.getElementById('close-window-btn').addEventListener('click', function() {
|
|
window.close();
|
|
});
|
|
// Auto-close after 3 seconds
|
|
setTimeout(function() {
|
|
window.close();
|
|
}, 3000);
|