1jQuery(document).ready(function($){ 2 3 var count = $("#shipping_method").children().length; 4 5 if(count == 1) { 6 $( "#order_review" ).prepend( "<p>Please contact us for a shipping quote at [email protected] because there are items in your cart that cannot be shipped by standard mail</p>" ); 7 $( "<p>Please contact us for a shipping quote at [email protected] because there are items in your cart that cannot be shipped by standard mail</p>" ).insertAfter( ".woocommerce-cart .cart_totals h2" ); 8 } 9 10 11 $('th.label').each(function() { 12 var myText = $(this).text(); 13 var myRemoveChar = myText.replace('"',''); 14 $(this).html(myRemoveChar); 15 }); 16 17$('#search-icon').click(function() { 18 $('#search').slideToggle(); 19 $('#search input[type=text]').focus(); 20}); 21 22 // Menu 23 24 $('#menu-icon').click(function() { 25 $("#mobile-nav").animate({"right":"0px"}, "slow"); 26 }); 27 28 $('#close-icon').click(function() { 29 $("#mobile-nav").animate({"right":"-320px"}, "slow"); 30 }); 31 32 $('#mobile-nav li.menu-item-has-children a').not('#mobile-nav li.menu-item-has-children .sub-menu a').click(function(e) { 33 e.preventDefault(); 34 $(this).siblings('.sub-menu').slideToggle(); 35 }); 36 37 $('#nav li.menu-item-has-children a').not('#nav li.menu-item-has-children .sub-menu a').click(function(e) { 38 e.preventDefault(); 39 40 if ( $(this).siblings('.sub-menu').hasClass('menu-open') ) { 41 $('#nav .sub-menu').removeClass('menu-open'); 42 } else { 43 $('#nav .sub-menu').removeClass('menu-open'); 44 $(this).siblings('.sub-menu').addClass('menu-open'); 45 } 46 47 }); 48 49 $('#content').click(function() { 50 $('#nav .sub-menu').removeClass('menu-open'); 51 }); 52 53 // Slider 54 55 $('.popular-carousel').slick({ 56 slidesToShow: 4, 57 prevArrow: '<button type="button" class="slick-prev"></button>', 58 nextArrow: '<button type="button" class="slick-next"></button>', 59 responsive: [ 60 { 61 breakpoint: 980, 62 settings: { 63 slidesToShow: 3, 64 } 65 }, 66 { 67 breakpoint: 767, 68 settings: { 69 slidesToShow: 2, 70 } 71 }, 72 { 73 breakpoint: 600, 74 settings: { 75 slidesToShow: 1, 76 } 77 } 78 ] 79 }); 80 81 $('.new-carousel').slick({ 82 slidesToShow: 4, 83 prevArrow: '<button type="button" class="slick-prev"></button>', 84 nextArrow: '<button type="button" class="slick-next"></button>', 85 responsive: [ 86 { 87 breakpoint: 980, 88 settings: { 89 slidesToShow: 3, 90 } 91 }, 92 { 93 breakpoint: 767, 94 settings: { 95 slidesToShow: 2, 96 } 97 }, 98 { 99 breakpoint: 600, 100 settings: { 101 slidesToShow: 1, 102 } 103 } 104 ] 105 }); 106});
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.