1function shareUrl(v){ 2 //https://goo.gl/afPWkw 3 //https://goo.gl/afPWkw 4 var url=document.location.href; 5 if($("#toparea h1#mbrMnNm").length>0){ 6 if(url.indexOf("?") != -1){ 7 url=url+"&mbrCd="+mbrCd; 8 }else{ 9 url=url+"?mbrCd="+mbrCd; 10 } 11 } 12 url=encodeURIComponent(url); 13 console.log(document.location.href+""+url); 14 $.ajax({ 15 type:"POST", 16 url:"/common/shuturl.php", 17 data:"url="+url, 18 cache:false, 19 success:function(data){ 20 if(data !=""){ 21 var surl = data; 22 if(v == 'sns_fb' || v == 'sns_fb2'){ 23 window.open('http://www.facebook.com/share.php?u='+surl, '_blank', 'width=800,height=550'); 24 }else if(v == 'sns_tw' || v == 'sns_tw2'){ 25 var tw_title = document.title; 26 window.open('https://twitter.com/intent/tweet?url='+surl+'&text='+tw_title, '_blank', 'width=800,height=550'); 27 }else if(v == 'sns_band' || v == 'sns_band2'){ 28 window.open('http://www.band.us/plugin/share?body='+surl+'&route='+surl, '_blank', 'width=800,height=550'); 29 }else if(v == 'sns_kas' || v == 'sns_kas2'){ 30 window.open('https://story.kakao.com/s/login?continue=https%3A%2F%2Fstory.kakao.com%2Fshare%3Furl%3D'+surl+'&display=popup&referrer', '_blank', 'width=800,height=550'); 31 }else if(v =="shut_url" || v == 'shut_url2'){ 32 CtrlCbcopy(surl); 33 } 34 } 35 }, 36 error:function (jqxhr, textStatus, error ) { 37 var err = textStatus + ", " + error; 38 console.log( "XHR ìë¬: " + err ); 39 } 40 },3000).done(function(){ 41 42 }); 43} 44 45 $("#sharebuttonDt li a").click(function(){ 46 var svc=$(this).attr("id"); 47 shareUrl(svc); 48 return false; 49 }); 50 $("#sharebuttonMb li a").click(function(){ 51 var svc=$(this).attr("id"); 52 shareUrl(svc); 53 return false; 54 }); 55 56 57// ============== URL ë³µì¬í기 ================== 58 function copy_clip() { 59 var url = location.href; 60 var IE = (document.all) ? true : false; 61 if (IE) { 62 window.clipboardData.setData("Text", url); 63 64 } else { 65 temp = prompt("Ctrl+Cë²í¼ì´ë ë³µì¬í기를 ëë¬ ë§í¬ë¥¼ ë³µì¬íì¸ì", url); 66 } 67 } 68 69 70 71function snsWin(sns,title,enc_url) { 72 var snsset = new Array(); 73 //var enc_tit = encodeURIComponent(content); 74 var enc_sbj = encodeURIComponent(title); 75 var enc_url = encodeURIComponent(enc_url); 76 var enc_tag = "íê·¸"; 77 snsset['t'] ='http://twitter.com/?status=' + enc_sbj + '+++' + enc_url; 78 snsset['f'] = 'http://www.facebook.com/sharer.php?u=' + enc_url + '&t=' + enc_sbj; 79 snsset['m'] = 'http://me2day.net/posts/new?new_post[body]='+ enc_sbj+':'+enc_url; // +'&new_post[tags]='+enc_tag; 80 location.href=snsset[sns]; 81}
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.