1// $ = jQuery; 2 3(function ($) { 4 'use strict'; 5 Drupal.behaviors.social_share_links = { 6 attach: function (context) { 7 $('.share-container a.icon-icon-facebook').unbind('click'); 8 $('.share-container a.icon-icon-facebook').bind('click', function(e){ 9 e.preventDefault(); 10 e.stopPropagation(); 11 e.stopImmediatePropagation(); 12 SocialSharer.shareFacebook(window.location.href); 13 return false; 14 }); 15 $('.share-container a.icon-twitter-share').unbind('click'); 16 $('.share-container a.icon-twitter-share').bind('click', function(e){ 17 e.preventDefault(); 18 e.stopPropagation(); 19 e.stopImmediatePropagation(); 20 SocialSharer.shareTwitter(window.location.href); 21 return false; 22 }); 23 24 $('.share-container a.icon-icon-linkedin').unbind('click'); 25 $('.share-container a.icon-icon-linkedin').bind('click', function(e){ 26 e.preventDefault(); 27 e.stopPropagation(); 28 e.stopImmediatePropagation(); 29 SocialSharer.shareLinkedIn(window.location.href); 30 return false; 31 }); 32 33 $('#window-location').text(window.location.href); 34 setTimeout(function(){ 35 var clipboard = new ClipboardJS('.share-container .icon-link'); 36 clipboard.on('success', function(e) { 37 $('.clipboard-tooltip').addClass('show'); 38 setTimeout(function(){ 39 $('.clipboard-tooltip').removeClass('show'); 40 }, 1000); 41 }); 42 }) 43 }, 44 detach: function(context) { 45 } 46 }; 47})(jQuery);
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.