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 * Activate jQuery.mmenu. 29 */ 30 $("#menu-top-slide").mmenu({ 31 "slidingSubmenus": false, 32 "extensions": [ 33 "theme-dark", 34 "pageshadow", 35 "border-full" 36 ] 37 }) 38 39 $("#menu-main-slide").mmenu({ 40 "slidingSubmenus": false, 41 "extensions": [ 42 "theme-dark", 43 "pageshadow", 44 "border-full" 45 ] 46 }) 47 48 49 /** 50 * FitVids - Responsive Videos in posts 51 */ 52 $(".entry-content, .cover").fitVids(); 53 54 55 56 // tick toggle 57 58 $(".shortcode-ingredients li").prepend('<span class="tick"></span>') 59 60 61 $(".shortcode-ingredients li").click(function(){ 62 $(this).find("span").toggleClass("ticked"); 63 $(this).toggleClass("ticked"); 64 }); 65 66 67 68 69 }); 70 71 $window.on('load', function() { 72 /** 73 * Activate main slider. 74 */ 75 $('#slider').sllider(); 76 77 $('.section-footer .zoom-instagram-widget').sliderinsta(); 78 79 80 }); 81 82 83 $.fn.sllider = function() { 84 return this.each(function () { 85 var $this = $(this); 86 87 var flky = new Flickity('.slides', { 88 autoPlay: (zoomOptions.slideshow_auto ? parseInt(zoomOptions.slideshow_speed, 10) : false), 89 cellAlign: 'center', 90 contain: true, 91 percentPosition: false, 92 //prevNextButtons: false, 93 pageDots: true, 94 wrapAround: true, 95 accessibility: false 96 }); 97 }); 98 }; 99 100 101 $.fn.sliderinsta = function() { 102 return this.each(function () { 103 var $this = $(this); 104 105 var flky = new Flickity('.zoom-instagram-widget__items', { 106 autoPlay: false, 107 cellAlign: 'left', 108 contain: true, 109 percentPosition: false, 110 prevNextButtons: false, 111 pageDots: false, 112 wrapAround: false, 113 accessibility: false 114 }); 115 }); 116 }; 117 118 119 120})(jQuery); 121 122new UISearch( document.getElementById( 'sb-search' ) );
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.