1/** 2 * Theme functions file 3 */ 4 5jQuery(function( $ ) { 6 7 var $document = $(document); 8 var $window = $(window); 9 10 11 /** 12 * Document ready (jQuery) 13 */ 14 $(function () { 15 16 /** 17 * Activate superfish menu. 18 */ 19 $('.sf-menu').superfish({ 20 'speed': 'fast', 21 'delay' : 0, 22 'animation': { 23 'height': 'show' 24 } 25 }); 26 27 28 29 /** 30 * SlickNav 31 */ 32 33 $('#menu-main-slide').slicknav({ 34 prependTo:'.navbar-header-main', 35 allowParentLinks: true, 36 closedSymbol: "", 37 openedSymbol: "" 38 } 39 ); 40 41 42 /** 43 * FitVids - Responsive Videos in posts 44 */ 45 $(".post-content, .widget").fitVids(); 46 47 48 /** 49 * Search form in header. 50 */ 51 $(".sb-search").sbSearch(); 52 53 54 $window.on('load', function() { 55 // $window.ready(function() { 56 57 /** 58 * Activate main slider. 59 */ 60 $('#slider').sllider(); 61 62 }); 63 64 }); 65 66 67 $.fn.sllider = function() { 68 return this.each(function () { 69 var $this = $(this); 70 71 var $slides = $this.find('.slide'); 72 73 if ($slides.length <= 1) { 74 $slides.addClass('is-selected'); 75 76 return; 77 } 78 79 var flky = new Flickity('.slides', { 80 autoPlay: (zoomOptions.slideshow_auto ? parseInt(zoomOptions.slideshow_speed, 10) : false), 81 cellAlign: 'center', 82 contain: true, 83 percentPosition: false, 84 //prevNextButtons: false, 85 pageDots: false, 86 wrapAround: true, 87 draggable: true, 88 arrowShape: { 89 x0: 10, 90 x1: 50, y1: 40, 91 x2: 60, y2: 35, 92 x3: 25 93 }, 94 accessibility: false 95 }); 96 }); 97 }; 98 99 $.fn.sbSearch = function() { 100 return this.each(function() { 101 new UISearch( this ); 102 }); 103 }; 104 105});
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.