PageSourceSearch

https://cdn.ccreview.co.kr/script/user.style.js

js ccreview.co.kr collected 2026-10-02 19:09:46 UTC 2,480 bytes, 67 lines download raw bytes

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		Util.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		Util.setCookie("article-view-page-fontsize", newFontSize, 30);
36		change_article_fontsize(newFontSize);
37	});
38
39	// 폰트클래스 변경
40	function change_article_fontsize(fontsize) {
41		$('.view-page').removeClass('font-size15 font-size16 font-size17 font-size18 font-size19 font-size20').addClass('font-size'+fontsize);
42	}
43
44	// 쿠키가져오기
45	function get_article_fontsize() {
46		var cookieFontsize = Util.getCookie("article-view-page-fontsize");
47		if(cookieFontsize == "" || isNaN(cookieFontsize)) cookieFontsize = "18";
48		return cookieFontsize;
49	}
50
51	function init_article_fontsize() {
52		change_article_fontsize(get_article_fontsize());
53	}
54
55	/* 초기 실행 */
56	init_article_fontsize();
57});
58
59/***
60after, append, before 등 HTML 삽입시 script 링크는 자체적으로 ajax 호출을 시도함
61이때 ajax options cache=false가 되어 캐시가 안되니 옵션을 바꾸어 줌(banner로 한정하여 다른곳에 영향을 줄임)
62https://api.jquery.com/jQuery.ajaxPrefilter/
63***/
64$.ajaxPrefilter(function(options, originalOptions, jqXHR){
65	var o=options, oo=originalOptions;
66	if(o.url.indexOf("/bannerpop/uploads/")>0 && oo.async===false && oo.dataType=="script" && o.dataType==oo.dataType) options.cache=true;
67});

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.