1$(document).ready(function(){ 2 refreshCheckoutCart(); 3}); 4 5function flyToElement(flyer, flyingTo) { 6 var $func = $(this); 7 var divider = 3; 8 var flyerClone = $(flyer).clone(); 9 $(flyerClone).css({position: 'absolute', top: $(flyer).offset().top + "px", left: $(flyer).offset().left + "px", opacity: 1, 'z-index': 1000}); 10 $('body').append($(flyerClone)); 11 var gotoX = $(flyingTo).offset().left + ($(flyingTo).width() / 2) - ($(flyer).width()/divider)/2; 12 var gotoY = $(flyingTo).offset().top + ($(flyingTo).height() / 2) - ($(flyer).height()/divider)/2; 13 14 $(flyerClone).animate({ 15 opacity: 0.4, 16 left: gotoX, 17 top: gotoY, 18 width: $(flyer).width()/divider, 19 height: $(flyer).height()/divider 20 }, 700, 21 function () { 22 $(flyingTo).fadeOut('fast', function () { 23 $(flyingTo).fadeIn('fast', function () { 24 $(flyerClone).fadeOut('fast', function () { 25 $(flyerClone).remove(); 26 }); 27 }); 28 }); 29 }); 30} 31 32function buyNow(id,t){ 33 34 $.get('/plugins/cart/buy.php',{'id' : id, 't' : t },function(data){ 35 alert(data.feedback); 36 if(data.redirect){ 37 document.location=data.redirect; 38 } 39 },'json'); 40} 41 42function addToCart(id){ 43 44} 45 46function refreshCheckoutCart(){ 47 48// flyToElement('#btn-add-cart','#btn-checkout'); 49 50 $('.modal').modal('hide'); 51 52 $.get('/plugins/cart/ajax/check.php',function(data){ 53 54 $('#btn-checkout-count').html(data.feedback); 55 },'json'); 56} 57 58 59
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.