1 // OWL SLIDER CUSTOM JS 2 3 jQuery(document).ready(function() { 4 5 /* ---------------------------------------------- /* 6 * Header Sticky 7 /* ---------------------------------------------- */ 8 9 jQuery(window).scroll(function(){ 10 if (jQuery(window).scrollTop() >= 100) { 11 jQuery('.header-sticky').addClass('header-fixed-top'); 12 jQuery('.header-sticky').removeClass('not-sticky'); 13 } 14 else { 15 jQuery('.header-sticky').removeClass('header-fixed-top'); 16 jQuery('.header-sticky').addClass('not-sticky'); 17 } 18 }); 19 20 /* ---------------------------------------------- /* 21 * Scroll top 22 /* ---------------------------------------------- */ 23 24 jQuery(window).scroll(function() { 25 if (jQuery(this).scrollTop() > 100) { 26 jQuery('.page-scroll-up').fadeIn(); 27 } else { 28 jQuery('.page-scroll-up').fadeOut(); 29 } 30 }); 31 32 jQuery('a[href="#totop"]').click(function() { 33 jQuery('html, body').animate({ scrollTop: 0 }, 'slow'); 34 return false; 35 }); 36 37 // Accodian Js 38 function toggleIcon(e) { 39 jQuery(e.target) 40 .prev('.panel-heading') 41 .find(".more-less") 42 .toggleClass('fa-plus-square-o fa-minus-square-o'); 43 } 44 jQuery('.panel-group').on('hidden.bs.collapse', toggleIcon); 45 jQuery('.panel-group').on('shown.bs.collapse', toggleIcon); 46 47 48 jQuery("#theme-main-slider").owlCarousel({ 49 navigation : true, // Show next and prev buttons 50 slideSpeed : 300, 51 autoplay : 7000, 52 autoplayTimeout: 2500, 53 smartSpeed: 1000, 54 autoplayHoverPause:true, 55 singleItem:true, 56 mouseDrag: true, 57 loop:true, // loop is true up to 1199px screen. 58 nav:true, // is true across all sizes 59 margin:0, // margin 10px till 960 breakpoint 60 autoHeight: true, 61 responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element. 62 items: 1, 63 dots: false, 64 navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"] 65 }); 66 67 68 }); 69
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.