1jQuery(function(){ 2 3 if (jQuery("#my_favourite_sellers_latest_products_waypoint")){ 4 jQuery("#my_favourite_sellers_latest_products_waypoint").waypoint(function() { 5 load_content(jQuery(this)); 6 }, { 7 triggerOnce: true, 8 offset: 'bottom-in-view' 9 }); 10 } 11 12 if (jQuery("#new_products_waypoint")){ 13 jQuery("#new_products_waypoint").waypoint(function() { 14 load_content(jQuery(this)); 15 }, { 16 triggerOnce: true, 17 offset: 'bottom-in-view' 18 }); 19 } 20 21 if (jQuery("#new_recommended_products_waypoint")){ 22 jQuery("#new_recommended_products_waypoint").waypoint(function() { 23 load_content(jQuery(this)); 24 }, { 25 triggerOnce: true, 26 offset: 'bottom-in-view' 27 }); 28 } 29 30 if (jQuery("#motto_waypoint")){ 31 jQuery("#motto_waypoint").waypoint(function() { 32 load_content(jQuery(this)); 33 }, { 34 triggerOnce: true, 35 offset: 'bottom-in-view' 36 }); 37 } 38 39}); 40 41function load_content(obj){ 42 var data = {}; 43 var name = obj.attr("data-name"); 44 45 if (obj.attr("data-shopid")){ 46 data.shopid = obj.attr("data-shopid"); 47 } 48 49 if (obj.attr("data-userid")){ 50 data.userid = obj.attr("data-userid"); 51 } 52 53 if (obj.attr("data-productid")){ 54 data.productid = obj.attr("data-productid"); 55 } 56 57 if (obj.attr("data-count")){ 58 data.count = obj.attr("data-count"); 59 } 60 61 var ajax_url = "/AjaxLoader/load_"+name; 62 jQuery("#"+name+"_waypoint").html('<img src="/images/ajax-loader.gif">'); 63 jQuery.ajax({ 64 url: ajax_url, 65 type: "GET", 66 data: data, 67 dataType: "json", 68 success: function(data){ 69 if (data.html != ''){ 70 jQuery("#"+name+"_waypoint").hide(); 71 jQuery("#"+name+"_waypoint").html(data.html); 72 jQuery("#"+name+"_waypoint").slideDown(); 73 if (data.need_stat == true){ 74 stat.reg_listing(data); 75 } 76 } else { 77 jQuery("#"+name+"_waypoint").hide(); 78 } 79 } 80 }); 81}
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.