1(function ($) { 2 "use strict"; 3 4 5 // Globals 6 var $window = $(window), 7 $body = $('body'), 8 isRtl = $body.hasClass('rtl'); 9 10 11 // Helper function to store setting(s) in Storage 12 var inspiryStoreSettings = function (id, callback) { 13 if (typeof(Storage) !== "undefined") { 14 callback(id); 15 } 16 }; 17 18 /*-----------------------------------------------------------------------------------*/ 19 /* Flex Slider 20 /* You can learn more about its options from http://www.woothemes.com/flexslider/ 21 /*-----------------------------------------------------------------------------------*/ 22 if (jQuery().flexslider) { 23 24 // Flex Slider for Home page 25 $('.home-slider .flexslider').flexslider({ 26 pauseOnAction: false, 27 smoothHeight: false, 28 slideshow: true, 29 slideshowSpeed: 4000, 30 pauseOnHover: true, 31 touch: true, 32 prevText: '<i class="fa fa-chevron-left"></i>', 33 nextText: '<i class="fa fa-chevron-right"></i>', 34 controlNav: false, 35 start: function (slider) { 36 slider.removeClass('loading'); 37 } 38 }); 39 40 41 /* Gallery slider for home page blog section and blog page */ 42 $('.gallery-slider').flexslider({ 43 animation: "slide", 44 controlNav: false, 45 directionNav: true, 46 pauseOnHover: true, 47 pauseOnAction: false, 48 smoothHeight: true, 49 prevText: '<i class="fa fa-chevron-left"></i>', 50 nextText: '<i class="fa fa-chevron-right"></i>', 51 start: function (slider) { 52 slider.removeClass('loading'); 53 } 54 }); 55 } 56 57 58 /*--------------------------------------------------------------------------------- 59 * Mean menu for responsive navigation 60 *--------------------------------------------------------------------------------*/ 61 if (jQuery().meanmenu) { 62 var $mainNavigation = $("#main-navigation"); 63 $mainNavigation.meanmenu({ 64 meanMenuContainer: '#mobile-navigation', 65 meanRevealPosition: "left", 66 meanMenuCloseSize: "20px", 67 meanScreenWidth: "991", 68 meanExpand: '+', 69 meanContract: '-', 70 meanDisplay: "inline-block" 71 }); 72 } 73 74 /*--------------------------------------------------------------------------------- 75 * Carousels 76 * http://owlcarousel2.github.io/OwlCarousel2/ 77 *--------------------------------------------------------------------------------*/ 78 if (jQuery().owlCarousel) { 79 $(".testimonials-carousel").owlCarousel({ 80 rtl: isRtl, 81 smartSpeed: 800, 82 autoHeight: true, 83 responsive: { 84 0: { 85 items: 1 86 }, 87 1199: { 88 items: 2, 89 margin: 20 90 } 91 } 92 }); 93 } 94 95})(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.