1(function($){ 2 $.extend({ 3 ybShare : function(options) { 4 5 return new $._ybShare(options); 6 }, 7 8 _ybShare : function(options) { 9 var _defaults = { 10 _objKey : 'ybShare', // Object 11 shareType : 'naver', 12 link : '', 13 title : 'ë ¸ëíì ', 14 }; 15 options = $.extend(true, this, _defaults, options); 16 console.log(options) 17 18 this.open = function() { 19 var snsShareUrl; 20 if(options.type == "facebook") { 21 snsShareUrl = 'http://www.facebook.com/share.php?u='+encodeURIComponent(options.link); 22 } else if(options.type == "kakaostory") { 23 snsShareUrl = 'https://story.kakao.com/s/share?url='+encodeURIComponent(options.link) 24 } else if(options.type == "naver") { 25 snsShareUrl = 'https://share.naver.com/web/shareView.nhn?url='+encodeURIComponent(options.link)+'&title='+encodeURIComponent(options.title); 26 } else if(options.type == "twitter") { 27 var ranNum = Math.floor(Math.random()*10); 28 snsShareUrl = 'http://twitter.com/share?url='+encodeURIComponent(options.link)+'&text='+encodeURIComponent(options.title)+"&nocache="+ranNum; 29 } 30 var win = window.open(snsShareUrl ,'sharer', 'toolbar=0, status=0, width=626, height=436'); 31 if(win){ 32 win.focus(); 33 } 34 } 35 } 36 }); 37 38})(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.