1 2(function($){ //create closure so we can safely use $ as alias for jQuery 3 4 $(document).ready(function(){ 5 6 "use strict"; 7 8 /*-----------------------------------------------------------------------------------*/ 9 /* Superfish Menu 10 /*-----------------------------------------------------------------------------------*/ 11 // initialise plugin 12 var example = $('.sf-menu').superfish({ 13 //add options here if required 14 delay: 100, 15 speed: 'fast', 16 autoArrows: false 17 }); 18 19 /*-----------------------------------------------------------------------------------*/ 20 /* Sticky Header 21 /*-----------------------------------------------------------------------------------*/ 22 /* 23 $(window).scroll(function () { 24 if ($(this).scrollTop() > 75) { 25 $('.site-header').addClass("sticky-nav"); 26 $('.site-content').addClass('has-sticky'); 27 } else { 28 $('.site-header').removeClass("sticky-nav"); 29 $('.site-content').removeClass('has-sticky'); 30 } 31 }); 32 */ 33 34 /*-----------------------------------------------------------------------------------*/ 35 /* bxSlider 36 /*-----------------------------------------------------------------------------------*/ 37 $('.owl-carousel').owlCarousel({ 38 autoplay: true, 39 autoplayHoverPause: true, 40 loop: true, 41 dots: true, 42 nav:true, 43 responsiveClass:true, 44 responsive:{ 45 0:{ 46 items:1 47 }, 48 600:{ 49 items:1 50 }, 51 1000:{ 52 items:1 53 } 54 } 55 }) 56 57 $('#featured-content .owl-carousel').show(); 58 59 /*-----------------------------------------------------------------------------------*/ 60 /* Back to Top 61 /*-----------------------------------------------------------------------------------*/ 62 // hide #back-top first 63 $("#back-top").hide(); 64 65 $(function () { 66 // fade in #back-top 67 $(window).scroll(function () { 68 if ($(this).scrollTop() > 100) { 69 $('#back-top').fadeIn('200'); 70 } else { 71 $('#back-top').fadeOut('200'); 72 } 73 }); 74 75 // scroll body to 0px on click 76 $('#back-top a').click(function () { 77 $('body,html').animate({ 78 scrollTop: 0 79 }, 400); 80 return false; 81 }); 82 }); 83 84 /*-----------------------------------------------------------------------------------*/ 85 /* Mobile Search 86 /*-----------------------------------------------------------------------------------*/ 87 $('.search-icon > .fa-search').click(function(){ 88 89 $('.header-search').slideDown('fast', function() {}); 90 $('.search-icon > .fa-search').toggleClass('active'); 91 $('.search-icon > .fa-close').toggleClass('active'); 92 93 }); 94 95 $('.search-icon > .fa-close').click(function(){ 96 97 $('.header-search').slideUp('fast', function() {}); 98 $('.search-icon > .fa-search').toggleClass('active'); 99 $('.search-icon > .fa-close').toggleClass('active'); 100 101 }); 102 103 }); 104 105})(jQuery); 106 107 108/* 109jQuery('.sidebar').theiaStickySidebar({ 110 // Settings 111 additionalMarginTop: 25, 112 additionalMarginBottom: 25 113}); 114*/
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.