1function BookMark(event, id) { 2 3 event.preventDefault(); 4 var obj = event.target; 5 6 $.post("/Content/ArticleClipCntUpd", { 7 id: id 8 }, function (data) { 9 if (data.success == true) { 10 if (data.status != 0) { 11 $(obj).addClass('s-bookmark'); 12 $(obj).closest('.trend-delivery__item').addClass('s-bookmark'); 13 $(obj).closest('.curation-cate-item').addClass('s-bookmark'); 14 } 15 else { 16 $(obj).removeClass('s-bookmark'); 17 $(obj).closest('.trend-delivery__item').removeClass('s-bookmark'); 18 $(obj).closest('.curation-cate-item').removeClass('s-bookmark'); 19 } 20 21 22 alert(data.status == 0 ? "ì½í ì¸ ì ì¥ì ì·¨ìíì´ì." : "ì½í ì¸ ë¥¼ ì ì¥íì´ì."); 23 } 24 else { 25 if (data.errorCode != null && data.errorCode == "1") { 26 if (confirm("ë¡ê·¸ì¸ í ì´ì© ê°ë¥í 기ë¥ì´ìì.")) { 27 location.href = "/User/Login"; 28 } 29 } 30 else { 31 alert("ì¤ë¥ê° ë°ìíììµëë¤.\n ì ì í ë¤ì ìëí´ ì£¼ì기 ë°ëëë¤."); 32 } 33 } 34 }); 35 36 return false; 37} 38 39function Follow(event,main,sub) { 40 41 event.preventDefault(); 42 var obj = event.target; 43 44 $.post("/TrendKeyword/FollowUpd", { 45 main: main, 46 sub: sub 47 }, function (data) { 48 if (data.success == true) { 49 if(data.status != 0) 50 { 51 $(obj).addClass('s-follow'); 52 document.getElementById('status').innerHTML = "íë¡ì° ì¤"; 53 } 54 else { 55 $(obj).removeClass('s-follow'); 56 document.getElementById('status').innerHTML = "íë¡ì°í기"; 57 } 58 59 alert(data.status == 0 ? "ì íí í¤ìë를 íë¡ì° 목ë¡ìì ìì íì´ì. " : "ì íí í¤ìë를 íë¡ì° 목ë¡ì ì¶ê°íì´ì. "); 60 } 61 else { 62 if (data.errorCode != null && data.errorCode == "1") { 63 if (confirm("ë¡ê·¸ì¸ í ì´ì© ê°ë¥í 기ë¥ì´ìì.")) { 64 location.href = "/User/Login"; 65 } 66 } 67 else { 68 alert("ì¤ë¥ê° ë°ìíììµëë¤.\n ì ì í ë¤ì ìëí´ ì£¼ì기 ë°ëëë¤."); 69 } 70 } 71 }); 72 73} 74 75function Follow1(event, main, sub) { 76 77 event.preventDefault(); 78 var obj = event.target; 79 80 $.post("/TrendKeyword/FollowUpd", { 81 main: main, 82 sub: sub 83 }, function (data) { 84 if (data.success == true) { 85 if (data.status != 0) { 86 $(obj).addClass('s-follow'); 87 88 } 89 else { 90 $(obj).removeClass('s-follow'); 91 92 } 93 94 alert(data.status == 0 ? "ì íí í¤ìë를 íë¡ì° 목ë¡ìì ìì íì´ì. " : "ì íí í¤ìë를 íë¡ì° 목ë¡ì ì¶ê°íì´ì. "); 95 } 96 else { 97 if (data.errorCode == "1") { 98 if (confirm("ë¡ê·¸ì¸ í ì´ì© ê°ë¥í 기ë¥ì´ììâ\në¡ê·¸ì¸ íìê² ìµëê¹?")) { 99 location.href = "/User/Login"; 100 } 101 } 102 else { 103 alert("ì¤ë¥ê° ë°ìíììµëë¤.\n ì ì í ë¤ì ìëí´ ì£¼ì기 ë°ëëë¤."); 104 } 105 } 106 }); 107 108} 109function FollowDel(event, main, sub, cat) { 110 111 event.preventDefault(); 112 var obj = event.target; 113 114 $.post("/TrendKeyword/FollowUpd", { 115 main: main, 116 sub: sub 117 }, function (data) { 118 if (data.success == true) { 119 120 121 alert(data.status == 0 ? "ì íí í¤ìë를 íë¡ì° 목ë¡ìì ìì íì´ì. " : "ì íí í¤ìë를 íë¡ì° 목ë¡ì ì¶ê°íì´ì. "); 122 123 if (cat == 2) { 124 location.href = "/TrendKeyword/FollowList"; 125 } 126 else { 127 location.href = "/TrendKeyword"; 128 } 129 130 } 131 else { 132 if (data.errorCode != null && data.errorCode == "1") { 133 if (confirm("ë¡ê·¸ì¸ í ì´ì© ê°ë¥í 기ë¥ì´ìì.")) { 134 location.href = "/User/Login"; 135 } 136 } 137 else { 138 alert("ì¤ë¥ê° ë°ìíììµëë¤.\n ì ì í ë¤ì ìëí´ ì£¼ì기 ë°ëëë¤."); 139 } 140 } 141 });
142 143} 144 145function CodeCopy(obj) { 146 var hashtagName = $(obj).attr("data-id"); 147 if (hashtagName) { 148 Clipboard && Clipboard.copy(obj, hashtagName); 149 alert("ì¶ì²ì¸ ì½ëê° ë³µì¬ëììµëë¤.\nìºë¦¿ 멤ë²ìì ìµì´ ê²°ì íë ì¹êµ¬ìê² ê³µì í´ë³´ì¸ì!"); 150 } else { 151 window.open(this.defaultOptions.url); 152 } 153 154 this.ShareCntUpd('urlcopy'); 155} 156 157 158 159////////////////////////////// 160///////Clipboard 161////////////////////////////// 162; (function (win, doc, callback) { 'use strict'; callback = callback || function () { }; function detach() { if (doc.addEventListener) { doc.removeEventListener('DOMContentLoaded', completed); } else { doc.detachEvent('onreadystatechange', completed); } } function completed() { if (doc.addEventListener || event.type === 'load' || doc.readyState === 'complete') { detach(); callback(window, window.jQuery); } } function init() { if (doc.addEventListener) { doc.addEventListener('DOMContentLoaded', completed); } else { doc.attachEvent('onreadystatechange', completed); } } init(); })(window, document, function (win, $) { 163 164 window.Clipboard = (function (window, document, navigator) { 165 var textArea, 166 copy, 167 prevScrollTop; 168 169 function isOS() { 170 return navigator.userAgent.match(/ipad|iphone/i); 171 } 172 173 function createTextArea(el, text) { 174 textArea = document.createElement('textArea'); 175 textArea.style.width = "1px"; 176 textArea.style.height = "1px"; 177 textArea.value = text; 178 179 var agent = navigator.userAgent.toLowerCase(); 180 el.parentNode.appendChild(textArea); 181 } 182 183 function selectText() { 184 var range, 185 selection; 186 187 if (isOS()) { 188 range = document.createRange(); 189 range.selectNodeContents(textArea); 190 selection = window.getSelection(); 191 selection.removeAllRanges(); 192 selection.addRange(range); 193 textArea.focus(); 194 textArea.setSelectionRange(0, 999999); 195 } else { 196 textArea.select(); 197 } 198 } 199 200 function copyToClipboard(el) { 201 document.execCommand('copy'); 202 $(textArea).closest('.event-desc').focus(); 203 el.parentNode.removeChild(textArea); 204 } 205 206 copy = function (el, text) { 207 createTextArea(el, text); 208 selectText(); 209 copyToClipboard(el); 210 }; 211 212 return { 213 copy: copy 214 }; 215 })(window, document, navigator); 216 217}); 218
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.