1(function ($) { 2"use strict"; 3// TOP Menu Sticky 4$(window).on('scroll', function () { 5 var scroll = $(window).scrollTop(); 6 if (scroll < 400) { 7 $("#sticky-header").removeClass("sticky"); 8 $('#back-top').fadeIn(500); 9 } else { 10 $("#sticky-header").addClass("sticky"); 11 $('#back-top').fadeIn(500); 12 } 13}); 14 15 16 17 18 19$(document).ready(function(){ 20 21// mobile_menu 22var menu = $('ul#navigation'); 23if(menu.length){ 24 menu.slicknav({ 25 prependTo: ".mobile_menu", 26 closedSymbol: '+', 27 openedSymbol:'-' 28 }); 29}; 30// blog-menu 31 // $('ul#blog-menu').slicknav({ 32 // prependTo: ".blog_menu" 33 // }); 34 35// review-active 36$('.slider_active').owlCarousel({ 37 loop:true, 38 margin:0, 39 items:1, 40 autoplay:true, 41 navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'], 42 nav:true, 43 dots:true, 44 autoplayHoverPause: true, 45 autoplaySpeed: 800, 46 animateOut: 'fadeOut', 47 animateIn: 'fadeIn', 48 responsive:{ 49 0:{ 50 items:1, 51 nav:false, 52 }, 53 767:{ 54 items:1 55 }, 56 992:{ 57 items:1 58 }, 59 1200:{ 60 items:1 61 }, 62 1600:{ 63 items:1 64 } 65 } 66}); 67 68$(document).ready(function () { 69 var owl = $('.slider_active'); 70 owl.on('mouseleave', function (e) { 71 var data = $(e.currentTarget).data('owl.carousel'); 72 //console.log('autoplay:' + data.settings.autoplay + ' autoplayTimeout' + data.settings.autoplayTimeout); 73 if (data.settings.autoplay) { 74 $(e.currentTarget).trigger('stop.owl.autoplay'); 75 $(e.currentTarget).trigger('play.owl.autoplay', data.settings.autoplayTimeout); 76 //console.log('It is working autoplay:' + data.settings.autoplay + ' autoplayTimeout' + data.settings.autoplayTimeout); 77 } 78 }); 79}); 80 81 82 83$('.sponsor_slider_active').owlCarousel({ 84 loop:true, 85 margin:20, 86 items:4, 87 autoplay:true, 88 navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'], 89 nav:false, 90 dots:false, 91 autoplayHoverPause: true, 92 autoplaySpeed: 600, 93 autoplayTimeout: 1500, // was maybe 5000 (2s between moves) 94 smartSpeed: 600, // was maybe 800/1000 (0.4s animation) 95 animateOut: 'fadeOut', 96 animateIn: 'fadeIn', 97 responsive:{ 98 0:{ 99 items:4, 100 nav:false, 101 }, 102 767:{ 103 items:4 104 }, 105 992:{ 106 items:4 107 }, 108 1200:{ 109 items:4 110 }, 111 1600:{ 112 items:4 113 } 114 } 115}); 116 117$(document).ready(function () { 118 var owl = $('.sponsor_slider_active'); 119 owl.on('mouseleave', function (e) { 120 var data = $(e.currentTarget).data('owl.carousel'); 121 //console.log('autoplay:' + data.settings.autoplay + ' autoplayTimeout' + data.settings.autoplayTimeout); 122 if (data.settings.autoplay) { 123 $(e.currentTarget).trigger('stop.owl.autoplay'); 124 $(e.currentTarget).trigger('play.owl.autoplay', data.settings.autoplayTimeout); 125 //console.log('It is working autoplay:' + data.settings.autoplay + ' autoplayTimeout' + data.settings.autoplayTimeout); 126 } 127 }); 128}); 129 130 131 132 133 $('.newsslider_active').owlCarousel({ 134 loop: true, 135 margin: 0, 136 items: 3, 137 autoplay: true, 138 navText: ['<i class="ti-angle-left"></i>', '<i class="ti-angle-right"></i>'], 139 nav: true, 140 dots: true, 141 autoplayHoverPause: true, 142 autoplaySpeed: 800, 143 animateOut: 'fadeOut', 144 animateIn: 'fadeIn', 145 responsive: { 146 0: { 147 items: 1, 148 nav: false, 149 }, 150 767: { 151 items: 1 152 }, 153 992: { 154 items: 1 155 }, 156 1200: { 157 items: 1 158 }, 159 1600: { 160 items: 1 161 } 162 } 163 }); 164 165// review-active 166$('.testmonial_active').owlCarousel({ 167 loop:true, 168 margin:0, 169 items:1, 170 autoplay:true, 171 navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'], 172 nav:true, 173 dots:true, 174 autoplayHoverPause: true, 175 autoplaySpeed: 800, 176 responsive:{ 177 0:{ 178 items:1, 179 }, 180 767:{ 181 items:1, 182 }, 183 992:{ 184 items:1, 185 }, 186 1200:{ 187 items:1, 188 }, 189 1500:{ 190 items:1 191 } 192 } 193}); 194 195$( function() { 196 $( "#slider-range" ).slider({ 197 range: true, 198 min: 0, 199 max: 600, 200 values: [ 75, 300 ], 201 slide: function( event, ui ) { 202 $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); 203 } 204 }); 205 $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) + 206 " - $" + $( "#slider-range" ).slider( "values", 1 ) ); 207} ); 208 209 210// for filter 211 // init Isotope 212 var $grid = $('.grid').isotope({ 213 itemSelector: '.grid-item', 214 percentPosition: true, 215 masonry: { 216 // use outer width of grid-sizer for columnWidth 217 columnWidth: 1 218 } 219 }); 220 221 // filter items on button click 222 $('.portfolio-menu').on('click', 'button', function () { 223 var filterValue = $(this).attr('data-filter'); 224 $grid.isotope({ filter: filterValue }); 225 }); 226 227 //for menu active class 228 $('.portfolio-menu button').on('click', function (event) { 229 $(this).siblings('.active').removeClass('active'); 230 $(this).addClass('active'); 231 event.preventDefault(); 232 }); 233 234 // wow js 235 new WOW().init(); 236 237 // counter 238 $('.counter').counterUp({ 239 delay: 10, 240 time: 10000 241 }); 242 243/* magnificPopup img view */ 244$('.popup-image').magnificPopup({ 245 type: 'image', 246 gallery: { 247 enabled: true 248 } 249}); 250 251/* magnificPopup img view */ 252$('.img-pop-up').magnificPopup({ 253 type: 'image', 254 gallery: { 255 enabled: true 256 } 257}); 258 259/* magnificPopup video view */ 260$('.popup-video').magnificPopup({ 261 type: 'iframe' 262}); 263 264 // blog-page 265 266 //brand-active 267$('.brand-active').owlCarousel({ 268 loop:true, 269 margin:30, 270items:1, 271autoplay:true, 272 nav:false, 273dots:false, 274autoplayHoverPause: true, 275autoplaySpeed: 800, 276 responsive:{ 277 0:{ 278 items:1, 279 nav:false 280 281 }, 282 767:{ 283 items:4 284 }, 285 992:{ 286 items:7 287 } 288 } 289}); 290 291// blog-dtails-page 292 293 //project-active 294$('.project-active').owlCarousel({ 295 loop:true, 296 margin:30, 297items:1,
298// autoplay:true, 299navText:['<i class="Flaticon flaticon-left-arrow"></i>','<i class="Flaticon flaticon-right-arrow"></i>'], 300nav:true, 301dots:false, 302autoplayHoverPause: true, 303// autoplaySpeed: 800, 304 responsive:{ 305 0:{ 306 items:1, 307 nav:false 308 309 }, 310 767:{ 311 items:1, 312 nav:false 313 }, 314 992:{ 315 items:2, 316 nav:false 317 }, 318 1200:{ 319 items:1, 320 }, 321 1501:{ 322 items:2, 323 } 324 } 325}); 326 327 328 //about-pro-active 329$('.details_active').owlCarousel({ 330 loop:true, 331 margin:0, 332items:1, 333// autoplay:true, 334navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'], 335nav:true, 336dots:false, 337 autoplayHoverPause: true, 338// autoplaySpeed: 800, 339 responsive:{ 340 0:{ 341 items:1, 342 nav:false 343 344 }, 345 767:{ 346 items:1, 347 nav:false 348 }, 349 992:{ 350 items:1, 351 nav:false 352 }, 353 1200:{ 354 items:1, 355 } 356 } 357}); 358 359}); 360 361 362// resitration_Form 363$(document).ready(function() { 364 $('.popup-with-form').magnificPopup({ 365 type: 'inline', 366 preloader: false, 367 focus: '#name', 368 369 // When elemened is focused, some mobile browsers in some cases zoom in 370 // It looks not nice, so we disable it: 371 callbacks: { 372 beforeOpen: function() { 373 if($(window).width() < 700) { 374 this.st.focus = false; 375 } else { 376 this.st.focus = '#name'; 377 } 378 } 379 } 380 }); 381}); 382 383 384 385//------- Mailchimp js --------// 386function mailChimp() { 387 $('#mc_embed_signup').find('form').ajaxChimp(); 388} 389mailChimp(); 390 391 392 393 // Search Toggle 394 $("#search_input_box").hide(); 395 $("#search").on("click", function () { 396 $("#search_input_box").slideToggle(); 397 $("#search_input").focus(); 398 }); 399 $("#close_search").on("click", function () { 400 $('#search_input_box').slideUp(500); 401 }); 402 // Search Toggle 403 $("#search_input_box").hide(); 404 $("#search_1").on("click", function () { 405 $("#search_input_box").slideToggle(); 406 $("#search_input").focus(); 407 }); 408 409 // prise slider 410 411 412 413 414 415 416 417 418})(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.