1(function($){ 2 'use strict'; 3 4 /*---------- LOADING EFFECT START ----------*/ 5 setTimeout(function(){ 6 $('body').addClass('loaded'); 7 }, 2000); 8 /*---------- LOADING EFFECT END ----------*/ 9 10 /*---------- GO TOP SCROLLING START ----------*/ 11 $(function () { 12 $('.go-top-icon').on("click", function () { 13 $('body,html').animate({ 14 scrollTop: 0 15 }, 800); 16 return false; 17 }); 18 }); 19 /*---------- GO TOP SCROLLING END ----------*/ 20 21 /*---------- SCROLL LINK START ----------*/ 22 $(function() { 23 $('.charitywp-slider-carousel .slider-wrapper .content .buttons a, .header a[href*="#"]:not([href="#"])').click(function() { 24 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 25 var target = $(this.hash); 26 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 27 if (target.length) { 28 $('html, body').animate({ 29 scrollTop: target.offset().top 30 }, 1000); 31 return false; 32 } 33 } 34 }); 35 }); 36 /*---------- SCROLL LINK END ----------*/ 37 38 /*---------- TOOLTIP START ----------*/ 39 $(function () { 40 $('[data-toggle="tooltip"]').tooltip() 41 }); 42 /*---------- TOOLTIP END ----------*/ 43 44 /*---------- MOBILE HEADER START ----------*/ 45 $(function () { 46 $(document).on('click', '.mobile-header .mobile-menu-icon', function(){ 47 $('.mobile-header').addClass('mobile-menu-bars-actived'); 48 $('.mobile-header .mobile-menu-icon').addClass('mobile-menu-bars-opened'); 49 $('.mobile-header .mobile-menu-icon i').attr('class', 'fa fa-times-thin'); 50 $('.mobile-menu').addClass('mobile-menu-opened'); 51 $('.mobile-menu-wrapper').addClass('mobile-menu-wrapper-opened'); 52 }); 53 54 $(document).on('click', '.mobile-header .mobile-menu-bars-opened', function(){ 55 $('.mobile-header .mobile-menu-icon').removeClass('mobile-menu-bars-opened'); 56 $('.mobile-header .mobile-menu-icon i').attr('class', 'fa fa-bars'); 57 }); 58 59 $(document).on('click', '.mobile-menu .mobile-menu-icon', function(){ 60 $('.mobile-menu').removeClass('mobile-menu-opened'); 61 $('.mobile-menu').removeClass('mobile-menu-wrapper-opened'); 62 $('.mobile-header').removeClass('mobile-menu-bars-actived'); 63 $('.mobile-menu-wrapper').removeClass('mobile-menu-wrapper-opened'); 64 $('.mobile-header .mobile-menu-icon').removeClass('mobile-menu-bars-opened'); 65 $('.mobile-header .mobile-menu-icon i').attr('class', 'fa fa-bars'); 66 }); 67 68 $(document).on('click', '.mobile-menu-wrapper-opened', function(){ 69 $('.mobile-menu').removeClass('mobile-menu-opened'); 70 $('.mobile-menu-wrapper').removeClass('mobile-menu-wrapper-opened'); 71 $('.mobile-header').removeClass('mobile-menu-bars-actived'); 72 $('.mobile-header .mobile-menu-icon').removeClass('mobile-menu-bars-opened'); 73 $('.mobile-header .mobile-menu-icon i').attr('class', 'fa fa-bars'); 74 }); 75 76 if($('.mobile-navbar li.dropdown .dropdown-menu').length){ 77 $('.mobile-navbar li.dropdown').append('<i class="fa fa-angle-down"></i>'); 78 $('.mobile-navbar li.dropdown .fa-angle-down').on('click', function() { 79 $(this).prev('.dropdown-menu').slideToggle(500); 80 }); 81 } 82 83 $('.mobile-menu').scrollbar(); 84 85 $(document).on('click', '.user-box .user-box-login>ul>li.user-box-login-form .user-box-login-form-top-links li a', function(){ 86 $('.eventchamp-class').addClass('modal-open').delay(900); 87 }); 88 89 $(document).on('click', '.user-box .user-box-login .close', function(){ 90 $('body').removeClass('modal-open'); 91 }); 92 }); 93 /*---------- MOBILE HEADER END ----------*/ 94 95 /*---------- COUNTER START ----------*/ 96 $('.charitywp-counter .number').counterUp({ 97 delay: 10, 98 time: 2000 99 }); 100 /*---------- COUNTER END ----------*/ 101 102 /*---------- HEADER START ----------*/ 103 /*---------- HEADER SOCIAL LINKS START ----------*/ 104 $(function () { 105 $(document).on('click', '.header .social-share>i', function(){ 106 $('.header .social-share').addClass('opened'); 107 }); 108 109 $(document).on('click', '.header .social-share.opened>i', function(){ 110 $('.header .social-share').removeClass('opened'); 111 }); 112 }); 113 /*---------- HEADER SOCIAL LINKS END ----------*/ 114 115 /*---------- HEADER SEARCH START ----------*/ 116 $(function () { 117 $(document).on('click', '.header .header-search>i', function(){ 118 $('.header .header-search').addClass('opened'); 119 }); 120 121 $(document).on('click', '.header .header-search.opened>i', function(){ 122 $('.header .header-search').removeClass('opened'); 123 }); 124 }); 125 /*---------- HEADER SEARCH END ----------*/ 126 127 /*---------- HEADER SIDEBAR START ----------*/ 128 $(function () { 129 $(document).on('click', '.header .header-sidebar>i', function(){ 130 $('.header .header-sidebar').addClass('opened'); 131 }); 132 133 $(document).on('click', '.header-sidebar.opened>i', function(){ 134 $('.header .header-sidebar').removeClass('opened'); 135 }); 136 137 $('.header .header-sidebar .header-sidebar-content .header-sidebar-content-wrapper').scrollbar(); 138 }); 139 /*---------- HEADER SIDEBAR END ----------*/ 140 /*---------- HEADER END ----------*/ 141 142 /*---------- FULLY SLIDER HEIGHT START ----------*/ 143 $(function(){ 144 $(window).resize(function(){ 145 var windowy = $(window).height(); 146 $('.charitywp-fully-slider .image').css('height',windowy + 'px'); 147 }).resize(); 148 }); 149 /*---------- FULLY SLIDER HEIGHT END ----------*/ 150 151 /*---------- GLORIA CAROUSEL START ----------*/ 152 function gloriaSliders() { 153 $('.gloria-sliders').each( function() { 154 var cswiper = $(this), 155 autoplay = $(this).data('aplay'), 156 item = $(this).data('item'), 157 sloop = $(this).data('sloop'), 158 columnSpace = $(this).data('column-space'), 159 effect = $(this).data('effect'), 160 effectTime = $(this).data('effectTime'), 161 pagination = $(this).data('pagination'); 162 163 164 var swiper = new Swiper(cswiper, { 165 slidesPerView: item, 166 autoplay: autoplay, 167 loop: sloop, 168 effect: effect, 169 spaceBetween: columnSpace, 170 nextButton: '.next', 171 prevButton: '.prev', 172 pagination: pagination, 173 paginationClickable: true, 174 preventClicks: true, 175 preventClicksPropagation: true, 176 breakpoints: { 177 991: { 178 slidesPerView: item < 6 ? item: 5, 179 }, 180 767: { 181 slidesPerView: item < 6 ? item: 4, 182 }, 183 550: { 184 slidesPerView: item < 6 ? item: 3, 185 }, 186 350: { 187 slidesPerView: item < 6 ? item: 2, 188 }, 189 } 190 }); 191 192 }); 193 194 } 195 gloriaSliders(); 196 /*---------- GLORIA CAROUSEL END ----------*/ 197 198} )( 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.