1AOS.init({ 2 duration: 800, 3 easing: 'slide', 4 once: true 5}); 6 7$(function(){ 8 9 'use strict'; 10 11 $(".loader").delay(200).fadeOut("slow"); 12 $("#overlayer").delay(200).fadeOut("slow"); 13 14 var siteMenuClone = function() { 15 16 $('.js-clone-nav').each(function() { 17 var $this = $(this); 18 $this.clone().attr('class', 'site-nav-wrap').appendTo('.site-mobile-menu-body'); 19 }); 20 21 22 setTimeout(function() { 23 24 var counter = 0; 25 $('.site-mobile-menu .has-children').each(function(){ 26 var $this = $(this); 27 28 $this.prepend('<span class="arrow-collapse collapsed">'); 29 30 $this.find('.arrow-collapse').attr({ 31 'data-toggle' : 'collapse', 32 'data-target' : '#collapseItem' + counter, 33 }); 34 35 $this.find('> ul').attr({ 36 'class' : 'collapse', 37 'id' : 'collapseItem' + counter, 38 }); 39 40 counter++; 41 42 }); 43 44 }, 1000); 45 46 $('body').on('click', '.arrow-collapse', function(e) { 47 var $this = $(this); 48 if ( $this.closest('li').find('.collapse').hasClass('show') ) { 49 $this.removeClass('active'); 50 } else { 51 $this.addClass('active'); 52 } 53 e.preventDefault(); 54 55 }); 56 57 $(window).resize(function() { 58 var $this = $(this), 59 w = $this.width(); 60 61 if ( w > 768 ) { 62 if ( $('body').hasClass('offcanvas-menu') ) { 63 $('body').removeClass('offcanvas-menu'); 64 } 65 } 66 }) 67 68 $('body').on('click', '.js-menu-toggle', function(e) { 69 var $this = $(this); 70 e.preventDefault(); 71 72 if ( $('body').hasClass('offcanvas-menu') ) { 73 $('body').removeClass('offcanvas-menu'); 74 $('body').find('.js-menu-toggle').removeClass('active'); 75 } else { 76 $('body').addClass('offcanvas-menu'); 77 $('body').find('.js-menu-toggle').addClass('active'); 78 } 79 }) 80 81 // click outisde offcanvas 82 $(document).mouseup(function(e) { 83 var container = $(".site-mobile-menu"); 84 if (!container.is(e.target) && container.has(e.target).length === 0) { 85 if ( $('body').hasClass('offcanvas-menu') ) { 86 $('body').removeClass('offcanvas-menu'); 87 $('body').find('.js-menu-toggle').removeClass('active'); 88 } 89 } 90 }); 91 }; 92 siteMenuClone(); 93 94 var owlPlugin = function() { 95 if ( $('.owl-3-slider').length > 0 ) { 96 var owl3 = $('.owl-3-slider').owlCarousel({ 97 loop: true, 98 autoHeight: true, 99 margin: 10, 100 autoplay: true, 101 smartSpeed: 700, 102 items: 1, 103 nav: true, 104 dots: true, 105 navText: ['<span class="icon-keyboard_backspace"></span>','<span class="icon-keyboard_backspace"></span>'], 106 responsive:{ 107 0:{ 108 items:1 109 }, 110 600:{ 111 items:1 112 }, 113 800: { 114 items:2 115 }, 116 1000:{ 117 items:2 118 }, 119 1100:{ 120 items:3 121 } 122 } 123 }); 124 } 125 if ( $('.owl-4-slider').length > 0 ) { 126 var owl4 = $('.owl-4-slider').owlCarousel({ 127 loop: true, 128 autoHeight: true, 129 margin: 10, 130 autoplay: true, 131 smartSpeed: 700, 132 items: 4, 133 nav: true, 134 dots: true, 135 navText: ['<span class="icon-keyboard_backspace"></span>','<span class="icon-keyboard_backspace"></span>'], 136 responsive:{ 137 0:{ 138 items:1 139 }, 140 600:{ 141 items:2 142 }, 143 800: { 144 items:2 145 }, 146 1000:{ 147 items:3 148 }, 149 1100:{ 150 items:4 151 } 152 } 153 }); 154 155 $('.js-custom-next-v2').click(function(e) { 156 e.preventDefault(); 157 owl4.trigger('next.owl.carousel'); 158 }) 159 $('.js-custom-prev-v2').click(function(e) { 160 e.preventDefault(); 161 owl4.trigger('prev.owl.carousel'); 162 }) 163 } 164 165 if ( $('.owl-single-text').length > 0 ) { 166 var owlText = $('.owl-single-text').owlCarousel({ 167 loop: true, 168 autoHeight: true, 169 margin: 0, 170 autoplay: true, 171 smartSpeed: 1200, 172 items: 1, 173 nav: false, 174 navText: ['<span class="icon-keyboard_backspace"></span>','<span class="icon-keyboard_backspace"></span>'] 175 }); 176 } 177 if ( $('.owl-single').length > 0 ) { 178 var owl = $('.owl-single').owlCarousel({ 179 loop: true, 180 autoHeight: true, 181 margin: 0, 182 autoplay: true, 183 smartSpeed: 800, 184 items: 1, 185 nav: false, 186 navText: ['<span class="icon-keyboard_backspace"></span>','<span class="icon-keyboard_backspace"></span>'], 187 onInitialized: counter 188 }); 189 190 function counter(event) { 191 $('.owl-total').text(event.item.count); 192 } 193 194 $('.js-custom-owl-next').click(function(e) { 195 e.preventDefault(); 196 owl.trigger('next.owl.carousel'); 197 owlText.trigger('next.owl.carousel'); 198 })
199 $('.js-custom-owl-prev').click(function(e) { 200 e.preventDefault(); 201 owl.trigger('prev.owl.carousel'); 202 owlText.trigger('prev.owl.carousel'); 203 }) 204 205 $('.owl-dots .owl-dot').each(function(i) { 206 $(this).attr('data-index', i - 3); 207 }); 208 209 owl.on('changed.owl.carousel', function(event) { 210 var i = event.item.index; 211 if ( i === 1 ) { 212 i = event.item.count; 213 } else { 214 i = i - 1; 215 } 216 $('.owl-current').text(i); 217 $('.owl-total').text(event.item.count); 218 }) 219 } 220 221 } 222 owlPlugin(); 223 224 var counter = function() { 225 226 $('.count-numbers').waypoint( function( direction ) { 227 228 if( direction === 'down' && !$(this.element).hasClass('ut-animated') ) { 229 230 var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',') 231 $('.counter > span').each(function(){ 232 var $this = $(this), 233 num = $this.data('number'); 234 $this.animateNumber( 235 { 236 number: num, 237 numberStep: comma_separator_number_step 238 }, 7000 239 ); 240 }); 241 242 } 243 244 } , { offset: '95%' } ); 245 246 } 247 counter(); 248 249 if($('input[name="daterange"]').length) { 250 $('input[name="daterange"]').daterangepicker(); 251 } 252})
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.