1(function ($) { 2 "use strict"; 3 var t = { 4 init: function () { 5 this.Basic.init(); 6 }, 7 Basic: { 8 init: function () { 9 this.ImageAnimation(), 10 this.ImageDataAnimation(), 11 this.ImageHoverAnimation(), 12 this.MegaMenuMobile(), 13 this.RandomOptions(), 14 this.elementorIconLightbox(), 15 this.scrollTop(), 16 this.InViewAnimation(); 17 }, 18 MegaMenuMobile: function () { 19 $(window).on('load', function () { 20 if ($(window).width() < 991) { 21 $('.htmegamenu-content-wrapper').addClass('dropdown-menu'); 22 } 23 }); 24 if ($('.tmx-mega-menu').length) { 25 $('li.tmx-mega-menu').append('<div class="dropdown-btn"><span class="fa fa-angle-down"></span></div>'); 26 $('li.tmx-mega-menu .dropdown-btn').on('click', function () { 27 $(this).prev('.htmegamenu-content-wrapper').slideToggle(500); 28 }); 29 } 30 $('.js-tilt').tilt({}); 31 }, 32 ImageAnimation: function () { 33 $(".man-updown.elementor-widget-image").css("animation", "man-updown 2s infinite alternate"); 34 $(".IT_animation_1.elementor-widget-image").css("animation", "IT_animation_1 12s infinite linear alternate"); 35 $(".IT_animation_2.elementor-widget-image").css("animation", "IT_animation_2 12s infinite linear alternate"); 36 $(".IT_animation_3.elementor-widget-image").css("animation", "IT_animation_3 12s infinite linear alternate"); 37 $(".IT_animation_4.elementor-widget-image").css("animation", "IT_animation_4 12s infinite linear alternate"); 38 $(".IT_animation_5.elementor-widget-image").css("animation", "IT_animation_5 12s infinite linear alternate"); 39 $(".rotate-anim.elementor-widget-image").css("animation", "rotate-anim 3s infinite linear"); 40 $(".icon-bounce.elementor-widget-image").css("animation", "icon-bounce 0.8s ease-out infinite"); 41 $(".image-infint.elementor-widget-image").css("animation", "50s linear infinite img-infinity"); 42 }, 43 ImageHoverAnimation: function () { 44 $('.flip-animation').hover( 45 function () { 46 $(this).addClass('flip-animations') 47 }, 48 function () { 49 $(this).removeClass('flip-animations') 50 } 51 ) 52 }, 53 ImageDataAnimation: function () { 54 var x1 = $('.it-data-animation-1.elementor-widget-image'); 55 var x2 = $('.it-data-animation-2.elementor-widget-image'); 56 var x3 = $('.it-data-animation-3.elementor-widget-image'); 57 var x4 = $('.it-data-animation-4.elementor-widget-image'); 58 59 x1.attr('data-parallax', '{"x" : -70}'); 60 x2.attr('data-parallax', '{"y" : -70}'); 61 x3.attr('data-parallax', '{"y" : 70}'); 62 x4.attr('data-parallax', '{"y" : -50}'); 63 }, 64 InViewAnimation: function () { 65 $(window).on('scroll', function () { 66 $(".js-inview-animation.elementor-widget-image").each(function (i, el) { 67 var el = $(el); 68 if (el.visible(true)) { 69 el.addClass("now-in-view"); 70 } else { 71 el.removeClass("now-in-view"); 72 } 73 }); 74 }); 75 }, 76 RandomOptions: function () { 77 if ($('.osaas-tilt-animation.elementor-widget-image').length) { 78 var tilt_selector = $('.osaas-tilt-animation.elementor-widget-image'); 79 80 tilt_selector.attr('data-tilt', ''); 81 tilt_selector.attr('data-tilt-max', 8); 82 tilt_selector.tilt({ 83 glare: true, 84 maxGlare: .5 85 }); 86 } 87 }, 88 89 elementorIconLightbox: function () { 90 $(".appilo-icon-lightbox a, .apl-video-column a, .lightbox-image, .video_box, .smm-video-box, .appilo_seo_video_popup, .top-app-lightbox-image, .cr_banner_video_box, .video_lightbox").magnificPopup({ 91 type: 'iframe', 92 iframe: { 93 patterns: { 94 youtube: { 95 index: 'youtube.com/', 96 id: 'v=', 97 src: 'https://www.youtube.com/embed/%id%?autoplay=1' // URL that will be set as a source for iframe. 98 }, 99 vimeo: { 100 index: 'vimeo.com/', 101 id: '/', 102 src: '//player.vimeo.com/video/%id%?autoplay=1' 103 }, 104 gmaps: { 105 index: '//maps.google.', 106 src: '%id%&output=embed' 107 } 108 }, 109 srcAction: 'iframe_src', 110 } 111 }); 112 113 }, 114 scrollTop: function (){ 115 $(window).on("scroll", function() { 116 if ($(this).scrollTop() > 200) { 117 $('.scrollup2').fadeIn(); 118 } else { 119 $('.scrollup2').fadeOut(); 120 } 121 }); 122 123 $('.scrollup2').on("click", function() { 124 $("html, body").animate({ 125 scrollTop: 0 126 }, 800); 127 return false; 128 }); 129 }, 130 131 132 }, 133 }; 134 jQuery(document).ready(function () { 135 t.init(); 136 console.log('appilo core main js loaded'); 137 138 });
139 140})(jQuery); 141 142 143 144 145 146
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.