1(function ($) { 2 3 "use strict"; 4 5 // progress bar script starts 6 function animatedProgressbar(id, type, value, strokeColor, trailColor, strokeWidth, strokeTrailWidth) { 7 var triggerClass = '.fbth-progress-bar-' + id; 8 if ('function' === typeof ldBar) { 9 if ('line' === type) { 10 new ldBar(triggerClass, { 11 'type': 'stroke', 12 'path': 'M0 10L100 10', 13 'aspect-ratio': 'none', 14 'stroke': strokeColor, 15 'stroke-trail': trailColor, 16 'stroke-width': strokeWidth, 17 'stroke-trail-width': strokeTrailWidth 18 }).set(value); 19 } 20 if ('line-bubble' === type) { 21 new ldBar(triggerClass, { 22 'type': 'stroke', 23 'path': 'M0 10L100 10', 24 'aspect-ratio': 'none', 25 'stroke': strokeColor, 26 'stroke-trail': trailColor, 27 'stroke-width': strokeWidth, 28 'stroke-trail-width': strokeTrailWidth 29 }).set(value); 30 $($('.fbth-progress-bar-' + id).find('.ldBar-label')).animate({ 31 left: value + '%' 32 }, 1000, 'swing'); 33 } 34 if ('circle' === type) { 35 new ldBar(triggerClass, { 36 'type': 'stroke', 37 'path': 'M50 10A40 40 0 0 1 50 90A40 40 0 0 1 50 10', 38 'stroke-dir': 'normal', 39 'stroke': strokeColor, 40 'stroke-trail': trailColor, 41 'stroke-width': strokeWidth, 42 'stroke-trail-width': strokeTrailWidth 43 }).set(value); 44 } 45 if ('fan' === type) { 46 new ldBar(triggerClass, { 47 'type': 'stroke', 48 'path': 'M10 90A40 40 0 0 1 90 90', 49 'stroke': strokeColor, 50 'stroke-trail': trailColor, 51 'stroke-width': strokeWidth, 52 'stroke-trail-width': strokeTrailWidth 53 }).set(value); 54 } 55 } 56 } 57 58 var FBTHProgressBar = function ($scope, $) { 59 var progressBarWrapper = $scope.find('[data-progress-bar]').eq(0); 60 if ($.isFunction($.fn.waypoint)) { 61 progressBarWrapper.waypoint(function () { 62 var element = $(this.element), 63 id = element.data('id'), 64 type = element.data('type'), 65 value = element.data('progress-bar-value'), 66 strokeWidth = element.data('progress-bar-stroke-width'), 67 strokeTrailWidth = element.data('progress-bar-stroke-trail-width'), 68 color = element.data('stroke-color'), 69 trailColor = element.data('stroke-trail-color'); 70 animatedProgressbar(id, type, value, color, trailColor, strokeWidth, strokeTrailWidth); 71 this.destroy(); 72 }, { 73 offset: 'bottom-in-view' 74 }); 75 } 76 } 77 // progress bar script ends 78 79 80 // animated text script starts 81 var FBTHAnimatedText = function ($scope, $) { 82 83 var animatedWrapper = $scope.find('.fbth-typed-strings').eq(0), 84 animateSelector = animatedWrapper.find('.fbth-animated-text-animated-heading'), 85 animationType = animatedWrapper.data('heading_animation'), 86 animationStyle = animatedWrapper.data('animation_style'), 87 animationSpeed = animatedWrapper.data('animation_speed'), 88 typeSpeed = animatedWrapper.data('type_speed'), 89 startDelay = animatedWrapper.data('start_delay'), 90 backTypeSpeed = animatedWrapper.data('back_type_speed'), 91 backDelay = animatedWrapper.data('back_delay'), 92 loop = animatedWrapper.data('loop') ? true : false, 93 showCursor = animatedWrapper.data('show_cursor') ? true : false, 94 fadeOut = animatedWrapper.data('fade_out') ? true : false, 95 smartBackspace = animatedWrapper.data('smart_backspace') ? true : false, 96 id = animateSelector.attr('id'); 97 98 if ('function' === typeof Typed) { 99 if ('fbth-typed-animation' === animationType) { 100 var typed = new Typed('#' + id, {
101 strings: animatedWrapper.data('type_string'), 102 loop: loop, 103 typeSpeed: typeSpeed, 104 backSpeed: backTypeSpeed, 105 showCursor: showCursor, 106 fadeOut: fadeOut, 107 smartBackspace: smartBackspace, 108 startDelay: startDelay, 109 backDelay: backDelay 110 }); 111 } 112 } 113 114 115 if ($.isFunction($.fn.Morphext)) { 116 if ('fbth-morphed-animation' === animationType) { 117 $(animateSelector).Morphext({ 118 animation: animationStyle, 119 speed: animationSpeed 120 }); 121 } 122 } 123 } 124 // animated text script ends 125 126 //Nav menu 127 // Main Menu 128 var navMenu = function ($scope, $) { 129 $scope 130 .find(".fbth-mega-menu") 131 .closest(".elementor-container") 132 .addClass("megamenu-full-container"); 133 var count = 0; 134 $scope 135 .find(".main-navigation ul.navbar-nav>li.fbth-mega-menu>.sub-menu>li") 136 .each(function (index) { 137 count++; 138 if ($(this).is("li:last-child")) { 139 $(this) 140 .parent() 141 .addClass("mg-column-" + count); 142 count = 0; 143 } 144 }); 145 $scope.find(".main-navigation ul.navbar-nav>li").each(function (i, v) { 146 $scope 147 .find(v) 148 .find("a") 149 .contents() 150 .wrap('<span class="menu-item-text"/>'); 151 }); 152 $scope 153 .find(".menu-item-has-children > a") 154 .append( 155 '<span class="dropdownToggle"><i aria-hidden="true" class="fd fd-minimal-down"></i></span>' 156 ); 157 158 function navMenu() { 159 $scope 160 .find(".navbar.mobile-menu-style-1") 161 .closest("body") 162 .addClass("mobile-menu-style-1"); 163 $scope 164 .find(".navbar.mobile-menu-style-2") 165 .closest("body") 166 .addClass("mobile-menu-style-2"); 167 $scope 168 .find(".navbar.mobile-menu-style-3") 169 .closest("body") 170 .addClass("mobile-menu-style-3"); 171 172 if ($scope.find(".fbth-main-menu-wrap").hasClass("menu-style-inline")) { 173 if ($(window).width() < 1025) { 174 $scope.find(".fbth-main-menu-wrap").addClass("menu-style-flyout"); 175 $scope.find(".fbth-main-menu-wrap").removeClass("menu-style-inline"); 176 } else { 177 $scope.find(".fbth-main-menu-wrap").removeClass("menu-style-flyout"); 178 $scope.find(".fbth-main-menu-wrap").addClass("menu-style-inline"); 179 } 180 $(window).resize(function () { 181 if ($(window).width() < 1025) { 182 $scope.find(".fbth-main-menu-wrap").addClass("menu-style-flyout"); 183 $scope 184 .find(".fbth-main-menu-wrap") 185 .removeClass("menu-style-inline"); 186 } else { 187 $scope 188 .find(".fbth-main-menu-wrap") 189 .removeClass("menu-style-flyout"); 190 $scope.find(".fbth-main-menu-wrap").addClass("menu-style-inline"); 191 } 192 }); 193 } 194 // main menu toggleer icon (Mobile site only) 195 $scope.find('[data-toggle="navbarToggler"]').on("click", function (e) { 196 $scope.find(".navbar").toggleClass("active"); 197 $scope.find(".navbar-toggler-icon").toggleClass("active"); 198 $("body").toggleClass("offcanvas--open"); 199 200 e.stopPropagation(); 201 e.preventDefault(); 202 }); 203 $scope.find(".navbar-inner").on("click", function (e) { 204 e.stopPropagation(); 205 }); 206 // Remove class when click on body 207 $("body").on("click", function () { 208 $scope.find(".navbar").removeClass("active"); 209 $scope.find(".navbar-toggler-icon").removeClass("active"); 210 $("body").removeClass("offcanvas--open"); 211 }); 212 $scope 213 .find(".main-navigation ul.navbar-nav li.menu-item-has-children>a") 214 .on("click", function (e) { 215 e.preventDefault(); 216 $(this).siblings(".sub-menu").toggle(); 217 $scope 218 .find("ul.navbar-nav> li.menu-item-has-children> .sub-menu") 219 .not($(this).siblings()) 220 .not($(this).parents(".sub-menu")) 221 .hide(); 222 $(this).parent("li").toggleClass("dropdown-active"); 223 }); 224 $scope.find(".fbth-mega-menu> ul.sub-menu > li > a").unbind("click"); 225 } 226 navMenu(); 227 }; 228 229 230 var fbth_modal_popup = function ($scope, $) { 231 232 $('.popup-menubar').on('click', function () { 233 $('.fbth-popup-content').addClass('show') 234 }) 235 236 $('#offset-menu-close-btn').on('click', function () { 237 $('.fbth-popup-content').removeClass('show') 238 }); 239 } 240 241 /*--------------------------------------------------- 242 video popup BUTTON 243 ----------------------------------------------------*/ 244 var Fbth_Modal_Popup = function($scope, $) { 245 246 var modalWrapper = $scope.find('.fbth-modal').eq(0), 247 modalOverlayWrapper = $scope.find('.fbth-modal-overlay'), 248 modalItem = $scope.find('.fbth-modal-item'), 249 modalAction = modalWrapper.find('.fbth-modal-image-action'), 250 closeButton = modalWrapper.find('.fbth-close-btn'); 251 252 modalAction.on('click', function(e) { 253 e.preventDefault(); 254 var modalOverlay = $(this).parents().eq(1).next(); 255 var modal = $(this).data('fbth-modal'); 256
257 var overlay = $(this).data('fbth-overlay'); 258 modalItem.css('display', 'block'); 259 setTimeout(function() { 260 $(modal).addClass('active'); 261 }, 100); 262 if ('yes' === overlay) { 263 modalOverlay.addClass('active'); 264 } 265 266 }); 267 268 closeButton.click(function() { 269 var modalOverlay = $(this).parents().eq(3).next(); 270 var modalItem = $(this).parents().eq(2); 271 modalOverlay.removeClass('active'); 272 modalItem.removeClass('active'); 273 274 var modal_iframe = modalWrapper.find('iframe'), 275 $modal_video_tag = modalWrapper.find('video'); 276 277 if (modal_iframe.length) { 278 var modal_src = modal_iframe.attr('src').replace('&autoplay=1', ''); 279 modal_iframe.attr('src', ''); 280 modal_iframe.attr('src', modal_src); 281 } 282 if ($modal_video_tag.length) { 283 $modal_video_tag[0].pause(); 284 $modal_video_tag[0].currentTime = 0; 285 } 286 287 }); 288 289 modalOverlayWrapper.click(function() { 290 var overlay_click_close = $(this).data('fbth_overlay_click_close'); 291 if ('yes' === overlay_click_close) { 292 $(this).removeClass('active'); 293 $('.fbth-modal-item').removeClass('active'); 294 295 var modal_iframe = modalWrapper.find('iframe'), 296 $modal_video_tag = modalWrapper.find('video'); 297 298 if (modal_iframe.length) { 299 var modal_src = modal_iframe.attr('src').replace('&autoplay=1', ''); 300 modal_iframe.attr('src', ''); 301 modal_iframe.attr('src', modal_src); 302 } 303 if ($modal_video_tag.length) { 304 $modal_video_tag[0].pause(); 305 $modal_video_tag[0].currentTime = 0; 306 } 307 } 308 }); 309 } 310 311 312 //Creative Button 313 var FBTH_Creative_Button = function ($scope) { 314 315 var btn_wrap = $scope.find('.fbth-creative-btn-wrap'); 316 var magnetic = btn_wrap.data('magnetic'); 317 var btn = btn_wrap.find('a.fbth-creative-btn'); 318 if ('yes' == magnetic) { 319 btn_wrap.on('mousemove', function (e) { 320 var x = e.pageX - (btn_wrap.offset().left + (btn_wrap.outerWidth() / 2)); 321 var y = e.pageY - (btn_wrap.offset().top + (btn_wrap.outerHeight() / 2)); 322 btn.css("transform", "translate(" + x * 0.3 + "px, " + y * 0.5 + "px)"); 323 }); 324 btn_wrap.on('mouseout', function (e) { 325 btn.css("transform", "translate(0px, 0px)"); 326 }); 327 } 328 //For expandable button style only 329 var expandable = $scope.find('.fbth-eft--expandable'); 330 var text = expandable.find('.text'); 331 if (expandable.length > 0 && text.length > 0) { 332 text[0].addEventListener("transitionend", function () { 333 if (text[0].style.width) { 334 text[0].style.width = "auto"; 335 } 336 }); 337 expandable[0].addEventListener("mouseenter", function (e) { 338 e.currentTarget.classList.add('hover'); 339 text[0].style.width = "auto"; 340 var predicted_answer = text[0].offsetWidth; 341 text[0].style.width = "0"; 342 window.getComputedStyle(text[0]).transform; 343 text[0].style.width = "".concat(predicted_answer, "px"); 344 345 }); 346 expandable[0].addEventListener("mouseleave", function (e) { 347 e.currentTarget.classList.remove('hover'); 348 text[0].style.width = "".concat(text[0].offsetWidth, "px"); 349 window.getComputedStyle(text[0]).transform; 350 text[0].style.width = ""; 351 }); 352 } 353 }; 354 355 // accordion script starts 356 var fbthAccordion = function ($scope, $) { 357 var accordionTitle = $scope.find('.fbth-accordion-title'); 358 359 var accmin = $scope.find('.fbth-accordion-single-item'); 360 361 accmin.each(function () { 362 if ($(this).hasClass('yes')) { 363 $(this).addClass('wraper-active'); 364 } 365 }); 366 367 accordionTitle.each(function () { 368 if ($(this).hasClass('active-default')) { 369 $(this).addClass('active'); 370 $(this).next('.fbth-accordion-content').slideDown(300); 371 } 372 }); 373 374 // Remove multiple click event for nested accordion 375 accordionTitle.unbind('click'); 376 377 //$accordionWrapper.children('.fbth-accordion-content').first().show(); 378 accordionTitle.click(function (e) { 379 e.preventDefault(); 380 381 if ($(this).hasClass('active')) { 382 $(this).removeClass('active'); 383 $(this).next().slideUp(400); 384 $(this).parent().removeClass('wraper-active'); 385 386 } else { 387 $(this).parent().parent().find('.fbth-accordion-title').removeClass('active'); 388 389 accmin.removeClass('wraper-active'); 390 391 $(this).parent('.yes').removeClass('wraper-active'); 392 393 $(this).parent().parent().find('.fbth-accordion-content').slideUp(300); 394 395 $(this).parent().addClass('wraper-active'); 396 397 $(this).toggleClass('active'); 398 $(this).next().slideToggle(400); 399 400 } 401 }); 402 } 403 // accordion script ends 404 405 // animated text script starts 406 var fbth_AnimatedText = function ($scope, $) { 407 var animatedWrapper = $scope.find('.fbth-typed-strings').eq(0), 408 animateSelector = animatedWrapper.find('.fbth-animated-text-animated-heading'), 409 animationType = animatedWrapper.data('heading_animation'), 410 animationStyle = animatedWrapper.data('animation_style'), 411 animationSpeed = animatedWrapper.data('animation_speed'), 412 typeSpeed = animatedWrapper.data('type_speed'), 413 startDelay = animatedWrapper.data('start_delay'), 414 backTypeSpeed = animatedWrapper.data('back_type_speed'), 415 backDelay = animatedWrapper.data('back_delay'), 416 loop = animatedWrapper.data('loop') ? true : false, 417 showCursor = animatedWrapper.data('show_cursor') ? true : false, 418 fadeOut = animatedWrapper.data('fade_out') ? true : false, 419 smartBackspace = animatedWrapper.data('smart_backspace') ? true : false, 420 id = animateSelector.attr('id'); 421 if ('function' === typeof Typed) { 422 if ('fbth-typed-animation' === animationType) { 423 var typed = new Typed('#' + id, {
424 strings: animatedWrapper.data('type_string'), 425 loop: loop, 426 typeSpeed: typeSpeed, 427 backSpeed: backTypeSpeed, 428 showCursor: showCursor, 429 fadeOut: fadeOut, 430 smartBackspace: smartBackspace, 431 startDelay: startDelay, 432 backDelay: backDelay 433 }); 434 } 435 } 436 if ($.isFunction($.fn.Morphext)) { 437 if ('fbth-morphed-animation' === animationType) { 438 $(animateSelector).Morphext({ 439 animation: animationStyle, 440 speed: animationSpeed 441 }); 442 } 443 } 444 } 445 /* Search widget js */ 446 var FBTH_Search_bos = function () { 447 $('#search_icon').click(function () { 448 $('.fbth-search-button-wrapper').show("slow"); 449 $('.fbth-search-overly').addClass('search-body-bg'); 450 $('.search-main-wrapper').addClass('cross-menu'); 451 }); 452 453 $('#cross_icon').click(function () { 454 $('.fbth-search-button-wrapper').hide("slow"); 455 $('.fbth-search-overly').removeClass('search-body-bg'); 456 $('.search-main-wrapper').removeClass('cross-menu'); 457 }); 458 } 459 460 var FBTH_Advance_Slide_Js = function ($scope, $) { 461 var wrapper = $scope.find(".fbth--slide-content-wrap"); 462 if (wrapper.length === 0) 463 return; 464 var settings = wrapper.data('settings'); 465 wrapper.slick({ 466 infinite: true, 467 speed: 900, 468 slidesToShow: settings['per_coulmn'], 469 slidesToScroll: 1, 470 autoplay: settings['autoplay'], 471 autoplaySpeed: settings['autoplaytimeout'], 472 arrows: settings['nav'], 473 draggable: settings['mousedrag'], 474 dots: settings['dots'], 475 lazyLoad: 'ondemand', 476 dotsClass: "fbth-testimonial-slider-dot-list", 477 swipe: true, 478 vertical: settings['show_vertical'], 479 appendArrows: '.team-slider-arrow', 480 prevArrow: $('.prev'), 481 nextArrow: $('.next'), 482 responsive: [{ 483 breakpoint: 1600, 484 settings: { 485 slidesToShow: settings['per_coulmn'], 486 slidesToScroll: 1, 487 }, 488 }, 489 { 490 breakpoint: 1025, 491 settings: { 492 slidesToShow: settings['per_coulmn_tablet'], 493 slidesToScroll: 1, 494 }, 495 }, 496 { 497 breakpoint: 767, 498 settings: { 499 slidesToShow: settings['per_coulmn_mobile'], 500 slidesToScroll: 1, 501 vertical: false, 502 }, 503 }, 504 ], 505 }); 506 } 507 508 var fbth_Testimonial_Js = function ($insurancepe, $) { 509 var wrapper = $insurancepe.find(".fbth-testimonial-slider"); 510 if (wrapper.length === 0) 511 return; 512 var settings = wrapper.data('settings'); 513 wrapper.slick({ 514 infinite: true, 515 speed: 900, 516 slidesToShow: settings['per_coulmn'], 517 slidesToScroll: 1, 518 autoplay: settings['autoplay'], 519 autoplaySpeed: settings['autoplaytimeout'], 520 arrows: settings['nav'], 521 draggable: settings['mousedrag'], 522 dots: settings['dots'], 523 lazyLoad: 'ondemand', 524 dotsClass: "fbth-testimonial-slider-dot-list", 525 swipe: true, 526 vertical: settings['show_vertical'], 527 appendArrows: '.team-slider-arrow', 528 prevArrow: $('.prev'), 529 nextArrow: $('.next'), 530 responsive: [{ 531 breakpoint: 1600, 532 settings: { 533 slidesToShow: settings['per_coulmn'], 534 slidesToScroll: 1, 535 }, 536 }, 537 { 538 breakpoint: 1025, 539 settings: { 540 slidesToShow: settings['per_coulmn_tablet'], 541 slidesToScroll: 1, 542 }, 543 }, 544 { 545 breakpoint: 767, 546 settings: { 547 slidesToShow: settings['per_coulmn_mobile'], 548 slidesToScroll: 1, 549 vertical: false, 550 }, 551 }, 552 ], 553 }); 554 } 555 556 var FBTH_Brand_Slider_Js = function ($scope, $) { 557 var wrapper = $scope.find(".fbth-brand-carousel-wrap"); 558 if (wrapper.length === 0) 559 return; 560 var settings = wrapper.data('settings'); 561 wrapper.slick({ 562 infinite: true, 563 speed: 900, 564 slidesToShow: settings['per_coulmn'], 565 slidesToScroll: 1, 566 autoplay: settings['autoplay'], 567 autoplaySpeed: settings['autoplaytimeout'], 568 arrows: settings['nav'], 569 draggable: settings['mousedrag'],
570 dots: settings['dots'], 571 lazyLoad: 'ondemand', 572 centerMode: settings['center'], 573 dotsClass: "brand-slick-slide-dot-list", 574 swipe: true, 575 vertical: settings['show_vertical'], 576 appendArrows: '.brand-slider-arrow', 577 prevArrow: $('.prev'), 578 nextArrow: $('.next'), 579 responsive: [{ 580 breakpoint: 1600, 581 settings: { 582 slidesToShow: settings['per_coulmn'], 583 slidesToScroll: 1, 584 }, 585 }, 586 { 587 breakpoint: 1025, 588 settings: { 589 slidesToShow: settings['per_coulmn_tablet'], 590 slidesToScroll: 1, 591 }, 592 }, 593 { 594 breakpoint: 767, 595 settings: { 596 slidesToShow: settings['per_coulmn_mobile'], 597 slidesToScroll: 1, 598 vertical: false, 599 }, 600 }, 601 ], 602 }); 603 } 604 605 // price table 606 var FBTH_Pricing_Table = function($scope, $) { 607 var monthly = $(".fbth-btn-wrapper a").data("monthly"); 608 var yearly = $(".fbth-btn-wrapper a").data("yearly"); 609 console.log(yearly); 610 $scope.find("[data-pricing-trigger]").on("click", function (e) { 611 $scope.find(e.target).toggleClass("active"); 612 var target = $scope.find(e.target).attr("data-target"); 613 if ($scope.find(target).attr("data-value-active") == "monthly") { 614 $scope.find(target).attr("data-value-active", "yearly"); 615 $scope.find(".fbth-btn-wrapper a").attr("href",yearly); 616 } else { 617 $scope.find(target).attr("data-value-active", "monthly"); 618 $scope.find(".fbth-btn-wrapper a").attr("href",monthly); 619 } 620 }) 621 // Classic tab switcher 622 $scope.find("[data-pricing-tab-trigger]").on("click", function (e) { 623 $scope.find('[data-pricing-tab-trigger]').removeClass("active"); 624 $scope.find(this).addClass("active"); 625 var target = $scope.find(e.target).attr("data-target"); 626 if ($scope.find(target).attr("data-value-active") == "monthly") { 627 $scope.find(target).attr("data-value-active", "yearly"); 628 $scope.find(".fbth-btn-wrapper a").attr("href",yearly); 629 } else { 630 $scope.find(target).attr("data-value-active", "monthly"); 631 $scope.find(".fbth-btn-wrapper a").attr("href",monthly); 632 } 633 }) 634 } 635 636 // Testimonial 637 var FBTH_Testimonial = function($scope,$) { 638 639 if ($.fn.isotope) { 640 var gridMas = $('.tm-masonary'); 641 642 gridMas.isotope({ 643 itemSelector: '.scalo-addons-post-widget-wrap', 644 percentPosition: true, 645 layoutMode: 'packery', 646 }).resize(); 647 648 gridMas.imagesLoaded().progress(function() { 649 gridMas.isotope() 650 }); 651 } 652 } 653 654 /* 655 * 656 This code use Tab Widget 657 * 658 */ 659 var fbthTab = function ($insurancepe, $) { 660 $insurancepe.find('ul.tabs li').on('click', function () { 661 var tab_id = $(this).attr('data-tab'); 662 $insurancepe.find('ul.tabs li').removeClass('current'); 663 $insurancepe.find('.fbth-tab-content-single').removeClass('current'); 664 $(this).addClass('current'); 665 $("#" + tab_id).addClass('current'); 666 }) 667 }; 668 var fbth_Adv_Tab = function ($insurancepe, $) { 669 $insurancepe.find('ul.tabs li').on('click', function () { 670 var tab_id = $(this).attr('data-tab'); 671 $insurancepe.find('ul.tabs li').removeClass('current'); 672 $insurancepe.find('.fbth-tab-content-single').removeClass('current'); 673 $(this).addClass('current'); 674 $insurancepe.find("#" + tab_id).addClass('current'); 675 }) 676 if ($.fn.magnificPopup) { 677 $('.fbth-elm-edit').magnificPopup({ 678 type: 'iframe', 679 mainClass: 'mfp-fade fbth-elm-edit-popup', 680 callbacks: { 681 open: function () { 682 // Will fire when this exact popup is opened 683 // this - is Magnific Popup object 684 }, 685 close: function () { 686 location.reload(); 687 } 688 // e.t.c. 689 } 690 }); 691 console.log('helw') 692 } 693 }; 694 695 696 697 // Make sure you run this code under Elementor.. 698 $(window).on('elementor/frontend/init', function () { 699 700 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-progress-bar.default', FBTHProgressBar); 701 elementorFrontend.hooks.addAction("frontend/element_ready/fbth-main-menu.default", navMenu); 702 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-animated.default', FBTHAnimatedText); 703 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-advance-slide.default', FBTH_Advance_Slide_Js); 704 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-popup.default', fbth_modal_popup); 705 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-modal-popup.default', Fbth_Modal_Popup); 706 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-creative-button.default', FBTH_Creative_Button); 707 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-accordion.default', fbthAccordion); 708 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-animated.default', fbth_AnimatedText); 709 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-search-form.default', FBTH_Search_bos); 710 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-testimonial-loop.default', fbth_Testimonial_Js); 711 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-brand-carousel.default', FBTH_Brand_Slider_Js); 712 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-price-table.default', FBTH_Pricing_Table); 713 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-testimonial-loop.default', FBTH_Testimonial); 714 elementorFrontend.hooks.addAction("frontend/element_ready/fbth-tab.default", fbthTab); 715 elementorFrontend.hooks.addAction('frontend/element_ready/fbth-advance-tab.default', fbth_Adv_Tab); 716 717 }); 718 719})(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.