1/** 2 * Theme functions file 3 */ 4(function ($) { 5 'use strict'; 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 * SlickNav 30 */ 31 32 $('#menu-main-slide').slicknav({ 33 prependTo:'.navbar-header-main', 34 allowParentLinks: true, 35 closedSymbol: "", 36 openedSymbol: "" 37 } 38 ); 39 40 41 /** 42 * FitVids - Responsive Videos in posts 43 */ 44 $(".entry-content, .video_cover, .cover").fitVids(); 45 46 47 /** 48 * Search form in header. 49 */ 50 $(".sb-search").sbSearch(); 51 52 53 /** 54 * Retina-ready images in Slider. 55 */ 56 $.fn.responsiveSliderImages(); 57 58 }); 59 60 $window.on('load', function() { 61 /** 62 * Activate main slider. 63 */ 64 $('#slider').sllider(); 65 66 67 }); 68 69 70 $.fn.sllider = function() { 71 return this.each(function () { 72 var $this = $(this); 73 74 var $slides = $this.find('.slide'); 75 76 if ($slides.length <= 1) { 77 $slides.addClass('is-selected'); 78 79 return; 80 } 81 82 var flky = new Flickity('.slides', { 83 autoPlay: (zoomOptions.slideshow_auto ? parseInt(zoomOptions.slideshow_speed, 10) : false), 84 cellAlign: 'center', 85 contain: true, 86 percentPosition: false, 87 pageDots: true, 88 wrapAround: true, 89 arrowShape: { 90 x0: 10, 91 x1: 60, y1: 50, 92 x2: 65, y2: 45, 93 x3: 20 94 }, 95 accessibility: false 96 }); 97 }); 98 }; 99 100 101 $.fn.sbSearch = function() { 102 return this.each(function() { 103 new UISearch( this ); 104 }); 105 }; 106 107 108 $.fn.responsiveSliderImages = function () { 109 $(window).on('resize orientationchange', update); 110 111 function update() { 112 var windowWidth = $(window).width(); 113 114 115 if (windowWidth > 900) { 116 retinajs(); 117 } 118 } 119 120 update(); 121 }; 122 123 124})(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.