%PDF- %PDF-
Direktori : /home/tradesc/www/relax/wp-content/uploads/elementor/js/min/ |
Current File : /home/tradesc/www/relax/wp-content/uploads/elementor/js/min/elements-dynamicusers.min.js |
var isAdminBar=!1,isEditMode=!1;(function($){var WidgetElementsDynamicUsersDCEHandler=function($scope,$){var elementSettings=get_Dyncontel_ElementSettings($scope);var id_scope=$scope.attr('data-id');$block_acfposts='.dce-grid-users';$objBlock_acfposts=$scope.find($block_acfposts);if(elementSettings.posts_style=='grid'){$layoutMode='masonry';if($objBlock_acfposts.data('fitrow')) $layoutMode='fitRows';var $grid_dce_posts=$objBlock_acfposts.isotope({itemSelector:'.dce-item-user',layoutMode:$layoutMode,sortBy:'original-order',percentPosition:!0,masonry:{columnWidth:'.dce-item-user'}});$grid_dce_posts.imagesLoaded().progress(function(){$grid_dce_posts.isotope('layout')});$scope.find('.dce-users-filters .users-filters-item').on('click','a',function(e){var filterValue=$(this).attr('data-filter');$(this).parent().siblings().removeClass('filter-active');$(this).parent().addClass('filter-active');$grid_dce_posts.isotope({filter:filterValue});return!1})} if(elementSettings.enabled_wow){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:!0,live:!0,callback:function(box){},scrollContainer:null});wow.init()} function VerticalTimeline(element){this.element=element;this.blocks=this.element.getElementsByClassName("js-cd-block");this.images=this.element.getElementsByClassName("js-cd-img");this.contents=this.element.getElementsByClassName("js-cd-content");this.offset=0.8;this.hideBlocks()};VerticalTimeline.prototype.hideBlocks=function(){if(!"classList" in document.documentElement){return} var self=this;for(var i=0;i<this.blocks.length;i++){(function(i){if(self.blocks[i].getBoundingClientRect().top>window.innerHeight*self.offset){self.images[i].classList.add("cd-is-hidden");self.contents[i].classList.add("cd-is-hidden")}})(i)}};VerticalTimeline.prototype.showBlocks=function(){if(!"classList" in document.documentElement){return} var self=this;for(var i=0;i<this.blocks.length;i++){(function(i){if(self.contents[i].classList.contains("cd-is-hidden")&&self.blocks[i].getBoundingClientRect().top<=window.innerHeight*self.offset){self.images[i].classList.add("cd-timeline__img--bounce-in");self.contents[i].classList.add("cd-timeline__content--bounce-in");self.images[i].classList.remove("cd-is-hidden");self.contents[i].classList.remove("cd-is-hidden")}})(i)}};var verticalTimelines=document.getElementsByClassName("js-cd-timeline"),verticalTimelinesArray=[],scrolling=!1;if(verticalTimelines.length>0){for(var i=0;i<verticalTimelines.length;i++){(function(i){verticalTimelinesArray.push(new VerticalTimeline(verticalTimelines[i]))})(i)} window.addEventListener("scroll",function(event){if(!scrolling){scrolling=!0;(!window.requestAnimationFrame)?setTimeout(checkTimelineScroll,250):window.requestAnimationFrame(checkTimelineScroll)}})} function checkTimelineScroll(){verticalTimelinesArray.forEach(function(timeline){timeline.showBlocks()});scrolling=!1}};$(window).on('elementor/frontend/init',function(){if(elementorFrontend.isEditMode()){isEditMode=!0} if($('body').is('.admin-bar')){isAdminBar=!0} elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-dynamicusers.default',WidgetElementsDynamicUsersDCEHandler)})})(jQuery)