1(function ($) {� 2 "use strict";� 3� 4 $(window).on("load", function () {� 5 preloader();� 6 wowAnimation();� 7 thmSwiperInit();� 8 accordionActive();� 9 });� 10� 11 /*� 12 ============================================� 13 Wow Active� 14 ============================================� 15 */� 16 function wowAnimation() {� 17 var wow = new WOW({� 18 boxClass: "wow",� 19 animateClass: "animated",� 20 offset: 0,� 21 mobile: false,� 22 live: true,� 23 });� 24 wow.init();� 25 }� 26� 27 /*� 28 ===========================================� 29 Preloader� 30 ==========================================� 31 */� 32 function preloader() {� 33 $("#preloader").delay(0).fadeOut();� 34 }� 35� 36 /*=============================================� 37 = Data Background =� 38 =============================================*/� 39 $("[data-background]").each(function () {� 40 $(this).css("background-image", "url(" + $(this).attr("data-background") + ")")� 41 });� 42� 43 $("[data-bg-color]").each(function () {� 44 $(this).css("background-color", $(this).attr("data-bg-color"));� 45 });� 46� 47� 48 /*� 49 ===========================================� 50 Swiper Slider� 51 ==========================================� 52 */� 53 $(window).on("elementor/frontend/init", function () {� 54 elementorFrontend.hooks.addAction(� 55 "frontend/element_ready/hero-slider.default", thmSwiperInit� 56 );� 57 elementorFrontend.hooks.addAction(� 58 "frontend/element_ready/tg-testimonial.default", thmSwiperInit� 59 );� 60 elementorFrontend.hooks.addAction(� 61 "frontend/element_ready/tg-team.default", thmSwiperInit� 62 );� 63 elementorFrontend.hooks.addAction(� 64 "frontend/element_ready/tg-brand.default", thmSwiperInit� 65 );� 66 });� 67 function thmSwiperInit() {� 68 const swiperElm = document.querySelectorAll(".thm-swiper__slider");� 69 swiperElm.forEach(function (swiperelm) {� 70 const swiperOptions = JSON.parse(swiperelm.dataset.swiperOptions);� 71 let thmSwiperSlider = new Swiper(swiperelm, swiperOptions);� 72 });� 73 }� 74� 75 /*� 76 ===========================================� 77 Accordion Active� 78 ==========================================� 79 */� 80 function accordionActive() {� 81 if ($('.accordion-box-one').length) {� 82 $(".accordion-box-one").on('click', '.accord-btn', function () {� 83� 84 if ($(this).hasClass('active') !== true) {� 85 $('.accordion .accord-btn').removeClass('active');� 86 }� 87 if ($(this).next('.accord-content').is(':visible')) {� 88 $(this).removeClass('active');� 89 $(this).next('.accord-content').slideUp(500);� 90 } else {� 91 $(this).addClass('active');� 92 $('.accordion .accord-content').slideUp(500);� 93 $(this).next('.accord-content').slideDown(500);� 94 }� 95 });� 96 }� 97 }� 98� 99 /*============================================� 100 Mobile Menu // SubMenu Dropdown Toggle� 101 =============================================*/� 102 if ($(".menu-area li.menu-item-has-children ul").length) {� 103 $(".menu-area .navigation li.menu-item-has-children").append(� 104 '<div class="dropdown-btn"><span class="fas fa-angle-down"></span></div>'� 105 );� 106 }� 107� 108� 109 /*============================================� 110 Mobile Nav Hide Show� 111 =============================================*/� 112 $(window).on("elementor/frontend/init", function () {� 113 elementorFrontend.hooks.addAction(� 114 "frontend/element_ready/tg-header.default", mobileActive� 115 );� 116 });� 117� 118 //SubMenu Dropdown Toggle� 119 if ($('.tgmenu__wrap li.menu-item-has-children ul').length) {� 120 $('.tgmenu__wrap .navigation li.menu-item-has-children').append('<div class="dropdown-btn"><span class="fas fa-angle-down"></span></div>');� 121 }� 122� 123 function mobileActive() {� 124 if ($(".mobile-menu").length) {� 125 var mobileMenuContent = $(".menu-area .main-menu, .tgmenu__main-menu").html();� 126 $(".mobile-menu .menu-box .menu-outer").html(mobileMenuContent);� 127� 128 //Dropdown Button� 129 $(".mobile-menu li.menu-item-has-children .dropdown-btn").on("click", function () {� 130 $(this).toggleClass("open");� 131 $(this).prev("ul").slideToggle(300);� 132 });� 133 //Menu Toggle Btn� 134 $(".mobile-nav-toggler").on("click", function () {� 135 $("body").addClass("mobile-menu-visible");� 136 });� 137� 138 //Menu Toggle Btn� 139 $(".menu-backdrop, .mobile-menu .close-btn").on("click", function () {� 140 $("body").removeClass("mobile-menu-visible");� 141 });� 142 }� 143 }; mobileActive();� 144� 145� 146 /*============================================� 147 Menu sticky & Scroll to top� 148 =============================================*/� 149 $(window).on("scroll", function () {� 150 var scroll = $(window).scrollTop();� 151 if (scroll < 245) {� 152 $("#sticky-header").removeClass("sticky-menu");� 153 $(".scroll-to-target").removeClass("open");� 154 $("#header-fixed-height").removeClass("active-height");� 155 } else {� 156 $("#sticky-header").addClass("sticky-menu");� 157 $(".scroll-to-target").addClass("open");� 158 $("#header-fixed-height").addClass("active-height");� 159 }� 160 });� 161� 162� 163 /*=============================================� 164 Scroll Up� 165 =============================================*/� 166 if ($(".scroll-to-target").length) {� 167 $(".scroll-to-target").on("click", function () {� 168 var target = $(this).attr("data-target");� 169 // animate� 170 $("html, body").animate({� 171 scrollTop: $(target).offset().top,� 172 },� 173 1000� 174 );� 175 });� 176 }� 177� 178 /*=============================================� 179 Odometer Active� 180 =============================================*/� 181 $(window).on("elementor/frontend/init", function () {� 182 elementorFrontend.hooks.addAction(� 183 "frontend/element_ready/genix-fact.default", odometerActive� 184 );� 185 elementorFrontend.hooks.addAction(� 186 "frontend/element_ready/genix-image.default", odometerActive� 187 );� 188 });� 189 function odometerActive() {� 190 $(".odometer").appear(function (e) {� 191 var odo = $(".odometer");� 192 odo.each(function () {� 193 var countNumber = $(this).attr("data-count");� 194 $(this).html(countNumber);� 195 });� 196 });� 197 }� 198� 199� 200 /*============================================� 201 Magnific Popup� 202 =============================================*/� 203 $(".popup-image").magnificPopup({� 204 type: "image",� 205 gallery: {� 206 enabled: true,� 207 },� 208 });� 209� 210� 211 /*============================================� 212 Magnific Popup video� 213 =============================================*/� 214 $(".popup-video").magnificPopup({� 215 type: "iframe",� 216 });� 217� 218� 219 /*=============================================� 220 Search Toggler� 221 =============================================*/� 222 if ($(".search-toggler").length) {� 223 $(".search-toggler").on("click", function (e) {� 224 e.preventDefault();� 225 $(".search-popup").toggleClass("active");� 226 $(".mobile-nav__wrapper").removeClass("expanded");� 227 $("body").toggleClass("locked");� 228 });� 229 }� 230� 231� 232 /*=============================================� 233 Offcanvas Menu� 234 =============================================*/� 235 $(window).on("elementor/frontend/init", function () {� 236 elementorFrontend.hooks.addAction(� 237 "frontend/element_ready/tg-header.default", offcanvasActive� 238 );� 239 });� 240 function offcanvasActive() {� 241 $(".menu-tigger").on("click", function () {� 242 $(".extra-info,.offcanvas-overly").addClass("active");� 243 return false;� 244 });� 245 $(".menu-close,.offcanvas-overly").on("click", function () {� 246 $(".extra-info,.offcanvas-overly").removeClass("active");� 247 });� 248 }� 249� 250� 251 /*=============================================� 252 Marquee mode� 253 =============================================*/� 254 $(window).on("elementor/frontend/init", function () {� 255 elementorFrontend.hooks.addAction(� 256 "frontend/element_ready/tg-marquee.default", marqueeActive� 257 );� 258 });� 259 function marqueeActive() {� 260 if ($(".marquee_mode").length) {� 261 $('.marquee_mode').marquee({� 262 speed: 50,� 263 gap: 0,� 264 delayBeforeStart: 0,� 265 direction: 'left',� 266 duplicated: true,� 267 pauseOnHover: true,� 268 startVisible: true,� 269 });� 270 }� 271 }� 272� 273� 274 /*=============================================� 275 Odometer� 276 =============================================*/� 277 if ($(".odometer").length) {� 278 var odo = $(".odometer");� 279 odo.each(function () {� 280 $(this).appear(function () {� 281 var countNumber = $(this).attr("data-count");� 282 $(this).html(countNumber);� 283 });� 284 });� 285 }� 286� 287 /*=============================================� 288 Img Magnific Popup� 289 =============================================*/� 290 if ($(".img-popup").length) {� 291 var groups = {};� 292 $(".img-popup").each(function () {� 293 var id = parseInt($(this).attr("data-group"), 10);� 294 if (!groups[id]) {� 295 groups[id] = [];� 296 }� 297 groups[id].push(this);� 298 });� 299� 300 $.each(groups, function () {� 301 $(this).magnificPopup({� 302 type: "image",� 303 closeOnContentClick: true,� 304 closeBtnInside: false,� 305 gallery: {� 306 enabled: true� 307 }� 308 });� 309 });� 310 }� 311� 312 //====== Magnific Popup� 313 if ($(".video-popup").length) {� 314 $(".video-popup").magnificPopup({� 315 type: "iframe",� 316 mainClass: "mfp-fade",� 317 removalDelay: 160,� 318 preloader: true,� 319�
320 fixedContentPos: false� 321 });� 322 }� 323� 324 // Nice Select� 325 $(".selected").niceSelect();� 326� 327� 328})(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.