1/* 2 * Events for Detail Content Scrolling / Scrollspy 3 */ 4(function($, window, Tao, L) { 5 6 Tao.add_action("detail", function(layer, parent) { 7 8 var map = layer._map; 9 10 var parent = $(parent); 11 12 13 $(parent).off("click", "a"); 14 $(parent).on("click", "a", function() { 15 Tao.do_action("detail-popup-link-click", [this, layer]); 16 }); 17 18 $(parent).off('click', '.facebook'); 19 $(parent).on( 'click', '.facebook', function(evt) { 20 evt.preventDefault(); 21 var url = $(this).parent().data("url"); 22 Tao.openSharer('http://www.facebook.com/sharer.php?u='+url, 320, 640); 23 return false; 24 } ); 25 26 $(parent).off('click', '.twitter'); 27 $(parent).on( 'click', '.twitter', function(evt) { 28 evt.preventDefault(); 29 var url = $(this).parent().data("url"); 30 Tao.openSharer('http://twitter.com/share?url='+url, 460, 640); 31 return false; 32 } ); 33 34 $(parent).off('click', '.googleplus'); 35 $(parent).on( 'click', '.googleplus', function(evt) { 36 evt.preventDefault(); 37 var url = $(this).parent().data("url"); 38 Tao.openSharer('https://plus.google.com/share?url='+url, 650, 640); 39 return false; 40 } ); 41 42 $(parent).off('click', '.pinterest'); 43 $(parent).on( 'click', '.pinterest', function(evt) { 44 evt.preventDefault(); 45 var url = $(this).parent().data("url"), 46 media = $(this).parent().data("media"), 47 desc = $(this).parent().data("description"); 48 Tao.openSharer('https://pinterest.com/pin/create/button/?url='+url+'&media='+media+'&description='+desc, 320, 770); 49 return false; 50 } ); 51 52 }); 53 54 55})(jQuery,window, window.Tao, L);
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.