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/cvetdv.ru/bitrix/templates/landing24/assets/js/helpers/backlinks/ |
Upload File : |
;(function() { 'use strict'; BX.addCustomEvent('BX.Landing.Block:init', function(event) { if (document.querySelector('.landing-edit-mode') === null) { init(event.block); } }); function init(block) { // emulate browser back button let backLinks = [].slice.call(block.querySelectorAll('.js-link-back')); if (backLinks.length > 0) { backLinks.forEach(function(link) { let referrer = document.referrer; let topBackButton = document.querySelector('.landing-pub-top-panel-back'); // for KB if (topBackButton) { link.addEventListener('click', function (event) { BX.PreventDefault(); topBackButton.click(); }) } // for sites else if ( window.history.length > 1 && referrer !== '' && referrer.includes(location.hostname) ) { link.addEventListener('click', function (event) { event.preventDefault(); window.history.back(); }) } link.href = '#'; }); } } })();