1/*************** article ê¸°ì¬ ê¸ì¨í¬ê¸°ì¡°ì : function ***************/ 2/* var fSize = '16px'; // size to start 3 function fnFontSizing(state) { 4 fSize = fSize.split('px')[0]; 5 fSize = parseFloat(fSize); 6 if (state == 'up' && fSize <= parseFloat(30)) { 7 fSize = fSize + 1; 8 } else if (state == 'down' && fSize >= parseFloat(13)) { 9 fSize = fSize - 1; 10 } else if (state == 'default') { 11 fSize = 16; 12 } else { 13 //alert('ëì´ì ì¡°ì í ì ììµëë¤.'); 14 } 15 fSize = fSize + 'px'; 16 document.getElementById('FontSize').style.fontSize = fSize; 17 document.getElementById('sub_tit').style.fontSize = fSize; 18 return false; 19} */ 20 21//í°í¸ì¬ì´ì¦ ì¿ í¤ì ì ì¥í기 22let currentFontSize; 23$(document).ready(init); 24function init(){ 25 26 $(".function a.font_size").css("cursor", "pointer").click(clickHandler); 27 let init_font = $.cookie("cookie_font") ? $.cookie("cookie_font") : '16'; 28 $("#FontSize").css("font-size", init_font + "px"); 29 $("#sub_tit").css("font-size", init_font + "px"); 30 31} 32 33function clickHandler(e){ 34 e.preventDefault(); 35 let whichClicked = $(this).attr("class"); 36 currentFontSize = parseInt($("#FontSize").css("font-size")); 37 38 if(whichClicked == "txt_size_b font_size"){ 39 40 if(currentFontSize >= 12 && currentFontSize <= 36) setFontSize(1) ; 41 else if ( currentFontSize == 37 ) alert('ê°ì¥ í° ê¸ì í¬ê¸°ì ëë¤. '); 42 console.log(currentFontSize); 43 44 } else if ( whichClicked == "txt_size_s font_size"){ 45 46 if(currentFontSize > 13 ) setFontSize(-1) ; 47 else if ( currentFontSize <= 13 ) alert('ê°ì¥ ìì ê¸ì í¬ê¸°ì ëë¤.'); 48 console.log(currentFontSize); 49 50 } else if( whichClicked == "txt_size font_size" ){ 51 52 currentFontSize = 16; 53 setFontSize(0) ; 54 console.log(currentFontSize); 55 } 56} 57 58 59function setFontSize($size) { 60 61 let totalFontSize = currentFontSize + $size; 62 $("#FontSize").css("font-size", totalFontSize + "px"); 63 $("#sub_tit").css("font-size", totalFontSize + "px"); 64 $.cookie("cookie_font", totalFontSize); 65 66} 67 68 69function printControl(category){ 70 var sw=screen.width; 71 var sh=screen.height; 72 var w=800;//ìì°½ì í 73 var h=700;//ìì°½ì ëì´ 74 var xpos=(sw-w)/2; //ìì°½ xìì¹ center 75 var ypos=(sh-h)/2; //ìì°½ yìì¹ center 76 var rptHeader="<html><head><meta charset='utf-8'><title>koreatimes.com - ì¸í°ë· 미주 íêµì¼ë³´</title></head><body>"; 77 var rptcss="<style type='text/css'>" 78 +"body {margin:0; padding:20px; font-family:'malgun gothic'; letter-spacing:-1px; line-height:180%; color:#333; text-align:justify;}" 79 +".logo_top {position:absolute; top:20px; right:20px; width:121px; height:24px;}" 80 +"h4 {width:100%; font-size:28px; letter-spacing:-2px; margin-top:20px; padding-bottom:20px; border-bottom:1px solid #333;}" 81 +".writer {float:right; margin:-40px 0 0 0; color:#333; font-size:12px;}" 82 +".upload_date {float:right; margin:-80px 0 0 20px; font-size:12px; letter-spacing:0px;}" 83 +".sub_1 {margin:0px 0 20px 0; font-size:18px; font-weight:bold; line-height:120%;}" 84 +".sub_2 {margin:0px 0 20px 0; font-size:18px; font-weight:bold; line-height:120%;}" 85 +".img_arti {max-width:600px; margin:35px auto; text-align:center;}" 86 +".img_txt {max-width:500px; margin:5px auto 0 auto; font-size:12px; font-family:'dotum'; line-height:160%; color:#666; letter-spacing:0;}" 87 +".copy_txt {margin-top:80px; padding-top:10px; font-size:12px; line-height:140%; border-top:1px solid #eee; text-align:center; letter-spacing:0;}" 88 +".logo_foot {display:none;}" 89 +"</style>"; 90 var rptlogo = document.all('logo').innerHTML; 91 var rptContent0 = $('#tit_arti').html() ; 92 rptContent0 += $('#print_arti_info').html() ; 93 rptContent0 += "("+category+")"; 94 rptContent0 += $('#print_arti').html() ; 95 var rptCopyright = document.all('copyright').innerHTML; 96 var rptTail="</body></html>"; 97 rptContent=rptHeader + rptcss + rptlogo + rptContent0 + rptCopyright; //var rpt..ì¶ê°ìë§ë¤ + rpt...
98 rptWin=window.open("","rpt","width=" + w +",height="+ h +",top=" + ypos + ",left="+ xpos +",status=yes,scrollbars=yes"); 99 rptWin.document.open(); 100 rptWin.document.write(rptContent); 101 rptWin.document.close(); 102 103 setTimeout(function(){ 104 rptWin.print(); 105 rptWin.close(); 106 }, 1000); 107 108 109} 110 111 112$(document).ready(function(){ 113 $(".article .news_area").on('click','.popup',function(){ 114 var src = $('img', $(this)).attr("src"); 115 116 $('.article .news_area .pPop img').attr("src", src); 117 $('.article .news_area .pPop').show(); 118 $('body').css({"overflow":"hidden"}); 119 120 }); 121 122 123 $(".article .news_area").on('click','.btn_close',function(){ 124 125 $('.article .news_area .pPop').hide(); 126 $('body').css({"overflow":"auto"}); 127 128 }); 129 130 $('.comment textarea').keyup(function() { 131 132 var max = 299; 133 134 var length = $(this).val().length; 135 var remain = max - length; 136 137 if(remain < 0){ 138 alert("300ê¸ì를 ì´ê³¼íììµëë¤."); 139 }else{ 140 $('.count_txt span').html(remain); 141 } 142 }); 143 144 145 $('.comment').on('click','.comment_submit',function(){ //ë±ë¡ 146 147 var form = $(".comment_form"); 148 clean_comment($(".comment_contents").val()); 149 150 $.ajax({
151 data: form.serialize(), 152 type: form.attr('method'), 153 url: form.attr('action'), 154 dataType: 'json', 155 beforeSend: function(){ 156 $(".popup_loader").show(); 157 }, 158 complete: function(){ 159 $(".popup_loader").hide(); 160 }, 161 success: function(response) { 162 163 if(response.response=="success"){ 164 if(response.message){ 165 alert(response.message); 166 } 167 168 setTimeout(function(){ 169 document.location.href = '?start=1#comment_contents'; 170 },150); 171 172 document.location.reload(); 173 }else if(response.response=="invalid"){ 174 alert(response.message); 175 $('.g-recaptcha').focus(); 176 }else{ 177 alert(response.message); 178 return false; 179 } 180 181 182 }, 183 error: function (xhr, status, errorThrown) { 184 //Here the status code can be retrieved like; 185 console.log(xhr.status); 186 187 //The message added to Response object in Controller can be retrieved as following. 188 189 190 console.log(xhr.responseText); 191 192 alert('ë¤í¸ìí¬ ì¥ì ì ëë¤. ì ìí ë¤ì ìëí´ ì£¼ììì¤.!!'); 193 return false; 194 } 195 }); 196 197 return false; 198 }); 199 200 201 $('.comment_list').on('click','#delete_check',function() { //ìì 202 203 var url = "/comment?mode=del&commentid="+$(this).data('delete')+"&articleId="+$(this).data('article'); 204 var start= $(this).data('start'); 205 206 $.ajax({
207 dataType: "json", 208 url: url, 209 beforeSend: function(){ 210 $(".popup_loader").show(); 211 }, 212 complete: function(){ 213 $(".popup_loader").hide(); 214 }, 215 success: function(response) { 216 217 218 if(start == "0"){ 219 start = "1"; 220 } 221 222 setTimeout(function(){ 223 document.location.href = '?start='+start+'#comment_list'; 224 },150); 225 document.location.reload(true); 226 227 },error: function (xhr, status, errorThrown) { 228 //Here the status code can be retrieved like; 229 console.log(xhr.status); 230 231 //The message added to Response object in Controller can be retrieved as following. 232 233 234 console.log(xhr.responseText); 235 236 alert('ë¤í¸ìí¬ ì¥ì ì ëë¤. ì ìí ë¤ì ìëí´ ì£¼ììì¤.'); 237 return false; 238 } 239 }); 240 241 return false; 242 243 }); 244 245 246 $('.comment_list').on('click','#report_check',function() { //ì ê³ 247 248 var url = "/comment?mode=report&commentid="+$(this).data('report')+"&articleId="+$(this).data('article'); 249 var start= $(this).data('start'); 250 251 $.ajax({
252 dataType: "json", 253 url: url, 254 beforeSend: function(){ 255 $(".popup_loader").show(); 256 }, 257 complete: function(){ 258 $(".popup_loader").hide(); 259 }, 260 success: function(response) { 261 262 if(response.message){ 263 alert(response.message); 264 } 265 266 if(start == "0"){ 267 start = 1; 268 } 269 270 setTimeout(function(){ 271 document.location.href = '?start='+start+'#comment_list'; 272 },100); 273 document.location.reload(true); 274 275 },error:function(e) { 276 alert('ë¤í¸ìí¬ ì¥ì ì ëë¤. ì ìí ë¤ì ìëí´ ì£¼ììì¤.'); 277 return false; 278 } 279 }); 280 281 return false; 282 283 }); 284 285 286 $('.comment_list').on('click','#report_block',function() { //ì°¨ë¨ 287 288 var url = "/comment?mode=block&commentid="+$(this).data('report')+"&articleId="+$(this).data('article')+"&comment_user="+$(this).data('comment_user'); 289 var start= $(this).data('start'); 290 291 $.ajax({
292 dataType: "json", 293 url: url, 294 beforeSend: function(){ 295 $(".popup_loader").show(); 296 }, 297 complete: function(){ 298 $(".popup_loader").hide(); 299 }, 300 success: function(response) { 301 302 if(response.message){ 303 alert(response.message); 304 } 305 306 if(start == "0"){ 307 start = 1; 308 } 309 310 setTimeout(function(){ 311 document.location.href = '?start='+start+'#comment_list'; 312 },100); 313 document.location.reload(true); 314 315 },error:function(e) { 316 alert('ë¤í¸ìí¬ ì¥ì ì ëë¤. ì ìí ë¤ì ìëí´ ì£¼ììì¤.'); 317 return false; 318 } 319 }); 320 321 return false; 322 323 }); 324 325 326 function clean_comment(str) { 327 var clean = strip_tags( str ); 328 $(".comment_contents").val( clean ); 329 } 330 331 function strip_tags( html ) { 332 return html.replace(/(<([^>]+)>)/gi, ""); 333 } 334 335});
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.