1// SNSê³µì 2var snsModule = (function(){ 3 'use strict'; 4 var title = $('meta[property="og:title"]').attr('content'), // ê³µì í íì´ì§ íì´í 5 url = $('meta[property="og:url"]').attr('content'), // ê³µì í íì´ì§ URL 6 tags = "ê³µì í íê·¸", // ê³µì í íê·¸ 7 imageUrl = $('meta[property="og:image"]').attr('content'), // ê³µì í ì´ë¯¸ì§ 8 description = $('meta[property="og:description"]').attr('content'); // ê³µì í ì¤ëª 9 10 url = document.location.href; 11 12 var encodeTitle = encodeURIComponent(title); 13 var encodeUrl = encodeURIComponent(url); 14 var encodeTags = encodeURIComponent(tags); 15 var encodeImage = encodeURIComponent(imageUrl); // ê³µì í ì´ë¯¸ì§ 16 17 18/* 19 FB.init({ // íì´ì¤ë¶ ì¸ì¦ ì´ê¸°í 20 appId : "facebook api key", 21 xfbml : true, 22 version : "v2.6" 23 }); 24 */ 25 var snsModule = { 26/* 27 facebook:function(){ 28 FB.ui({ 29 method: "feed", 30 picture: imageUrl, 31 name: title, 32 description: description, 33 //caption: document.location.href,// ì¤ëª 34 link: url 35 }, function(response){ 36 } 37 ); 38 }, 39*/ 40 kakaotalk:function(){ 41 Kakao.Link.sendTalkLink({ 42 label: title+"\n"+url, 43 image:{ 44 src : imageUrl, 45 width : 200, 46 height : 200, 47 }, 48 }); 49 }, 50 kakaostory:function(){ 51 Kakao.Story.share({ 52 url: url, 53 text: title, 54 }); 55 }, 56 facebook:function(){ 57 window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeUrl+"&t="+encodeTitle, "band", "width=410, height=540, resizable=no"); 58 }, 59 band:function(){ 60 window.open("http://band.us/plugin/share?body="+encodeTitle+encodeURIComponent("\n")+encodeUrl+"&route="+encodeUrl, "band", "width=410, height=540, resizable=no"); 61 }, 62 pholar:function(){ 63 window.open("http://www.pholar.co/spi/rephol?title="+encodeTitle+"&url="+encodeUrl, "pholar", "width=410, height=540, resizable=no"); 64 }, 65 naverblog:function(){ 66 window.open("http://blog.naver.com/openapi/share?title="+encodeTitle+"&url="+encodeUrl, "naver blog", "width=410, height=540, resizable=no"); 67 }, 68 google:function(){ 69 window.open("https://plus.google.com/share?t="+encodeTitle+"&url="+encodeUrl, "google+", "width=500, height=550, resizable=no"); 70 }, 71 pinterest:function(){ 72 window.open("http://www.pinterest.com/pin/create/button/?url="+encodeUrl+"&media="+encodeImage+"&description="+encodeTitle, "pinterest", "width=800, height=550, resizable=no"); 73 }, 74 tumblr:function(){ 75 window.open("http://www.tumblr.com/widgets/share/tool?posttype=photo&title="+encodeTitle+"&content="+encodeImage+"&canonicalUrl="+encodeUrl+"&tags="+encodeTags+"&caption="+encodeTitle+encodeURIComponent("\n")+encodeUrl,"tumblr", "width=540, height=600, resizable=no"); 76 }, 77 twitter:function(){ 78 window.open("http://www.twitter.com/intent/tweet?text="+encodeTitle+"&url="+encodeUrl+"&hashtags="+encodeTags, 'twitter', "width=500, height=450, resizable=no"); 79 80 }, 81 line : function(){ 82 window.open("http://line.me/R/msg/text/?"+encodeTitle+" "+encodeUrl); 83 }, 84 telegram : function(){ 85 window.open("https://telegram.me/share/url?url="+encodeUrl); 86 } 87 }; 88 89 return snsModule; 90}());
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.