1(function($, elementor) { 2 "use strict"; 3 4 var Evenex = { 5 init: function() { 6 var widgets = { 7 "evenex-speaker.default": Evenex.Speaker, 8 "evenex-advanced-tab.default": Evenex.Advnaced_Tab, 9 "evenex-back-to-top.default": Evenex.Back_To_Top, 10 "evenex-schedule.default": Evenex.Schedule, 11 "evenex-event-slider.default": Evenex.EventSlider, 12 "evenex-eventin-event.default": Evenex.Evenex_Eventin_MultiEvent, 13 }; 14 $.each(widgets, function(widget, callback) { 15 elementor.hooks.addAction("frontend/element_ready/" + widget, callback); 16 }); 17 }, 18 Speaker: function($scope) { 19 var $container = $scope.find(".spaker_masonry_grid"); 20 if ($container.length > 0) { 21 var colWidth = function colWidth() { 22 var w = $container.width(), 23 columnNum, 24 columnWidth = 0; 25 if (w > 1024) { 26 columnNum = 3; 27 } else if (w > 768) { 28 columnNum = 2; 29 } 30 columnWidth = Math.floor(w / columnNum); 31 $container.find(".spaker_masonry_grid_item").each(function() { 32 var $item = $(this), 33 multiplier_w = $item 34 .attr("class") 35 .match(/spaker_masonry_grid_item-w(\d)/), 36 width = multiplier_w 37 ? columnWidth * multiplier_w[1] 38 : columnWidth; 39 $item.css({ 40 width: width 41 }); 42 }); 43 return columnWidth; 44 }, 45 isotope = function isotope() { 46 $container.isotope({ 47 resizable: false, 48 itemSelector: ".spaker_masonry_grid_item", 49 masonry: { 50 columnWidth: colWidth(), 51 gutterWidth: 0 52 } 53 }); 54 }; 55 isotope(); 56 $(window).on("resize load", isotope); 57 } 58 }, 59 Advnaced_Tab: function($scope) { 60 $scope.find('.xs-tab-svg-icon').each(function () { 61 var img = $(this); 62 var attributes = img.prop("attributes"); 63 var imgURL = img.attr("src"); 64 $.get(imgURL, function (data) { 65 var svg = $(data).find('svg'); 66 svg = svg.removeAttr('xmlns:a'); 67 $.each(attributes, function () { 68 svg.attr(this.name, this.value); 69 }); 70 img.replaceWith(svg); 71 }); 72 }); 73 }, 74 Back_To_Top: function($scope) { 75 $scope.find('.BackTo').on('click', function (e) { 76 e.preventDefault(); 77 $('body, html').animate({ 78 scrollTop: 0 79 }, 1500) 80 }); 81 $(window).on("scroll", function() { 82 var scrolltop = $(window).scrollTop(), 83 docHeight = $(document).height() / 2; 84 85 if (scrolltop > docHeight) { 86 $scope.fadeIn("slow"); 87 } else { 88 $scope.fadeOut("slow"); 89 } 90 }); 91 }, 92 Schedule: function ($scope) { 93 if ($scope.find('.xs-schedule-accordion').length > 0) { 94 $scope.find('.schedule-accordion-card').on('click', function () { 95 $(this).siblings().removeClass('show'); 96 if (!$(this).hasClass('show')) { 97 $(this).addClass('show'); 98 } 99 }) 100 } 101 }, 102 EventSlider: function($scope){ 103 var el = $scope.find('.evenex-event-slider-wrapper'); 104 105 new Swiper(el, { 106 slidesPerView: 1, 107 loop: true, 108 pagination: { 109 el: '.swiper-pagination', 110 clickable: true 111 } 112 }) 113 }, 114 Evenex_Eventin_MultiEvent: function($scope) { 115 if ($scope.find('.etn_event_slider').length > 0) { 116 let $this = $scope.find('.etn_event_slider'); 117 new Swiper($this, { 118 // slidesPerView: $this.attr("data-slidesperview"), 119 spaceBetween: 30, 120 navigation: { 121 nextEl: $scope.find('.event-slider-button-next'), 122 prevEl: $scope.find('.event-slider-button-prev'), 123 }, 124 breakpoints: { 125 640: { 126 slidesPerView: 1, 127 }, 128 768: { 129 slidesPerView: 2, 130 }, 131 1024: {
132 slidesPerView: $this.attr("data-slidesperview"), 133 }, 134 } 135 }); 136 } 137 if ($scope.find('.event_filter_list').length > 0) { 138 let $galleryGrid = $scope.find('.event_filter_list'); 139 140 $galleryGrid.imagesLoaded( function() { 141 $galleryGrid.isotope(); 142 } ); 143 144 // Filter List 145 var $filterList = $scope.find( '.filter-button-wraper' ), 146 $filterLinks = $filterList.find( 'a' ); 147 148 $filterLinks.on( 'click', function( e ) { 149 e.preventDefault(); 150 151 var $this = $( this ); 152 153 $this.parents( '.option-set' ).find( '.selected' ).removeClass( 'selected' ); 154 $this.addClass( 'selected' ); 155 156 $galleryGrid.isotope( { 157 filter: $this.data( 'option-value' ), 158 } ); 159 } ); 160 } 161 }, 162 }; 163 $(window).on("elementor/frontend/init", Evenex.init); 164})(jQuery, window.elementorFrontend);
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.