1$(document).ready(function() { 2 3 //core function to record tracking 4 $('.om_ajax_tracking').click(function(e){ 5 //e.preventDefault(); 6 7 $.ajax({ 8 type: 'POST', 9 data: { 10 data_params: $(this).data() 11 }, 12 url:base_url + 'om_tracking/log_user_activity', 13 dataType: "json", 14 success: function(res){ 15 //console.log(res); 16 return; 17 } 18 }); 19 20 return; 21 }); 22 23 $('.shareplus').click(function(e){ 24 //console.log($(this).data()); 25 var activityActionId = $(this).data("activityActionId"); 26 //console.log(activityActionId); 27 var detail = $(this).data("detail"); 28 //console.log(detail); 29 var detailId = $(this).data("detailId"); 30 //e.preventDefault(); 31 var topic = $(this).data("topic"); 32 var orgs = $(this).data("orgs"); 33 34 $.ajax({ 35 type: 'POST', 36 data: { 37 //data_params: $(this).data() 38 //data_params: dta 39 activityActionId: activityActionId, 40 detail: detail, 41 detailId: detailId, 42 topic: topic, 43 orgs:orgs 44 }, 45 url:base_url + 'om_tracking/log_user_activity', 46 dataType: "json", 47 success: function(res){ 48 console.log(res); 49 50 } 51 }); 52 53 54 55 }); 56 57 //Sharing icons 58 $('.at-svc-email').live("click",function(e){ 59 //e.preventDefault(); 60 61 $.ajax({ 62 type: 'POST', 63 data: { 64 data_params: { 65 "activityActionId" : 100 66 } 67 }, 68 url:base_url + 'om_tracking/log_user_activity', 69 dataType: "json", 70 success: function(res){ 71 //console.log(res); 72 return; 73 } 74 }); 75 76 77 return; 78 }); 79 80 $('.at-svc-facebook').live("click",function(e){ 81 //e.preventDefault(); 82 83 $.ajax({ 84 type: 'POST', 85 data: { 86 data_params: { 87 "activityActionId" : 101 88 } 89 }, 90 url:base_url + 'om_tracking/log_user_activity', 91 dataType: "json", 92 success: function(res){ 93 //console.log(res); 94 return; 95 } 96 }); 97 98 99 return; 100 }); 101 102 $('.at-svc-twitter').live("click",function(e){ 103 //e.preventDefault(); 104 105 $.ajax({ 106 type: 'POST', 107 data: { 108 data_params: { 109 "activityActionId" : 102 110 } 111 }, 112 url:base_url + 'om_tracking/log_user_activity', 113 dataType: "json", 114 success: function(res){ 115 //console.log(res); 116 return; 117 } 118 }); 119 120 121 return; 122 }); 123 124 $('.at-svc-pinterest_share').live("click",function(e){ 125 //e.preventDefault(); 126 127 $.ajax({ 128 type: 'POST', 129 data: { 130 data_params: { 131 "activityActionId" : 103 132 } 133 }, 134 url:base_url + 'om_tracking/log_user_activity', 135 dataType: "json", 136 success: function(res){ 137 //console.log(res); 138 return; 139 } 140 }); 141 142 143 return; 144 }); 145 146 $('.at-expanding-share-button-toggle-bg').live("mouseenter",function(e){ 147 //e.preventDefault(); 148 149 $.ajax({ 150 type: 'POST', 151 data: { 152 data_params: { 153 "activityActionId" : 104 154 } 155 }, 156 url:base_url + 'om_tracking/log_user_activity', 157 dataType: "json", 158 success: function(res){ 159 //console.log(res); 160 return; 161 } 162 }); 163 164 165 return; 166 }); 167 168 $('.ga-track').mousedown(function(){ 169 //e.preventDefault(); 170 //console.log('HERE'); 171 var first = $(this).data("category").toString(); 172 //console.log(first); 173 var second = $(this).data("action").toString(); 174 //console.log(second); 175 var third = $(this).data("label").toString(); 176 //console.log(third); 177 _gaq.push(['_trackEvent', first, second, third]); 178 //_gaq.push(function(){ 179 return; 180 //}); 181 182 }); 183 184});
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.