Вернуть карту и изображения в печать

This commit is contained in:
2026-09-19 17:19:40 +08:00
parent e6b06a16ab
commit fcb42f5310
2 changed files with 20 additions and 7 deletions
+4
View File
@@ -24,6 +24,10 @@
element.classList.add('bg-loaded');
};
window.addEventListener('beforeprint', () => {
document.querySelectorAll('[data-bg]').forEach(loadBackground);
});
if ('IntersectionObserver' in window) {
const backgroundObserver = new IntersectionObserver((entries, observer) => {
entries.forEach((entry) => {