Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/wiki/public/src/ |
Upload File : |
import {Event, Type, Text, Dom} from 'main.core'; import {SliderHacks} from 'landing.sliderhacks'; Event.bind(document, 'click', (event: MouseEvent) => { if (Type.isDomNode(event.target)) { const link = event.target.closest('a:not(.ui-btn):not([data-fancybox])'); if (Type.isDomNode(link)) { const isCurrentPageLink = Type.isStringFilled(link.href) && link.hash !== '' && link.pathname === document.location.pathname && link.hostname === document.location.hostname; if (Type.isStringFilled(link.href) && link.target !== '_blank' && !isCurrentPageLink) { event.preventDefault(); BX.Landing.Pub.TopPanel.pushHistory(link.href); void SliderHacks.reloadSlider(link.href); } } const pseudoLink = event.target.closest('[data-pseudo-url]'); if (Type.isDomNode(pseudoLink)) { const urlParams = Dom.attr(pseudoLink, 'data-pseudo-url'); if ( Text.toBoolean(urlParams.enabled) && Type.isStringFilled(urlParams.href) && urlParams.href.indexOf('/bitrix/services/main/ajax.php?action=landing.api.diskFile.download') !== 0 ) { if (urlParams.query) { urlParams.href += (urlParams.href.includes('?')) ? '&' : '?'; urlParams.href += urlParams.query; } if (urlParams.target === '_self') { event.stopImmediatePropagation(); BX.Landing.Pub.TopPanel.pushHistory(urlParams.href); void SliderHacks.reloadSlider(urlParams.href); } else { top.open(urlParams.href, urlParams.target); } } } } });