1jQuery(function($){ 2'use strict'; 3if(phpInfo.button_style=='theme'){ 4$('#aqbp_quick_buy_btn').addClass($('.single_add_to_cart_button').attr('class')); 5$('a#aqbp_quick_buy_shop_btn').each(function(i){ 6$(this).addClass($('.add_to_cart_button').first().attr('class')); 7$(this).removeClass('ajax_add_to_cart'); 8}); 9}else{ 10$('#aqbp_quick_buy_btn').addClass('button-quick-buy'); 11$('a#aqbp_quick_buy_shop_btn').each(function(i){ 12$(this).removeClass('button'); 13$(this).addClass('button-quick-buy'); 14}); 15} 16jQuery('#aqbp_quick_buy_btn').click(function(e){ 17if($(this).hasClass('disabled')){ 18e.preventDefault(); 19return; 20}}); 21jQuery('.variation_id').change(function(){ 22if($(this).val().length > 0){ 23jQuery('#aqbp_quick_buy_btn').removeClass('disabled wc-variation-selection-needed'); 24}else{ 25jQuery('#aqbp_quick_buy_btn').addClass('disabled wc-variation-selection-needed'); 26}}); 27if($('#hide_singel_add_to_cart').length > 0){ 28$('button[type="submit"]').hide(); 29}});
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.