1$(document).ready(function(){ 2 var $wrapBody = $("#user-wrap") 3 , $fontsOption = $wrapBody.find(".fonts-option") 4 , $fontsBtn = $fontsOption.find(".fonts-btn") 5 , $fontsPanel = $fontsOption.find(".fonts-option-panel"); 6 7 8 // í°í¸í¬ê¸° 9 $fontsBtn.on({ 10 click: function(){ 11 if($fontsPanel.css("display") == "block") { 12 $fontsPanel.hide(); 13 $fontsBtn.removeClass("active"); 14 } else { 15 $fontsPanel.show(); 16 $fontsBtn.addClass("active"); 17 } 18 } 19 }); 20 21 // 기ì¬ë³¸ë¬¸ í°í¸ì¬ì´ì¦ ì´ë²¤í¸ new 22 $('#article-view').on('click', '.fontsise-btn', function(e){ 23 var changeType = $(this).val(); 24 var newFontSize = nowFontSize = get_article_fontsize(); 25 if(changeType == "up") newFontSize = parseInt(nowFontSize) + 1; 26 else if(changeType == "down") newFontSize = parseInt(nowFontSize) - 1; 27 if(newFontSize < 15 || newFontSize > 20) newFontSize = nowFontSize; 28 setCookie("article-view-page-fontsize", newFontSize, 30); 29 change_article_fontsize(newFontSize); 30 }); 31 32 // 기ì¬ë³¸ë¬¸ í°í¸ì¬ì´ì¦ ì´ë²¤í¸ old í¸í 33 $('.article-view-header, #article-header-title').on('click', '.fontsize-radio', function(e){ 34 var newFontSize = $(this).val(); 35 setCookie("article-view-page-fontsize", newFontSize, 30); 36 change_article_fontsize(newFontSize); 37 }); 38 39 40 // í°í¸í´ëì¤ ë³ê²½ 41 function change_article_fontsize(fontsize) { 42 $('.view-page').removeClass('font-size15 font-size16 font-size17 font-size18 font-size19 font-size20').addClass('font-size'+fontsize); 43 } 44 45 // ì¿ í¤ê°ì ¸ì¤ê¸° 46 function get_article_fontsize() { 47 var cookieFontsize = getCookie("article-view-page-fontsize"); 48 if(cookieFontsize == "") cookieFontsize = "17"; 49 return cookieFontsize; 50 } 51 52 function init_article_fontsize() { 53 change_article_fontsize(get_article_fontsize()); 54 } 55 56 /* ì´ê¸° ì¤í */ 57 init_article_fontsize(); 58}); 59 60/*** 61after, append, before ë± HTML ì½ì ì script ë§í¬ë ìì²´ì ì¼ë¡ ajax í¸ì¶ì ìëí¨ 62ì´ë ajax options cache=falseê° ëì´ ìºìê° ìëë ìµì ì ë°ê¾¸ì´ ì¤(bannerë¡ íì íì¬ ë¤ë¥¸ê³³ì ìí¥ì ì¤ì) 63https://api.jquery.com/jQuery.ajaxPrefilter/ 64***/ 65$.ajaxPrefilter(function(options, originalOptions, jqXHR){ 66 var o=options, oo=originalOptions; 67 if(o.url.indexOf("/bannerpop/uploads/")>0 && oo.async===false && oo.dataType=="script" && o.dataType==oo.dataType) options.cache=true; 68});
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.