1 window.fbAsyncInit = function() { 2 FB.init({ 3 appId : '1718552971806761', 4 xfbml : true, 5 version : 'v2.5' 6 }); 7 }; 8 9 (function(d, s, id){ 10 var js, fjs = d.getElementsByTagName(s)[0]; 11 if (d.getElementById(id)) {return;} 12 js = d.createElement(s); js.id = id; 13 js.src = "//connect.facebook.net/en_US/sdk.js"; 14 fjs.parentNode.insertBefore(js, fjs); 15 }(document, 'script', 'facebook-jssdk')); 16 17 18var share_url = $("meta[property='og:url']").attr('content'); 19var share_title = $("meta[property='og:title']").attr('content'); 20var share_desc = $("meta[property='og:description']").attr('content'); 21var share_img = $("meta[property='og:image']").attr('content'); 22 23function fb_share() { 24 FB.ui({ 25 method: 'share', 26 href: share_url, 27 }, function(response){}); 28} 29 30function tw_share() { 31 var loc = share_url; 32 var title = encodeURIComponent(share_title); 33 window.open('http://twitter.com/share?url=' + loc + '&text=' + encodeURIComponent(share_title) + '&via=ratelkz&', 'twitterwindow', 'height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); 34} 35 36function vk_share() { 37 url = 'http://vkontakte.ru/share.php?'; 38 url += 'url=' + encodeURIComponent(share_url); 39 url += '&title=' + encodeURIComponent(share_title); 40 url += '&description=' + encodeURIComponent(share_desc); 41 url += '&image=' + encodeURIComponent(share_img); 42 url += '&noparse=true'; 43 window.open(url,'vkwindow','height=450, width=550, top='+($(window).height()/2 - 225) +', left='+$(window).width()/2 +', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); 44} 45function wa_share() { 46 var loc = share_url; 47 var title = encodeURIComponent(share_title); 48 49 // Ôîðìèðóåì ññûëêó äëÿ WhatsApp 50 var url = "https://wa.me/?text=" + title + "%20" + encodeURIComponent(loc); 51 52 // Îòêðûâàåì â íîâîì îêíå (êàê ó vk_share è tw_share) 53 window.open( 54 url, 55 'wawindow', 56 'height=450, width=550, top=' + ($(window).height()/2 - 225) + 57 ', left=' + ($(window).width()/2) + 58 ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0' 59 ); 60} 61
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.