1function fnSharePost(str, event) { 2 event.preventDefault(); // Prevent default behavior of anchor tag click 3 4 var currentURL = window.location.href; 5 if (currentURL == 'https://localhost:44316/') { 6 currentURL = 'https://uat.aktivportalen.brnd.com/'; 7 } 8 9 if (str == 'LinkedIN') { 10 IN.UI.Share().params({ 11 url: currentURL 12 }).place(); 13 } 14 15 if (str == 'Facebook') { 16 window.open("https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(currentURL) + "&t=" + document.title, '', 17 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600'); 18 return false; 19 } 20 21 if (str == 'Twitter') { 22 var tweetText = "Check out this awesome post!"; // Customize the text you want to share 23 var tweetUrl = currentURL; // Replace with the URL of the post you want to share 24 25 // Open Twitter Web Intent 26 var intentUrl = "https://twitter.com/intent/tweet?text=" + encodeURIComponent(tweetText) + "&url=" + encodeURIComponent(tweetUrl); 27 window.open(intentUrl, "_blank", "width=550,height=420"); 28 } 29}
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.