PageSourceSearch

https://www.en-journal.org/asset/js/common.js?v=20230801

js en-journal.org collected 2026-10-06 09:26:26 UTC 7,947 bytes, 275 lines download raw bytes

1$(document).ready(function(){
2
3	$('.review_txt').each(function(){
4		var nowPageURL;
5		nowPageURL = location.href;
6		nowPageURL = nowPageURL.split("/");
7		nowPageURL = nowPageURL[nowPageURL.length-1];
8
9		if (nowPageURL=="main.html"){
10			var length = 100; //표시할 글자수 정하기
11		}else{
12			var length = 130; //표시할 글자수 정하기
13		}
14
15		$(this).each(function(){
16			if( $(this).text().length >= length ){
17				$(this).text( $(this).text().substr(0,length)+'...');
18				//지정할 글자수 이후 표시할 텍스트
19			}
20		 });
21	});
22
23	//전체메뉴보기
24	$('.all_menu_btn').click(function(){
25		var $all_menu = $('.all_menu_view');
26
27		if ($all_menu.is(':visible')){
28			$all_menu.slideUp();
29			$(this).removeClass('on').text('MENU');
30		} else {
31			 $all_menu.slideDown();
32			 $(this).addClass('on').text('CLOSE');
33
34		}
35		$('.all_menu_bg').toggle();
36	});
37
38	$('.all_menu_bg').click(function(){
39		$('.all_menu_view').slideUp();
40		$(this).hide();
41		$('.all_menu_btn').removeClass('on').text('MENU');
42	});
43
44
45	//메인슬라이더
46	$('.visual_img .visual_slider').bxSlider({
47		//auto: true,
48		//controls : false
49		auto: true,
50		controls : false,
51		autoHover: true,
52		touchEnabled : false
53	});
54
55	//하단배너슬라이더
56	$('.bnr_wrap .bnr_slider').bxSlider({
57		auto : true,
58		pager: false,
59		autoStart:true,
60		controls : true,
61		autoHover:true,
62		infiniteLoop : true,
63		nextSelector: '.next',
64		prevSelector: '.prev',
65		minSlides:1,
66		maxSlides:6,
67		moveSlides:1,
68		speed:2000,
69		pause:3000,
70		slideWidth:160,
71		slideMargin: 20,
72	});
73
74
75	/* popup */
76	jQuery.cookie = function(name, value, options) {
77    if (typeof value != 'undefined') { // name and value given, set cookie
78        options = options || {};
79        if (value === null) {
80            value = '';
81            options.expires = -1; //options.path = "/";
82        }
83        var expires = '';
84        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
85            var date;
86            if (typeof options.expires == 'number') {
87                date = new Date();
88                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
89            } else {
90                date = options.expires;
91            }
92            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
93        }
94        var path = options.path ? '; path=' + options.path : '';
95        var domain = options.domain ? '; domain=' + options.domain : '';
96        var secure = options.secure ? '; secure' : '';
97        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
98    } else { // only name given, get cookie
99        var cookieValue = null;
100        if (document.cookie && document.cookie != '') {
101            var cookies = document.cookie.split(';');
102            for (var i = 0; i < cookies.length; i++) {
103                var cookie = jQuery.trim(cookies[i]);
104                // Does this cookie string begin with the name we want?
105                if (cookie.substring(0, name.length + 1) == (name + '=')) {
106                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
107                    break;
108                }
109            }
110        }
111        return cookieValue;
112    }
113	};
114
115	$('.ad_banner').show();
116	$('.banner_txt input').click(function(e){
117		e.preventDefault();
118		$.cookie('ad_banner', 'ck', { expires: 1 , path: '/' });
119		$(this).parent().parent().parent().slideUp();
120	});
121
122	var tmp1 = $.cookie('ad_banner');
123
124	if(tmp1=="ck"){
125		$('.ad_banner').css('top','-208px').hide();
126	}
127
128	//Original Articles
129	$('.go_list').off('click').mouseenter(function(e){
130		$(this).find('.go_first').addClass('on');
131		$(this).find('li').show();
132	});
133	$('.go_list').off('click').mouseleave(function(e){
134		$(this).find('.go_first').removeClass('on');
135		$(this).find('.go_first').siblings().hide();
136	});
137
138	$('.go_list > li > a').click(function(){
139		$('html,body').stop().animate({scrollTop:$(this.hash).offset().top - 120}, 300);
140	});
141
142	$('.xref > a').click(function(){
143		$('html,body').stop().animate({scrollTop:$(this.hash).offset().top - 100}, 300);
144	});
145
146
147
148
149	//Archives 펼침메뉴
150	/*
151	$('.year_title').click(function(){
152		if ($(this).next('.year_Content').is(':visible')){
153			$(this).next(".year_Content").slideUp();
154			$(this).removeClass('on');
155
156
157		}else{
158			$(this).next(".year_Content").slideDown();
159			$(this).addClass('on');
160
161		}
162	});
163	*/
164	$('.year_title').click(function(){
165		var $archive_all =$(this).parent('div').find('.year_Content');
166		var $archive_all2 = $('div').find('.year_Content');
167
168		if ($archive_all.is(':visible')){
169			$(this).find('i').attr('class','off');
170			$archive_all.slideUp();
171			$archive_all2.slideUp();
172
173		} else {
174			$('.year_Content').slideUp();
175			$('i').attr('class','off');
176			$(this).find('i').attr('class','on');
177			$archive_all.slideDown();
178		}
179	});
180	$('#allview_btn').click(function(){
181		var $archive_all = $('div').find('.year_Content');
182		$('i').attr('class','off');
183		$archive_all.slideDown();
184	});
185	$('#allclose_btn').click(function(){
186		var $archive_all = $('div').find('.year_Content');
187		$('i').attr('class','on');
188		$archive_all.slideUp();
189	});
190
191
192	// 권호수 설정페이지 툴팁 설정
193	$('.tooltip-img').hover(function(){
194		var fn_no = $(this).attr("href");
195		fn_no = fn_no.replace('#','');
196
197		if (fn_no){
198				//브라우저가 title속성의 값을 기본적 툴팁으로 보여주기 때문에 방지를 위해 값
198을 공백으로 처리
199                $(this).attr("title","");
200
201                var tempTitle = $(fn_no).html();
202
203                //영역 생성
204				//$("body").append("<div id='tooltip_coverImage'><img src='http://devtest-episodes.inforang.com/asset/file/Cover/IUGS_42_2_Cover.jpg'></div>");
205                //$("#tooltip_reference").html(tempTitle);
206
207				if (fn_no=="None"){// 기본이미지 노출
208					$("body").append("<div id='tooltip_coverImage'><img src='/asset/img/sub/archives_none.jpg' width='100'></div>");
209				}else{// 업로드된 이미지 노출
210					$("body").append("<div id='tooltip_coverImage'><img src='/asset/file/Cover/"+fn_no+"' width='100'></div>");
211				}
212
213                //위치 구하기
214                var pagex = $(this).offset().left - 0;
215                var pagey = $(this).offset().top - jQuery("#tooltip_coverImage").innerHeight();
216
217                $("#tooltip_coverImage").css({left:pagex+"px", top:pagey+"px"}).fadeIn(500);
218		}
219	 },function(){
220		  /*
221		  $('#tooltip_coverImage').hover(function(){
222		  },function(){
223			  tempTitle ="";
224			  $(this).attr("title",tempTitle);
225			  $("#tooltip_coverImage").remove(); //마우스커서가 떠나면 툴팁영역 제거
226		  })
227		  */
228		  $("#tooltip_coverImage").remove(); //마우스커서가 떠나면 툴팁영역 제거
229	 });
230
231	// tab
232	$('.issue_tabcon').hide().first().show();
233	$('.issue_tab > li').on('click',function(e){
234		var cnt = $(this).index();
235		$('.issue_tab > li').removeClass('on');
236		$(this).addClass('on');
237		$('.issue_tabcon').hide().eq(cnt).show();
238	});
239
240	// more btn hover event
241	$('.more_btn').mouseenter(function(e){
242		$(this).next('.pop-fulltext').show();
243		$('.more_btn').not(this).next('.pop-fulltext').hide();
244		//console.log('test');
245	});
246	$('.pop-fulltext').mouseleave(function(e){
247		$('.pop-fulltext').hide();
248	});
249
250	
251	// 표지 popup
252	$(window).on('load',function(e){
253		var wWidth = $(document).width(),
254			wHeight = $(document).height();
255		$('#dim02').width(wWidth).height(wHeight);
256	});
257	$(window).resize(function(e){
258		var wWidth = $(document).width(),
259			wHeight = $(document).height();
260		$('#dim02').width(wWidth).height(wHeight);
261	});
262	$('.cover-big').on('click',function(e){
263		$('#dim02').fadeIn();
264		$('.pop-wrap02').fadeIn();
265	});
266	$('.btn-close').on('click',function(e){
267		$('#dim02').fadeOut();
268		$('.pop-wrap02').fadeOut();
269	});
270	$('#dim02').on('click',function(e){
271		$('#dim02').fadeOut();
272		$('.pop-wrap02').fadeOut();
273	});
274
275});

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.