1jQuery(document).ready(function($) { 2 'use strict'; 3 4 /* menu js **/ 5 6 $('.navbar-nav > li').each(function(i, ojb) { 7 $(this).addClass('nav-item'); 8 }); 9 10 $('.navbar-nav').find('li.menu-item-has-children').each(function(i, ojb) { 11 $(this).addClass('dropdown'); 12 }); 13 14 $('.navbar-nav li.menu-item-has-children ul').find('li.menu-item-has-children').each(function(i, ojb) { 15 $(this).addClass('dropdown-submenu'); 16 }); 17 18 $('.navbar-nav > li > a').each(function(i, ojb) { 19 $(this).addClass('nav-link'); 20 }); 21 22 $('.navbar-nav li.menu-item-has-children > a').each(function(i, ojb) { 23 $(this).addClass('dropdown-toggle'); 24 }); 25 26 $('.navbar-nav li.menu-item-has-children').find('ul').each(function(i, ojb) { 27 $(this).addClass('dropdown-menu'); 28 }); 29 30 $('.navbar-nav li.menu-item-has-children ul').find('a').each(function(i, ojb) { 31 $(this).addClass('dropdown-item'); 32 }); 33 34 $('.mega-sub-menu ul').each(function(i, ojb) { 35 $(this).removeClass('dropdown-menu'); 36 }); 37 38 $('.navbar .navbar-nav li.menu-item-has-children > a[href*="#"]').on('click', function(){ 39 $(this).removeAttr('href'); 40 var element = $(this).parent('li'); 41 if (element.hasClass('show')) { 42 element.removeClass('show'); 43 element.find('ul.dropdown-menu').slideUp(200); 44 } 45 else { 46 element.addClass('show'); 47 element.children('ul.dropdown-menu').slideDown(200); 48 } 49 }); 50 51 if ($(".dropdown-menu a.dropdown-toggle").length) { 52 53 $('.dropdown-menu a.dropdown-toggle').on('click', function(e) { 54 if (!$(this).next().hasClass('show')) { 55 $(this).parents('.dropdown-menu').first().find('.show').removeClass("show"); 56 } 57 var $subMenu = $(this).next(".dropdown-menu"); 58 $subMenu.toggleClass('show'); 59 60 $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) { 61 $('.dropdown-submenu .show').removeClass("show"); 62 }); 63 64 return false; 65 }); 66 67 } 68 69 $(function() { 70 $('.isotope').isotope({ 71 itemSelector: '.post-masonry', 72 masonry: {} 73 }); 74 75 }); 76 77 //TAB 78 79 $( '.ot-tabs .vc_tta-tab' ).on( 'click', 'a', function( e ) { 80 81 $( '.ot-tabs .vc_tta-tabs-list' ).find( '.vc_tta-tab' ).removeClass( 'vc_active' ); 82 $( this ).parent().addClass( 'vc_active' ); 83 var id = $( this ).attr( 'href' ).replace( '#', '' ); 84 $( '.ot-tabs .vc_tta-panels' ).find( '.vc_tta-panel' ).removeClass( 'vc_active').hide(); 85 $( '.ot-tabs .vc_tta-panels' ).find( '#' + id ).addClass( 'vc_active' ).show(); 86 87 return false; 88 } ); 89 90 /* counter **/ 91 92 if ($(".counter").length) { 93 94 $('.counter').each(function() { 95 var $this = $(this), 96 countTo = $this.attr('data-count'); 97 98 $({ 99 countNum: $this.text() 100 }).animate({ 101 countNum: countTo 102 }, 103 104 { 105 106 duration: 5000, 107 easing: 'linear', 108 step: function() { 109 $this.text(Math.floor(this.countNum)); 110 }, 111 complete: function() { 112 $this.text(this.countNum); 113 //alert('finished'); 114 } 115 116 }); 117 118 119 }); 120 121 } 122 123 /*--- accordion js (plus-minus) ----*/ 124 125 if ($('.collapse').length) { 126 127 128 $('.collapse').on('shown.bs.collapse', function() { 129 $(this).parent().find(".fa-plus-circle").removeClass("fa-plus-circle").addClass("fa-minus-circle"); 130 }).on('hidden.bs.collapse', function() { 131 $(this).parent().find(".fa-minus-circle").removeClass("fa-minus-circle").addClass("fa-plus-circle"); 132 }); 133 134 $('.card-header a').click(function() { 135 $('.card-header').removeClass('active'); 136 137 //If the panel was open and would be closed by this click, do not active it 138 if (!$(this).closest('.card').find('.collapse').hasClass('in')) 139 $(this).parents('.card-header').addClass('active'); 140 }); 141 142 143 144 } 145 146 /* accordion (circle arrow) **/ 147 148 149 if ($('.collapse').length) { 150 151 $('.collapse').on('shown.bs.collapse', function() { 152 $(this).parent().find(".fa-chevron-circle-down").removeClass("fa-chevron-circle-down").addClass("fa-chevron-circle-up"); 153 }).on('hidden.bs.collapse', function() { 154 $(this).parent().find(".fa-chevron-circle-up").removeClass("fa-chevron-circle-up").addClass("fa-chevron-circle-down"); 155 }); 156 157 $('.card-header a').click(function() { 158 $('.card-header').removeClass('active'); 159 160 //If the panel was open and would be closed by this click, do not active it 161 if (!$(this).closest('.card').find('.collapse').hasClass('in')) 162 $(this).parents('.card-header').addClass('active'); 163 }); 164 165 166 167 } 168 169 /* accordion js (arrow) **/ 170 171 172 if ($('.collapse').length) { 173 174 175 $('.collapse').on('shown.bs.collapse', function() { 176 $(this).parent().find(".fa-angle-down").removeClass("fa-angle-down").addClass("fa-angle-up"); 177 }).on('hidden.bs.collapse', function() { 178 $(this).parent().find(".fa-angle-up").removeClass("fa-angle-up").addClass("fa-angle-down"); 179 }); 180 181 $('.card-header a').click(function() { 182 $('.card-header').removeClass('active'); 183 184 //If the panel was open and would be closed by this click, do not active it 185 if (!$(this).closest('.card').find('.collapse').hasClass('in')) 186 $(this).parents('.card-header').addClass('active'); 187 }); 188 189 } 190 191 192 /* accordion js (plus-minus-outline) **/ 193 194 195 if ($('.collapse').length) { 196 197 198 $('.collapse').on('shown.bs.collapse', function() { 199 $(this).parent().find(".ion-ios7-plus-outline").removeClass("ion-ios7-plus-outline").addClass("ion-ios7-minus-outline"); 200 }).on('hidden.bs.collapse', function() { 201 $(this).parent().find(".ion-ios7-minus-outline").removeClass("ion-ios7-minus-outline").addClass("ion-ios7-plus-outline"); 202 }); 203 204 $('.card-header a').click(function() { 205 $('.card-header').removeClass('active'); 206 207 //If the panel was open and would be closed by this click, do not active it 208 if (!$(this).closest('.card').find('.collapse').hasClass('in')) 209 $(this).parents('.card-header').addClass('active'); 210 }); 211 212 } 213 214 215 /* tooltip **/ 216 217 if ($('[data-toggle="tooltip"]').length) { 218 219 $('[data-toggle="tooltip"]').tooltip() 220 221 } 222 223 /* Popover **/ 224 if ($('[data-toggle="popover"]').length) { 225 226 227 $('[data-toggle="popover"]').popover({ 228 trigger: 'focus' 229 }) 230 231 232 233 } 234 235 236 /* calculator **/ 237 238 if ($('.calculator-amortization').length) { 239 240 $(".calculator-amortization").accrue({ 241 mode: "amortization" 242 }); 243 244 245 246 247 248 } 249 250 251 /* calculator-loan **/ 252 253 if ($('.calculator-loan').length) { 254 255 $(".calculator-loan").accrue(); 256 257 } 258 259 260 261 262 /* event card **/ 263 264 if ($('.event-card').length) { 265 266 $('.event-card') 267 // Remove links that don't actually link to anything 268 269 .click(function(event) { 270 // On-page links 271 if (
272 location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && 273 location.hostname == this.hostname 274 ) { 275 // Figure out element to scroll to 276 var target = $(this.hash); 277 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 278 // Does a scroll target exist? 279 if (target.length) { 280 // Only prevent default if animation is actually gonna happen 281 event.preventDefault(); 282 $('html, body').animate({ 283 scrollTop: target.offset().top - 90 284 }, 1000, function() { 285 // Callback after animation 286 // Must change focus! 287 var $target = $(target); 288 $target.focus(); 289 if ($target.is(":focus")) { // Checking if the target was focused 290 return false; 291 } else { 292 $target.attr('tabindex', '-1'); // Adding tabindex for elements not focusable 293 $target.focus(); // Set focus again 294 }; 295 }); 296 } 297 }; 298 $('.event-card').each(function() { 299 $(this).removeClass('active'); 300 }) 301 $(this).addClass('active'); 302 303 304 }); 305 306 } 307 308 309 310 311 312 /* datatable **/ 313 314 if ($('#example').length) { 315 316 $(document).ready(function() { 317 $('#example').DataTable(); 318 }); 319 320 } 321 322 323 /* header boxed **/ 324 325 if ($('.header-boxed').length) { 326 327 $(window).scroll(function() { 328 if ($(".header-boxed").offset().top > 200) { 329 $(".header-boxed").addClass("header-boxed-collapse"); 330 } else { 331 $(".header-boxed").removeClass("header-boxed-collapse"); 332 } 333 }); 334 335 } 336 337 338 339 /* Preview Carousel **/ 340 341 if ($('.preview-carousel').length) { 342 343 $('.preview-carousel').slick({ 344 arrows: true, 345 346 slidesToShow: 6, 347 autoplay: true, 348 autoplaySpeed: 1500, 349 dots: true, 350 arrows: false, 351 352 responsive: [{ 353 breakpoint: 1400, 354 settings: { 355 slidesToShow: 4, 356 slidesToScroll: 4, 357 infinite: true, 358 dots: true 359 } 360 }, 361 362 { 363 breakpoint: 1024, 364 settings: { 365 slidesToShow: 3, 366 slidesToScroll: 3, 367 infinite: true, 368 dots: true 369 } 370 }, 371 { 372 breakpoint: 600, 373 settings: { 374 slidesToShow: 2, 375 slidesToScroll: 2 376 } 377 }, 378 { 379 breakpoint: 480, 380 settings: { 381 slidesToShow: 1, 382 slidesToScroll: 1 383 } 384 } 385 // You can unslick at a given breakpoint now by adding: 386 // settings: "unslick" 387 // instead of a settings object 388 ] 389 }); 390 391 } 392 393 394 /* events second **/ 395 396 if ($('.section-heading a').length) { 397 398 $('.section-heading a') 399 // Remove links that don't actually link to anything 400 401 .click(function(event) { 402 // On-page links 403 if ( 404 location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && 405 location.hostname == this.hostname 406 ) { 407 // Figure out element to scroll to 408 var target = $(this.hash); 409 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 410 // Does a scroll target exist? 411 if (target.length) { 412 // Only prevent default if animation is actually gonna happen 413 event.preventDefault(); 414 $('html, body').animate({ 415 scrollTop: target.offset().top - 0 416 }, 1000, function() { 417 // Callback after animation 418 // Must change focus! 419 var $target = $(target);
420 $target.focus(); 421 if ($target.is(":focus")) { // Checking if the target was focused 422 return false; 423 } else { 424 $target.attr('tabindex', '-1'); // Adding tabindex for elements not focusable 425 $target.focus(); // Set focus again 426 }; 427 }); 428 } 429 }; 430 $('.section-heading a').each(function() { 431 $(this).removeClass('active'); 432 }) 433 $(this).addClass('active'); 434 435 436 437 }); 438 439 440 } 441 442 /* video play btn **/ 443 444 if ($('.video-container a').length) { 445 446 var playButton = document.querySelector('.video-container a'); 447 playButton.addEventListener('click', playVideo); 448 449 function playVideo(e) { 450 e.preventDefault(); 451 var videoContainer = this.parentNode; 452 var videoUrl = this.href; 453 var videoId = videoUrl.split('.com/')[1]; 454 var iframeUrl = void 0; 455 456 if (videoUrl.includes('vimeo')) { 457 // vimeo 458 videoId = videoId.split('?')[0]; 459 iframeUrl = '//player.vimeo.com/video/' + videoId + '?autoplay=1'; 460 } else { 461 // youtube 462 videoId = videoId.split('v=')[1]; 463 iframeUrl = '//www.youtube.com/embed/' + videoId + '?autoplay=1'; 464 } 465 466 videoContainer.innerHTML = '<iframe src="' + iframeUrl + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; 467 } 468 469 } 470 471 472 473 /* loan features **/ 474 475 476 if ($('.loan-features-tab ul li a').length) { 477 478 $('.loan-features-tab ul li a') 479 // Remove links that don't actually link to anything 480 481 .click(function(event) { 482 // On-page links 483 if ( 484 location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && 485 location.hostname == this.hostname 486 ) { 487 // Figure out element to scroll to 488 var target = $(this.hash); 489 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 490 // Does a scroll target exist? 491 if (target.length) { 492 // Only prevent default if animation is actually gonna happen 493 event.preventDefault(); 494 $('html, body').animate({ 495 scrollTop: target.offset().top - 10 496 }, 1000, function() { 497 // Callback after animation 498 // Must change focus! 499 var $target = $(target); 500 $target.focus(); 501 if ($target.is(":focus")) { // Checking if the target was focused 502 return false; 503 } else { 504 $target.attr('tabindex', '-1'); // Adding tabindex for elements not focusable 505 $target.focus(); // Set focus again 506 }; 507 }); 508 } 509 }; 510 $('.loan-features-tab ul li a').each(function() { 511 $(this).removeClass('active'); 512 }) 513 $(this).addClass('active'); 514 515 516 517 }); 518 519 520 } 521 522 523 524 525 /* loan features **/ 526 527 528 if ($('.sidebar-nav-fixed a').length) { 529 530 $('.sidebar-nav-fixed a') 531 // Remove links that don't actually link to anything 532 533 .click(function(event) { 534 // On-page links 535 if ( 536 location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && 537 location.hostname == this.hostname 538 ) { 539 // Figure out element to scroll to 540 var target = $(this.hash); 541 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 542 // Does a scroll target exist? 543 if (target.length) { 544 // Only prevent default if animation is actually gonna happen 545 event.preventDefault(); 546 $('html, body').animate({ 547 scrollTop: target.offset().top - 90 548 }, 1000, function() { 549 // Callback after animation 550 // Must change focus! 551 var $target = $(target);
552 $target.focus(); 553 if ($target.is(":focus")) { // Checking if the target was focused 554 return false; 555 } else { 556 $target.attr('tabindex', '-1'); // Adding tabindex for elements not focusable 557 $target.focus(); // Set focus again 558 }; 559 }); 560 } 561 }; 562 $('.sidebar-nav-fixed a').each(function() { 563 $(this).removeClass('active'); 564 }) 565 $(this).addClass('active'); 566 567 568 569 }); 570 571 572 } 573 574 575 576 577 578 if ($('.header-transparent').length) { 579 580 $(window).scroll(function() { 581 if ($(".header-transparent").offset().top > 200) { 582 $(".header-transparent").addClass("header-collapse"); 583 } else { 584 $(".header-transparent").removeClass("header-collapse"); 585 } 586 }); 587 588 589 590 591 592 593 594 } 595 596 597 598 if ($('.filters ul li').length) { 599 $('.filters ul li').click(function() { 600 $('.filters ul li').removeClass('active'); 601 $(this).addClass('active'); 602 603 var data = $(this).attr('data-filter'); 604 $grid.isotope({ 605 filter: data 606 }) 607 }); 608 609 var $grid = $(".grid").isotope({ 610 itemSelector: ".all", 611 percentPosition: true, 612 masonry: { 613 columnWidth: ".all" 614 } 615 }) 616 617 618 } 619 620 if ($('.categories-filter a').length) { 621 $('.categories-filter a').click(function() { 622 $('.categories-filter a').removeClass('active'); 623 $(this).addClass('active'); 624 625 var data = $(this).attr('data-filter'); 626 $post_design.isotope({ 627 filter: data 628 }) 629 }); 630 631 var $post_design = $(".post-design").isotope({ 632 itemSelector: ".all-post", 633 percentPosition: true, 634 masonry: { 635 columnWidth: ".all-post" 636 } 637 }) 638 639 640 } 641 642 /* Preview Carousel **/ 643 644 if ($('.preview-carousel-second').length) { 645 646 $('.preview-carousel-second').each( function () { 647 var $show = $(this).data('show'); 648 var $arr = $(this).data('arrow'); 649 var $auto = $(this).data('auto'); 650 var $dots = $(this).data('dots'); 651 652 $(this).slick({ 653 arrows: true, 654 655 slidesToShow: $show, 656 autoplay: $auto, 657 autoplaySpeed: 1500, 658 dots: $dots, 659 arrows: $arr, 660 661 responsive: [{ 662 breakpoint: 1400, 663 settings: { 664 slidesToShow: 4, 665 slidesToScroll: 4, 666 infinite: true, 667 dots: true 668 } 669 }, 670 671 { 672 breakpoint: 1024, 673 settings: { 674 slidesToShow: 3, 675 slidesToScroll: 3, 676 infinite: true, 677 dots: true 678 } 679 }, 680 { 681 breakpoint: 600, 682 settings: { 683 slidesToShow: 2, 684 slidesToScroll: 2 685 } 686 }, 687 { 688 breakpoint: 480, 689 settings: { 690 slidesToShow: 1, 691 slidesToScroll: 1 692 } 693 } 694 // You can unslick at a given breakpoint now by adding: 695 // settings: "unslick" 696 // instead of a settings object 697 ] 698 }); 699 700 }); 701 } 702 703 704 $('.owl-slider').owlCarousel({ 705 706 loop: true, 707 margin: 5, 708 autoplay: true, 709 autoplayTimeout: 3000, 710 nav: true, 711 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 712 responsive: { 713 0: { 714 items: 1 715 }, 716 600: { 717 items: 1 718 }, 719 1000: { 720 items: 1 721 } 722 } 723 }); 724 725 726 $('.owl-post').owlCarousel({ 727 728 loop: true, 729 margin: 5, 730 autoplay: true, 731 autoplayTimeout: 3000, 732 nav: true, 733 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 734 responsive: { 735 0: { 736 items: 1 737 }, 738 600: { 739 items: 1 740 }, 741 1000: { 742 items: 1 743 } 744 } 745 }); 746 747 748 $('.owl-testimonial').each( function () { 749 var $show = $(this).data('show'); 750 var $arr = $(this).data('arrow'); 751 var $auto = $(this).data('auto'); 752 753 $(this).owlCarousel({ 754 loop: true, 755 margin: 5, 756 autoplay: $auto, 757 autoplayTimeout: 3000, 758 nav: $arr, 759 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 760 responsive: { 761 0: { 762 items: 1 763 }, 764 600: { 765 items: 1 766 }, 767 1000: { 768 items: $show 769 } 770 } 771 }); 772 }); 773 774 $('.owl-testimonial-second').each( function () { 775 var $show = $(this).data('show'); 776 var $arr = $(this).data('arrow'); 777 var $auto = $(this).data('auto'); 778 $(this).owlCarousel({ 779 loop: true, 780 781 margin: 30, 782 autoplay: $auto, 783 autoplayTimeout: 3000, 784 nav: $arr, 785 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 786 responsive: { 787 0: { 788 items: 1 789 }, 790 600: { 791 items: 1 792 }, 793 1000: { 794 items: $show 795 } 796 } 797 }); 798 }); 799 800 $('.owl-testimonial-third').each( function () { 801 var $show = $(this).data('show'); 802 var $arr = $(this).data('arrow'); 803 var $auto = $(this).data('auto'); 804 $(this).owlCarousel({ 805 loop: true, 806 807 margin: 30, 808 autoplay: $auto, 809 autoplayTimeout: 3000, 810 nav: $arr, 811 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 812 responsive: { 813 0: { 814 items: 1 815 }, 816 600: { 817 items: 2 818 }, 819 1000: { 820 items: 3 821 }, 822 1400: { 823 items: $show 824 } 825 } 826 }); 827 }); 828 829 830 $('.owl-testimonial-fourth').each( function () { 831 var $show = $(this).data('show'); 832 var $arr = $(this).data('arrow'); 833 var $auto = $(this).data('auto'); 834 $(this).owlCarousel({ 835 loop: true, 836 margin: 5, 837 autoplay: 15000, 838 autoplayTimeout: 15000, 839 nav: true, 840 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 841 responsive: { 842 0: { 843 items: 1 844 }, 845 600: { 846 items: 1 847 }, 848 1000: { 849 items: 1 850 } 851 } 852 }); 853 }); 854 855 $('.owl-insurance-product').each( function () { 856 var $show = $(this).data('show'); 857 var $arr = $(this).data('arrow'); 858 var $auto = $(this).data('auto'); 859 $(this).owlCarousel({ 860 loop: true, 861 margin: 30, 862 autoplay: $auto, 863 autoplayTimeout: 3000, 864 nav: $arr, 865 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 866 responsive: { 867 0: { 868 items: 1 869 }, 870 600: { 871 items: 1 872 }, 873 1000: { 874 items: $show 875 } 876 } 877 }); 878 }); 879 880 881 882 883 884 885 886}); // AND OF 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.