Файловый менеджер - Редактировать - /home/digitalm/www/zetaworks/wp-content/themes/uncode/library/js/checkScrollForTabs.min.js
Назад
(function($){"use strict";UNCODE.checkScrollForTabs=function(){var goToSection=window.location.hash.replace("#",""),$index;goToSection=goToSection.replace(/[^-A-Za-z0-9+&@#/%?=~_]/g,""),goToSection=encodeURIComponent(goToSection),$index=$('[data-id="'+goToSection+'"]').closest(".uncode-tabs, .uncode-accordion"),$index.attr("data-parent","parent-"+goToSection),window.location.hash!=undefined&&window.location.hash!=""&&requestTimeout(function(){scrollBody("parent-"+goToSection)},500),$('.page-body a[href*="#"]').not("[data-tab-history]").not(".scroll-top").click(function(e){var hash=e.currentTarget.hash,index=e.currentTarget.closest(".uncode-tabs");$('.uncode-tabs a[href="'+hash+'"][data-tab-history]').length&&($('a[href="'+hash+'"][data-tab-history]').click(),scrollBody(index))});var scrollBody=function(index){var getSection=$('a[href="'+index+'"][data-tab-history]'),scrollTo;getSection.length||(getSection=$('div[data-parent="'+index+'"]'),getSection.attr("data-target")=="row"&&(getSection=getSection.closest(".vc_row")));if(typeof getSection=="undefined"||!getSection.length)return;var body=$("html, body"),bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-(getSection.length?getSection.offset().top:0),getOffset=UNCODE.get_scroll_offset();if(typeof getSection.offset()=="undefined")return;scrollTo=getSection.offset().top-27,scrollTo-=getOffset;var scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),index!=0&&(UNCODE.scrolling=!0),scrollSpeed==0?(body.scrollTop(delta>0?scrollTo-.1:scrollTo),UNCODE.scrolling=!1):body.animate({scrollTop:delta>0?scrollTo-.1:scrollTo},scrollSpeed,"easeInOutQuad",function(){requestTimeout(function(){UNCODE.scrolling=!1,getOffset!=UNCODE.get_scroll_offset()&&scrollBody(index)},100)})}}})(jQuery)
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка