1experiments = function() { 2 return { 3 confirm_human: function() { 4 $.post("/experiments/confirm_human/"); 5 }, 6 goal: function(goal_name) { 7 $.post("/experiments/goal/" + goal_name); 8 } 9 }; 10}(); 11 12if (document.addEventListener) { 13 // sets the cookie in the capturing phase so that in the bubbling phase we guarantee that if a request is being issued it will contain the new cookie as well 14 document.addEventListener("click", function(event) { 15 if ((event.target).hasAttribute('data-experiments-goal')) { 16 $.cookie("experiments_goal", $(event.target).data('experiments-goal'), { path: '/' }); 17 } 18 }, true); 19} else { // IE 8 20 $(document).delegate('[data-experiments-goal]', 'click', function(e) { 21 // if a request is fired by the click event, the cookie might get set after it, thus the goal will be recorded with the next request (if there will be one) 22 $.cookie("experiments_goal", $(this).data('experiments-goal'), { path: '/' }); 23 }); 24}
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.