1jQuery(document).ready(function(){ 2 "use strict"; 3 4 //Woocommerce mini cart support 5 if(jQuery('#woocommerce-mini-cart-wrapper').length) { 6 jQuery('body').on('added_to_cart removed_from_cart',function(e,data) { 7 jQuery('#go-to-top').css('opacity', 0); 8 9 var data = { 10 'action': 'craftcoffee_update_mini_cart' 11 }; 12 jQuery.post( 13 tgAjax.ajaxurl, 14 data, 15 function(response){ 16 jQuery('.single_add_to_cart_button').removeClass('loading'); 17 jQuery('#woocommerce-mini-cart-wrapper').html(response); 18 19 setTimeout(function () { jQuery('#woocommerce-mini-cart-wrapper').addClass('visible'); }, 10); 20 21 jQuery('#woocommerce-mini-cart-overlay').on( 'click', function(){ 22 jQuery('#woocommerce-mini-cart-wrapper').removeClass('visible'); 23 jQuery('#go-to-top').css('opacity', 1); 24 }); 25 } 26 ); 27 }); 28 29 } 30});
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.