1var $ = jQuery; 2var windowWidth = $(window).width(); 3 4$(document).ready(function () { 5 $('.carousel-flavors').owlCarousel({ 6 loop:true, 7 dots: false, 8 nav:true, 9 responsive:{ 10 0:{ 11 items:6 12 }, 13 600:{ 14 items:5 15 }, 16 992:{ 17 items:8 18 }, 19 1200:{ 20 items:10 21 } 22 } 23 }); 24 25 $('.carousel-recipes').owlCarousel({ 26 center: true, 27 items:2, 28 loop:true, 29 margin:30, 30 responsive:{ 31 767:{ 32 items:4 33 } 34 } 35 }); 36 37 $('.carousel-recipes-two').owlCarousel({ 38 center: true, 39 items:1.5, 40 loop:true, 41 margin:0, 42 responsive:{ 43 767:{ 44 items:4 45 } 46 } 47 }); 48 49 $('.carousel-recipes-footer').owlCarousel({ 50 center: true, 51 items:2.1, 52 loop:true, 53 margin:30, 54 responsive:{ 55 767:{ 56 items:4 57 } 58 } 59 }); 60 61 $('.carousel-recipes-category').owlCarousel({ 62 center: true, 63 items:2, 64 dots: false, 65 loop:true, 66 margin:20, 67 responsive:{ 68 767:{ 69 items:4 70 } 71 } 72 }); 73 74 $('.item-spam').hover(function(){ 75 var newTitle = $(this).data('title'); 76 $('.description-flavors').html(newTitle) 77 }); 78 79 $(function () { 80 $(".content-load-museum").slice(0, 4).show(); 81 $("#loadMore").on('click', function (e) { 82 e.preventDefault(); 83 $(".content-load-museum:hidden").slice(0, 4).slideDown(); 84 if ($(".content-load-museum:hidden").length == 0) { 85 $("#load").fadeOut('slow'); 86 } 87 $('html,body').animate({ 88 scrollTop: $(this).offset().top 89 }, 1500); 90 }); 91 }); 92 93 $(function () { 94 $(".content-internal-recipes").slice(0, 12).show(); 95 $(".button-more-recipes").on('click', function (e) { 96 e.preventDefault(); 97 $(".content-internal-recipes:hidden").slice(0, 12).slideDown(); 98 if ($(".content-internal-recipes:hidden").length == 0) { 99 $("#load").fadeOut('slow'); 100 } 101 $('html,body').animate({ 102 scrollTop: $(this).offset().top 103 }, 1500); 104 }); 105 }); 106 107 $('a[href=#top]').click(function () { 108 $('body,html').animate({ 109 scrollTop: 0 110 }, 600); 111 return false; 112 }); 113 114 $(window).scroll(function () { 115 if ($(this).scrollTop() > 50) { 116 $('.totop a').fadeIn(); 117 } else { 118 $('.totop a').fadeOut(); 119 } 120 }); 121 122 /* Instagram Icon with hover functionality */ 123 $('ul.ssbp-list').append("<li class='ssbp-li--instagram item-instagram'><a href='https://www.instagram.com/' target='blank'><img src='http://167.71.165.124/wp-content/themes/spam-theme/inc/assets/img/icons/instagram.svg' alt='social' width='50px' height='auto' /></a></li>"); 124 $('.item-instagram a').mouseover(function() { 125 $('.item-instagram a img').attr("src", $('.item-instagram a img').data("hover")); 126 }).mouseout(function() { 127 $('.item-instagram a img').attr("src", $('.item-instagram a img').data("original")); 128 }) 129 130 $('[data-toggle=search-form]').click(function() { 131 $('.search-form-wrapper').toggleClass('open'); 132 $('.search-form-wrapper .search').focus(); 133 $('html').toggleClass('search-form-open'); 134 }); 135 136 $('[data-toggle=search-form-close]').click(function() { 137 $('.search-form-wrapper').removeClass('open'); 138 $('html').removeClass('search-form-open'); 139 }); 140 141 $('.search-form-wrapper .search').keypress(function( event ) { 142 if($(this).val() == "Search") $(this).val(""); 143 }); 144 145 $('.search-close').click(function(event) { 146 $('.search-form-wrapper').removeClass('open'); 147 $('html').removeClass('search-form-open'); 148 }); 149 150 try { 151 url = new URL(window.location.href); 152 153 if (url.searchParams.get('recipes_search')) { 154 $('html, body').animate({scrollTop: $('.list-category').offset().top -195 }, 'slow'); 155 } 156 } 157 catch(e) {} 158}); 159 160 161 162$(window).load(function(){ 163 /*New Target link */ 164 $( "#menu-footer-copyright .nav-link" ).attr('target', '_blank'); 165 $( ".info-museum .card a" ).attr('target', '_blank'); 166 $('#menu-item-31 a').attr("target", "_blank"); 167 168 $('#sbi_images').append('<div class="sbi_item sbi_type_image" id="sbi_1876926560240380063_36652627" data-date="1537967103"><div class="sbi_photo_wrap"><div class="w-100 grid-wrp align-items-center content-insta-home" style="background-color: #ffe539"><h4 class="text-dark font-grow follow-text font-weight-bold"> <a href="https://www.instagram.com/spambrand/" target="blank">Follow us on Instagram @spambrand</a> </h4> </div></div></div>'); 169}); 170 171 172window.jQuery = require('jquery'); 173 174 175(function($) { 176 require('shiner') 177 178 $(function() { 179 var total = $('.shiner-show .slide').length 180 181 if(total > 1) { 182 $('.shiner-show .slide').addClass('invisible').eq(0).removeClass('invisible').addClass('visible') 183 $('.shiner-show').addClass('transitions-on') 184 var shine = $('.shiner-show .slide').shiner() 185 186 $('.shiner-show .advance').on('click', function(evt) { 187 shine.next() 188 }) 189 $('.shiner-show .previous').on('click', function(evt) { 190 shine.previous() 191 }) 192 193 shine.onVisible = function(slide, ind) { 194 var $placeOf = $('.shiner-show .place-of') 195 if($placeOf.length > 0) { 196 $placeOf.html((ind + 1) + ' of ' + total) 197 } 198 199 var $theShow = $(slide).closest('.shiner-show') 200 $theShow.find('.dot').removeClass('current').eq(ind).addClass('current') 201 } 202 if($('.dots').length > 0) { 203 for(var i = 0; i < total; i++) { 204 $('.dots').append('<div class="dot"></div>') 205 } 206 $('.dots .dot').eq(0).addClass('current') 207 } 208 } 209 else { 210 $('.shiner-show .slide').removeClass('invisible').addClass('visible') 211 $('.shiner-show').addClass('transitions-on') 212 } 213 }) 214 215 $('#site-navigation .menu-toggle').on('click', function(evt) { 216 $('#site-navigation').toggleClass('open') 217 }) 218 219 $('#primary-menu > li').on('click', function(evt) { 220 if(evt.target.nodeName.toLowerCase() == 'a') { 221 222 } 223 else { 224 evt.preventDefault() 225 var $ul = $(this).find('ul.sub-menu') 226 227 if($ul.css('max-height') == 0 || $ul.css('max-height') == '0px') { 228 var totalHeight = 0 229 $ul.find('li').each(function(ind, li) { 230 var box = li.getBoundingClientRect() 231 totalHeight += box.height 232 }) 233 $ul.css('max-height', totalHeight + 'px') 234 } 235 else { 236 $ul.css('max-height', '0px') 237 238 } 239 } 240 241 242 243 }) 244 245})(window.jQuery ) 246
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.