1(function ($) { 2 'use strict'; 3 4 function dasrkPortfolioActive($scope, $) { 5 var winDow = $(window); 6 // Needed variables 7 var $container=$('.sortable-masonry .items-container'); 8 var $filter=$('.filter-btns'); 9 10 $container.isotope({ 11 filter:'*', 12 masonry: { 13 columnWidth : '.masonry-item.col-lg-4' 14 }, 15 animationOptions:{ 16 duration:500, 17 easing:'linear' 18 } 19 }); 20 // Isotope Filter 21 $filter.find('li').on('click', function(){ 22 var selector = $(this).attr('data-filter'); 23 24 try { 25 $container.isotope({ 26 filter : selector, 27 animationOptions: { 28 duration: 500, 29 easing : 'linear', 30 queue : false 31 } 32 }); 33 } catch(err) { 34 35 } 36 return false; 37 }); 38 39 40 winDow.bind('resize', function(){ 41 var selector = $filter.find('li.active').attr('data-filter'); 42 43 $container.isotope({ 44 filter : selector, 45 animationOptions: { 46 duration: 500, 47 easing : 'linear', 48 queue : false 49 } 50 }); 51 }); 52 53 54 var filterItemA = $('.filter-btns li'); 55 56 filterItemA.on('click', function(){ 57 var $this = $(this); 58 if ( !$this.hasClass('active')) { 59 filterItemA.removeClass('active'); 60 $this.addClass('active'); 61 } 62 }); 63 } 64 function darkTeamActive($scope, $) { 65 $('.team-carousel').owlCarousel({ 66 //animateOut: 'fadeOut', 67 //animateIn: 'fadeIn', 68 loop:true, 69 margin:30, 70 nav:true, 71 autoplayHoverPause: true, // Stops autoplay 72 smartSpeed: 500, 73 autoplay: 6000, 74 navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], 75 responsive:{ 76 0:{ 77 items:1 78 }, 79 600:{ 80 items:1 81 }, 82 800:{ 83 items:1 84 }, 85 1024:{ 86 items:2 87 }, 88 1200:{ 89 items:2 90 } 91 } 92 }); 93 } 94 function darkAccordionAc($scope, $) { 95 $(".accordion-box").on('click', '.acc-btn', function() { 96 97 var outerBox = $(this).parents('.accordion-box'); 98 var target = $(this).parents('.accordion'); 99 100 if($(this).hasClass('active')!==true){ 101 $(outerBox).find('.accordion .acc-btn').removeClass('active'); 102 } 103 104 if ($(this).next('.acc-content').is(':visible')){ 105 return false; 106 }else{ 107 $(this).addClass('active'); 108 $(outerBox).children('.accordion').removeClass('active-block'); 109 $(outerBox).find('.accordion').children('.acc-content').slideUp(300); 110 target.addClass('active-block'); 111 $(this).next('.acc-content').slideDown(300); 112 } 113 }); 114 } 115 116 $(window).on('elementor/frontend/init', function () { 117 elementorFrontend.hooks.addAction('frontend/element_ready/bud_dark_portfolio.default', dasrkPortfolioActive); 118 elementorFrontend.hooks.addAction('frontend/element_ready/bud_dark_team.default', darkTeamActive); 119 elementorFrontend.hooks.addAction('frontend/element_ready/bud_default_section.default', darkAccordionAc); 120 }); 121 122 123 124})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.