1(function() { 2 'use strict'; 3// aos animation 4AOS.init(); 5 var $ = jQuery; 6 7 function _typeof(obj) { 8 "@babel/helpers - typeof"; 9 10 if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { 11 _typeof = function(obj) { 12 return typeof obj; 13 }; 14 } else { 15 _typeof = function(obj) { 16 return obj && typeof Symbol === 'function' && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj; 17 }; 18 } 19 20 return _typeof(obj); 21 } 22 23 function _defineProperty(obj, key, value) { 24 if (key in obj) { 25 Object.defineProperty(obj, key, { 26 value: value, 27 enumerable: true, 28 configurable: true, 29 writable: true 30 }); 31 } else { 32 obj[key] = value; 33 } 34 35 return obj; 36 } 37 38 var ThemeHelper = { 39 40 }; 41 42 var Theme = { 43 44 countdown: function countdown() { 45 if (typeof $.fn.countdown == 'function') { 46 try { 47 48 var day = abstrakObj.day == 'Day' ? 'Day%!D' : abstrakObj.day, 49 hour = abstrakObj.hour == 'Hour' ? 'Hour%!D' : abstrakObj.hour, 50 minute = abstrakObj.minute == 'Minute' ? 'Minute%!D' : abstrakObj.minute, 51 second = abstrakObj.second == 'Second' ? 'Second%!D' : abstrakObj.second; 52 53 $('.coming-soon-area').each(function() { 54 55 var $CountdownSelector = $(this).find('.countdown'); 56 57 var eventCountdownTime = $CountdownSelector.attr('data-countdown'); 58 59 $CountdownSelector.countdown(eventCountdownTime).on('update.countdown', function(event) { 60 $(this).html(event.strftime('' + '<div class="countdown-section"><div><div class="countdown-number">%D</div><div class="countdown-unit">' + day + '</div></div></div>' + '<div class="countdown-section"><div><div class="countdown-number">%H</div><div class="countdown-unit">' + hour + '</div></div></div>' + '<div class="countdown-section"><div><div class="countdown-number">%M</div><div class="countdown-unit">' + minute + '</div></div></div>' + '<div class="countdown-section"><div><div class="countdown-number">%S</div><div class="countdown-unit">' + second + '</div></div></div>')); 61 }).on('finish.countdown', function(event) { 62 $(this).html(event.strftime('')); 63 }); 64 }); 65 66 } catch (err) { 67 console.log('Countdown : ' + err.message); 68 } 69 } 70 }, 71 sameHeightFunction: function() { 72 function sameHeight() { 73 var elements = $('.blog-list'); 74 var max_height = 0; 75 elements.each(function(index, el) { 76 var height = $(el).height(); 77 var index = index; 78 // console.log(index); 79 if (height > max_height) { 80 max_height = height; 81 } 82 }); 83 elements.height(max_height); 84 } 85 sameHeight(); 86 }, 87 88 pricingPlan: function() { 89 var yearlySelectBtn = $('#yearly-plan-btn'), 90 monthlySelectBtn = $('#monthly-plan-btn'), 91 monthlyPrice = $('.monthly-pricing'), 92 yearlyPrice = $('.yearly-pricing'), 93 buttonSlide = $('#pricing-checkbox'); 94 95 $(monthlySelectBtn).on('click', function() { 96 buttonSlide.prop('checked', true); 97 $(this).addClass('active').parent('.nav-item').siblings().children().removeClass('active'); 98 monthlyPrice.css('display', 'block'); 99 yearlyPrice.css('display', 'none'); 100 101 }); 102 103 $(yearlySelectBtn).on('click', function() { 104 buttonSlide.prop('checked', false); 105 $(this).addClass('active').parent('.nav-item').siblings().children().removeClass('active'); 106 monthlyPrice.css('display', 'none'); 107 yearlyPrice.css('display', 'block'); 108 }); 109 110 $(buttonSlide).change(function() { 111 if ($('input[id="pricing-checkbox"]:checked').length > 0) { 112 monthlySelectBtn.addClass('active'); 113 yearlySelectBtn.removeClass('active'); 114 monthlyPrice.css('display', 'block'); 115 yearlyPrice.css('display', 'none'); 116 117 } else { 118 yearlySelectBtn.addClass('active'); 119 monthlySelectBtn.removeClass("active"); 120 monthlyPrice.css('display', 'none'); 121 yearlyPrice.css('display', 'block'); 122 123 } 124 }); 125 }, 126 127 axilMasonary: function() { 128 $('.axil-isotope-wrapper').imagesLoaded(function() { 129 // filter items on button click 130 $('.isotope-button').on('click', 'button', function() { 131 var filterValue = $(this).attr('data-filter'); 132 $grid.isotope({ 133 filter: filterValue 134 }); 135 }); 136 137 // init Isotope 138 var $grid = $('.isotope-list').isotope({ 139 itemSelector: '.project', 140 percentPosition: true, 141 transitionDuration: '0.7s', 142 layoutMode: 'fitRows', 143 masonry: { 144 // use outer width of grid-sizer for columnWidth 145 columnWidth: ".project", 146 } 147 }); 148 }); 149 150 $('.isotope-button button').on('click', function(event) { 151 $(this).siblings('.is-checked').removeClass('is-checked'); 152 $(this).addClass('is-checked'); 153 event.preventDefault(); 154 }); 155 156 // Masonry 157 var galleryIsoContainer = $('#no-equal-gallery'); 158 if (galleryIsoContainer.length) { 159 var blogGallerIso = galleryIsoContainer.imagesLoaded(function() { 160 blogGallerIso.isotope({ 161 162 percentPosition: true, 163 layoutMode: 'fitRows', 164 masonry: { 165 columnWidth: '.no-equal-item' 166 } 167 }); 168 }); 169 } 170 }, 171 172 axilcounterUpAtion: function() { 173 var _counter = $('.count'); 174 if (_counter.length) { 175 _counter.counterUp({ 176 delay: 10, 177 time: 1000, 178 triggerOnce: true 179 }); 180 } 181 }, 182 183 counterUp: function () { 184 185 var elementSelector = $('.count'); 186 elementSelector.each(function(){ 187 elementSelector.appear(function(e) { 188 var el = this; 189 var updateData = $(el).attr("data-count"); 190 var od = new Odometer({ 191 el: el, 192 format: 'd', 193 duration: 2000 194 }); 195 od.update(updateData); 196 }); 197 }); 198 }, 199 axilSlickActivation: function(e) { 200 $('.slick-slider').not('.slick-initialized').slick(); 201 }, 202 203 magnificPopupActivation: function() { 204 205 var yPopup = $('.popup-youtube'); 206 if (yPopup.length) { 207 yPopup.magnificPopup({ 208 disableOn: 300, 209 type: 'iframe', 210 mainClass: 'mfp-fade', 211 removalDelay: 160, 212 preloader: false,
213 fixedContentPos: false 214 }); 215 } 216 217 }, 218 219 salActivation: function() { 220 sal({ 221 threshold: 0.1, 222 once: true 223 }); 224 }, 225 marqueImages: function() { 226 $('.marque-images').each(function() { 227 var t = 0; 228 var i = 1; 229 var $this = $(this); 230 setInterval(function() { 231 t += i; 232 $this.css('background-position-x', -t + 'px'); 233 }, 10); 234 }); 235 }, 236 237 axilHover: function() { 238 $('.services-grid, .counterup-progress, .testimonial-grid, .pricing-table, .brand-grid, .blog-list, .about-quality, .team-grid, .splash-hover-control').mouseenter(function() { 239 var self = this; 240 setTimeout(function() { 241 $('.services-grid.active, .counterup-progress.active, .testimonial-grid.active, .pricing-table.active, .brand-grid.active, .blog-list.active, .about-quality.active, .team-grid.active, .splash-hover-control.active').removeClass('active'); 242 $(self).addClass('active'); 243 }, 0); 244 245 }); 246 }, 247 248 mobileMenuActivation: function(e) { 249 $('.menu-item-has-children > a').append('<span class="submenu-toggle-btn"></span>' ); 250 251 $('.menu-item-has-children > a .submenu-toggle-btn').on('click', function(e) { 252 253 var targetParent = $(this).parents('.header-main-nav'), 254 target = $(this).parent().siblings('.axil-submenu'), 255 targetSiblings = $(this).parents('.menu-item-has-children').siblings().find('.axil-submenu'); 256 257 if (targetParent.hasClass('offcanvas')) { 258 $(target).slideToggle(400); 259 $(targetSiblings).slideUp(400); 260 $(this).parents('.menu-item-has-children').toggleClass('open'); 261 $(this).parents('.menu-item-has-children').siblings().removeClass('open'); 262 } 263 264 }); 265 266 function resizeClassAdd() { 267 if (window.matchMedia('(min-width: 992px)').matches) { 268 $('body').removeClass('mobilemenu-active'); 269 $('#mobilemenu-popup').removeClass('offcanvas show').removeAttr('style'); 270 $('.axil-mainmenu .offcanvas-backdrop').remove(); 271 $('.axil-submenu').removeAttr('style'); 272 if ($('body').hasClass('onepage-template')) { 273 $('.header-main-nav ').removeAttr('id'); 274 } 275 } else { 276 $('body').addClass('mobilemenu-active'); 277 $('#mobilemenu-popup').addClass('offcanvas'); 278 $('.menu-item-has-children > a .submenu-toggle-btn').on('click', function(e) { 279 e.preventDefault(); 280 }); 281 $('.header-main-nav ').attr('id', 'mobilemenu-popup'); 282 } 283 } 284 285 $(window).on('resize', function() { 286 resizeClassAdd(); 287 }); 288 289 resizeClassAdd(); 290 }, 291 292 tiltAnimation: function() { 293 var _tiltAnimation = $('.paralax-image') 294 if (_tiltAnimation.length) { 295 _tiltAnimation.tilt({ 296 max: 12, 297 speed: 1e3, 298 easing: 'cubic-bezier(.03,.98,.52,.99)', 299 transition: !1, 300 perspective: 1e3, 301 scale: 1 302 }) 303 } 304 }, 305 306 onePageTopFixed: function() { 307 if ($('.onepagefixed').length) { 308 var fixedElem = $('.onepagefixed'), 309 distance = fixedElem.offset().top - 100, 310 $window = $(window), 311 totalDistance = $('.service-scroll-navigation-area').outerHeight() + distance; 312 313 $(window).on('scroll', function() { 314 if ($window.scrollTop() >= distance) { 315 if ($('body').hasClass('admin-bar')) { 316 fixedElem.css({ 317 position: 'fixed', 318 left: '0', 319 right: '0', 320 top: '32px', 321 zIndex: '5' 322 }); 323 } else { 324 fixedElem.css({ 325 position: 'fixed', 326 left: '0', 327 right: '0', 328 top: '0', 329 zIndex: '5' 330 }); 331 } 332 fixedElem.addClass('show'); 333 334 } else { 335 fixedElem.removeAttr('style'); 336 fixedElem.removeClass('show'); 337 } 338 339 if ($window.scrollTop() >= totalDistance) { 340 fixedElem.removeAttr('style'); 341 fixedElem.removeClass('show'); 342 } 343 }); 344 } 345 }, 346 347 }; 348 349 function widthgen() { 350 $(window).on('load resize', elementWidth); 351 352 function elementWidth() { 353 $('.elementwidth').each(function() { 354 var $container = $(this), 355 width = $container.outerWidth(), 356 classes = $container.attr('class').split(' ');
357 var classes1 = startWith(classes, 'elwidth'); 358 classes1 = classes1[0].split('-'); 359 classes1.splice(0, 1); 360 var classes2 = startWith(classes, 'elmaxwidth'); 361 classes2.forEach(function(el) { 362 $container.removeClass(el); 363 }); 364 classes1.forEach(function(el) { 365 var maxWidth = parseInt(el); 366 367 if (width <= maxWidth) { 368 $container.addClass('elmaxwidth-' + maxWidth); 369 } 370 }); 371 }); 372 } 373 374 function startWith(item, stringName) { 375 return $.grep(item, function(elem) { 376 return elem.indexOf(stringName) == 0; 377 }); 378 } 379 } 380 381 widthgen(); 382 383 function content_ready_scripts() { 384 385 Theme.axilMasonary(); 386 //Theme.axilcounterUpAtion(); 387 Theme.counterUp(); 388 Theme.axilSlickActivation(); 389 Theme.magnificPopupActivation(); 390 Theme.salActivation(); 391 Theme.marqueImages(); 392 Theme.axilHover(); 393 Theme.mobileMenuActivation(); 394 Theme.tiltAnimation(); 395 Theme.pricingPlan(); 396 Theme.onePageTopFixed(); 397 Theme.sameHeightFunction(); 398 Theme.countdown(); 399 400 } 401 402 function content_load_scripts() { 403 Theme.magnificPopupActivation(); 404 Theme.salActivation(); 405 Theme.marqueImages(); 406 Theme.tiltAnimation(); 407 } 408 409 $(document).ready(function() { 410 content_ready_scripts(); 411 }); 412 413 $(window).on('load', function() { 414 content_load_scripts(); 415 416 }); 417 418 $(window).on('load resize', function() { 419 content_load_scripts(); 420 }); 421 422 $(window).on('elementor/frontend/init', function() { 423 if (elementorFrontend.isEditMode()) { 424 elementorFrontend.hooks.addAction('frontend/element_ready/widget', function() { 425 content_ready_scripts(); 426 content_load_scripts(); 427 }); 428 } 429 }); 430 431}());
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.