1function recordTopCategoryStats(actionCode, adId) { 2 if (adId != null && parseInt(adId) > 0) { 3 var adIdInt = parseInt(adId); 4 asi.StatBuffer.getInstance().addRecord(asi.app.getModule('ESMENU').getStatRecord({ "schemaCode": "ACAD11", "immediate": false, "adaction_cd": actionCode, "appaction_cd": "TOPNAV", "hits_cnt": 1, "ad_id": adIdInt, "product_id": 0 })); 5 } 6} 7 8function mnuLaunchTopCategory(adid, url) { 9 recordTopCategoryStats('POCT', adid); 10 var params = {}; 11 post_to_url(url, params, '', window.parent); 12 return false; 13} 14 15$(function () { 16 $('.dropdown').each(function () { 17 var $this = $(this), 18 callback = null; 19 20 if ($this.attr('uib-dropdown') !== undefined) return; 21 22 if ($this.hasClass('menu-TCAT')) { 23 callback = function () { 24 var topCategories = $(this).children('li.topCategoryItem'); 25 26 if (topCategories.length) { 27 var statBuffer = asi.StatBuffer.getInstance(), 28 statGroup = new asi.StatGroup("ACAD11"), 29 module = asi.app.getModule('ESMENU'); 30 31 $.each(topCategories, function (index, topCategory) { 32 var $topCategory = $(topCategory), 33 adId = parseInt($topCategory.data('adid')); 34 35 statGroup.addRecord(module.getStatRecord({ "immediate": false, "adaction_cd": "POTD", "appaction_cd": "TOPNAV", "hits_cnt": 1, "ad_id": adId, "product_id": 0 })); 36 37 $topCategory.removeClass('topCategoryItem'); 38 }); 39 40 statBuffer.addGroup(statGroup); 41 } 42 }; 43 } 44 45 $this.parent().eq(0).hoverIntent({ 46 timeout: 100, 47 over: function () { 48 var current = $('.dropdown:eq(0)', this); 49 current.slideDown(100, null, callback); 50 }, 51 out: function () { 52 var current = $('.dropdown:eq(0)', this); 53 current.fadeOut(200); 54 } 55 }); 56 }); 57});
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.