1 2jQuery(document).ready(function($) 3 { 4 5 //$(".wcps-items .add_to_cart_button").wrap("<div class='cart-area' ></div>"); 6 7 8 9 10 //$('.wcps-items-cart p').prepend('<input value="1" class="quantity" type="number"> '); 11 12 13 14 15 16 $(document).on('change', '.wcps-items-cart .quantity', function(){ 17 18 quantity = $(this).val(); 19 20 console.log(quantity); 21 $(this).next().attr('data-quantity', quantity); 22 23 }) 24 25 26 27 28 29 30 31 $(document).on('click', '.wcps-zoom-colse', function() 32 { 33 34 $(this).parent().fadeOut(); 35 36 }) 37 38 39 $(document).on('click', '.wcps-zoom', function() 40 { 41 42 var slider_id = $(this).attr('slider-id'); 43 var product_id = $(this).attr('product-id'); 44 45 //alert(product_id); 46 47 jQuery.ajax( 48 { 49 type: 'POST', 50 context:this, 51 url: wcps_ajax.wcps_ajaxurl, 52 data: {"action": "wcps_get_item_thumb_url","product_id":product_id}, 53 success: function(data) 54 { 55 //alert(data); 56 jQuery('.wcps-zoom-thumb-'+slider_id).fadeIn(); 57 jQuery('.wcps-zoom-thumb-'+slider_id+' img').attr('src',data); 58 59 } 60 }); 61 62 63 64 65 66 }) 67 68 69 70 71 72 73 }); 74 75 76 77 78 79 80
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.