PageSourceSearch

https://e-kjs.org/script/user.js?t=20260928154428

js e-kjs.org collected 2026-09-28 06:44:39 UTC 21,425 bytes, 803 lines download raw bytes

1var hideMenu = null,
2	hotBnr = null,
3	recentBnr = null,
4	sponBnr = null;
5
6jQuery(function($) {
7
8	var win_w = $(window).width();
9
10	if (win_w > 960) {
11//PC	
12		setting_pc();
13
14	} else {
15//Mobile	
16		setting_mobile();
17	}
18
19	if (hotBnr != null) {
20		hotBnr.destroySlider();
21		hotBnr = null;
22	}
23
24	$("dl.gnbSearch").on("click", "dt a", function(){
25		var sClass = $("dl.gnbSearch dt").attr("class");
26		if (sClass != "view") {
27			$("ul#gnb > li").removeClass("on");
28			$("ul#gnb ul").css('display', 'none');
29
30			$("dl.gnbSearch dt").addClass("view");
31			$("dl.gnbSearch dd").show();
32		} else {
33			$("ul#gnb ul").css('display', '');
34
35			$("dl.gnbSearch dt").removeClass("view");
36			$("dl.gnbSearch dd").hide();
37		}
38		
39		return false
40	});
41
42
43
44	if ($("div.articleBrief").length) {
45		$("div#container").addClass("article");
46	}
47
48// 탭메뉴
49	var tabArea = $(".tabArea");
50	
51	if (tabArea.length) {
52		
53		for (var i=0 ; i<tabArea.length ; i++) {
54			var tabMenu = tabArea.eq(i).find("ul.tabMenu > li"),
55				tabCon = tabArea.eq(i).find(".tabCon");
56			
57			//tabMenu.removeClass("on").eq(0).addClass("on");
58			//tabCon.hide().eq(0).show();
59		}
60
61		if ($("div.necEdu").length) 	{
62			tabMenu.removeClass("on");
63			tabCon.hide();
64		}
65		
66		tabArea.on("click", "ul.tabMenu a", function(){
67			var currTabMenu =  $(this).parent().parent().parent().find("ul.tabMenu li"),
68				currTabCon =  $(this).parent().parent().parent().find(".tabCon"),
69				currIdx = $(this).parent().index();
70
71			if ($(this).parent().attr("class") == "on") {
72				currTabMenu.removeClass("on");
73				currTabCon.slideUp();
74			} else {
75				currTabMenu.removeClass("on").eq(currIdx).addClass("on");
76				currTabCon.hide().eq(currIdx).slideDown();
77			}
78		
79
80			return false
81		});
82		
83	}
84
85	var rwTabArea = $(".rwTabArea");
86	if (rwTabArea.length) {
87		var rwTabMenu = rwTabArea.find("ul.rwTabMenu li"),
88			rwTabCon = rwTabArea.find("div.tabCon");
89
90		//rwTabMenu.eq(0).addClass("on");
91		//rwTabCon.hide().eq(0).show();
92
93		rwTabMenu.on("click", "a",  function(){
94			var win_w = $(window).width(),
95				nIdx = $(this).parent().index(),
96				menuTxt = $(this).text();
97
98			rwTabArea.find("dl.rwMenu > dt").removeClass("view");
99			rwTabArea.find("dl.rwMenu > dt").find("i").attr("class",  function(i){
100				var src = $(this).attr("class");
101				return src.replace("-up", "-down");
102			});
103			rwTabArea.find(".toggleCon").slideUp();			
104
105			rwTabArea.find("a.trigger span").text(menuTxt);
106			rwTabMenu.removeClass("on").eq(nIdx).addClass("on");
107			rwTabCon.hide().eq(nIdx).show();
108			
109			
110			return false
111		});
112	}
113
114	$(document).on("click","span.trigger",function() {
115		
116		if($(this)[0].id=="trigger_c") {
117			var _currToggle = $(this).parent().parent().parent(),
118			_currToggleCon = $(this).parent().parent().parent().find("dd#toggleCon_c"),
119			sClass = $(this).attr("class");
120			
121			$(this).parent().find("span#trigger_c").removeClass("view");
122			$(this).parent().parent().find("dd#toggleCon_c").hide();
123		} else {
124			var _currToggle = $(this).parent().parent(),
125			_currToggleCon = $(this).parent().next(),
126			sClass = $(this).attr("class");
127		}
128
129		if (sClass != "trigger view") {
130			$(this).addClass("view");
131			$(this).find("i").attr("class",  function(i){
132				var src = $(this).attr("class");
133				return src.replace("-down", "-up");
134			});
135			_currToggleCon.slideDown();
136		} else {
137			$(this).removeClass("view");
138			$(this).find("i").attr("class",  function(i){
139				var src = $(this).attr("class");
140				return src.replace("-up", "-down");
141			});
142			_currToggleCon.slideUp();
143		}
144
145		return false
146	});
147
148	$(document).on("click","a.trigger",function() {
149
150		if($(this)[0].id=="trigger_a") {
151			var _currToggle = $(this).parent().parent(),
152			_currToggleCon = $(this).parent().parent().find("dd#toggleCon_a"),
153			sClass = $(this).attr("class");
154
155			$(this).parent().find("a#trigger_ga").removeClass("view");
156			$(this).parent().parent().find("dd#toggleCon_ga").hide();
157		}
158		else if($(this)[0].id=="trigger_s") {
159			var _currToggle = $(this).parent().parent(),
160			_currToggleCon = $(this).parent().parent().find("dd#toggleCon_s"),
161			sClass = $(this).attr("class");
162			
163			$(this).parent().find("a#trigger_s").removeClass("view");
164			$(this).parent().parent().find("dd#toggleCon_s").hide();
165		}
166		else if($(this)[0].id=="trigger_ga") {
167			var _currToggle = $(this).parent().parent(),
168			_currToggleCon = $(this).parent().parent().find("dd#toggleCon_ga"),
169			sClass = $(this).attr("class");
170			
171			$(this).parent().find("a#trigger_a").removeClass("view");
172			$(this).parent().parent().find("dd#toggleCon_a").hide();
173		} else {
174			var _currToggle = $(this).parent().parent(),
175			_currToggleCon = $(this).parent().next(),
176			sClass = $(this).attr("class");
177		}
178
179		if (sClass != "trigger view") {
180			$(this).addClass("view");
181			$(this).find("i").attr("class",  function(i){
182				var src = $(this).attr("class");
183				return src.replace("-down", "-up");
184			});
185			_currToggleCon.slideDown();
186		} else {
187			$(this).removeClass("view");
188			$(this).find("i").attr("class",  function(i){
189				var src = $(this).attr("class");
190				return src.replace("-up", "-down");
191			});
192			_currToggleCon.slideUp();
193		}
194
195		return false
196	});
197
198	//filter	
199	$(document).on("click","a#filter_category_more",function() {
200		
201		if($("#filter_category_layer").css("display") == "none"){
202			$('#filter_category_layer').show();
203		} else {
204			$('#filter_category_layer').hide();
205		}
206
207		return false
208	});
209
210	$(document).on("click","a#filter_keyword_more",function() {
211		
212		if($("#filter_keyword_layer").css("display") == "none"){
213			$('#filter_keyword_layer').show();
214		} else {
215			$('#filter_keyword_layer').hide();
216		}
217
218		return false
219	});
220
221	$(document).on("click","a#filter_author_more",function() {
222		
223		if($("#filter_author_layer").css("display") == "none"){
224			$('#filter_author_layer').show();
225		} else {
226			$('#filter_author_layer').hide();
227		}
228
229		return false
230	});
231
232	$(document).on("click","a#filter_year_more",function() {
233		
234		if($("#filter_year_layer").css("display") == "none"){
235			$('#filter_year_layer').show();
236		} else {
237			$('#filter_year_layer').hide();
238		}
239
240		return false
241	});
242
243	$(document).on("click","a#filter_fund_more",function() {
244		
245		if($("#filter_fund_layer").css("display") == "none"){
246			$('#filter_fund_layer').show();
247		} else {
248			$('#filter_fund_layer').hide();
249		}
250
251		return false
252	});
253
254	$('ul > li > input:checkbox').on("click", function(){		
255		var this_name = $(this)[0].name;
256		var this_value = $(this)[0].value;
257		var this_checked = $(this)[0].checked;
258
259		$('ul > li > input:checkbox').each(function() {
260			if($(this)[0].name == this_name && $(this)[0].value == this_value) { 
261				$(this)[0].checked = this_checked;
262			}
263		});
264	});
265
266	$('ul[name="filter"] > li > input:checkbox').on("click", function(){	
267		$('#page')[0].value = "1";
268		$('#filter_form')[0].submit();
269	});
270
271	//filer layer
272	$(document).on("click","input#filter_layer_submit",function() {
273		$('#page')[0].value = "1";
274		$('#filter_form')[0].submit();
275	});
276
277	$(document).on("click","a#filter_layer_close",function() {
278		$('.layerPopup').each(function() {
279			$(this).hide();
280		});
281	});	
282
283	//기타
284	$(document).on("click","span[name='funded_link']",function() {
285		var this_value = $(this)[0].innerText;
286
287		$("ul > li > input:checkbox[name='p_filter_fund[]']").each(function() {
288			if($(this)[0].value == this_value) { 
289				$(this)[0].checked = true;
290			}
291		});
292
293		$('#page')[0].value = "1";
294		$('#filter_form')[0].submit();
295	});
296	
297	$("dl.popupCite").on("click", " .close a", function(){
298		$("dl.popupCite").hide();
299		return false
300	});
301
302	$(".cited_view").on("click", "a", function(){
303		var cited_popup = $(this).closest("li");
304		if(cited_popup.find(".popupCite").css("display")=="none") {
305			cited_popup.find(".popupCite").show();
306			cited_popup.find(".popupCite select").trigger("change");
307		} else cited_popup.find(".popupCite").hide();
308		return false
309	});
310
311	if ($('form[name="cited_btn"]').length) {
312
313		$('form[name="cited_btn"] select').change( function(){
314			type = $(this).val();
315			number = $(this).parent().find('input:hidden[name="number"]').val();
316			text = $(this).closest("dd").find('.popupCon')[0];
317
318			$.ajax({
319				type: 'POST',
320				data: {type:type, number:number},
321				url: '../journal/ajax_cited_text.php',
322				success: function(result) {
323					text.innerHTML = result;
324				}
325			});
326		});
327
328		$('form[name="cited_btn"] a.btnPoint').on("click", function(){
329			text = $(this).closest("dd").find('.popupCon')[0].innerText;
330			$('#clip_target').val(text);
331			$('#clip_target').select();
332			
333			document.execCommand('copy');
334			alert('Citation successfully copied.');
335		});
336
337		$('form[name="cited_btn"] a.btnDef').on("click", function(){
338			type = $(this).val();
339			number = $(this).parent().find('input:hidden[name="number"]').val();
340			text = $(this).closest("dd").find('.popupCon')[0];
341
342			$.ajax({
343				type: 'POST',
344				data: {type:type, number:number},
345				url: '../journal/ajax_cited_text.php',
346				success: function(result) {
347					text.innerHTML = result;
348				}
349			});
350		});
351	}
352});
353
354window.addEventListener('load', function()
355{
356	main_resize();	
357});
358
359
360function main_resize() {
361	var win_w = $(window).width();
362    var main_hot = $("div.mainArticle > div.hot");
363	var max_heignt = 0;
364	var max_heignt_resize_ck = false;
365
366	if (main_hot.length) {
367
368		max_heignt = main_hot[0].clientHeight;
369
370		$("div.hot li.slick-slide").each(function() {
371			if(max_heignt < $(this)[0].clientHeight) {
372				max_heignt = $(this)[0].clientHeight;
373				max_heignt_resize_ck = true;
374			}
375		});
376		
377		$("div.mainArticle > div.hot").css({"height":max_heignt});
378		if(win_w + 16 > 960) {
379
380			$max_height=  (main_hot[0].clientHeight / 3) - 15;
381			if (win_w + 16 > 1360) $max_height= (main_hot[0].clientHeight / 2) - 7.5;
382
383			$("div.mainArticle > ul.articleList > li > a").each(function() {
384				if($max_height < $(this)[0].clientHeight) {
385					$max_height = $(this)[0].clientHeight;	
386				}
387			});
388
389			$("div.mainArticle > ul.articleList > li > a").css({"height":$max_height});
390
391			if (win_w + 16 > 1360) {
392				if(main_hot[0].clientHeight < ($max_height * 2) + 15) {
393					$("div.mainArticle > div.hot").css({"height":($max_height * 2) + 15});
394				}
395			} else {
396				if(main_hot[0].clientHeight < ($max_height * 3) + 30) {
397					$("div.mainArticle > div.hot").css({"height":($max_height * 3) + 30});
398				}
399			}
400		}	
401	}
402}
403
404// 윈도우 창 size 변경시
405$(window).resize(function(){
406
407	var win_w = $(window).width();
408	if (win_w > 960) {
409		//PC	
410		setting_pc();
411		main_resize();
412	} else {
413		//Mobile	
414		setting_mobile();
415	}
416
417	if (hotBnr != null) {
418		hotBnr.destroySlider();
419		hotBnr = null;
420	}
421
422});
423
424//페이지새로고침
425function f_page_reload(){
426	location.href = location.href;
427}	
428
429//필터 초기화
430function f_filter_reset(){
431
432	$("ul > li > input:checkbox[name='p_filter_category[]']").each(function() {
433		$(this)[0].checked = false;
434	});
435	
436	$("ul > li > input:checkbox[name='p_filter_keyword[]']").each(function() {
437		$(this)[0].checked = false;
438	});
439
440	$("ul > li > input:checkbox[name='p_filter_author[]']").each(function() {
441		$(this)[0].checked = false;
442	});
443
444	$("ul > li > input:checkbox[name='p_filter_year[]']").each(function() {
445		$(this)[0].checked = false;
446	});
447
448	$("ul > li > input:checkbox[name='p_filter_fund[]']").each(function() {
449		$(this)[0].checked = false;
450	});
451
452	$('#filter_form')[0].submit();
453	
454}	
455
456
457//페이지 선택
458function page_search(page){
459	$('#page')[0].value = page;
460	$('#filter_form')[0].submit();
461}	
462
463//Mobile
464function setting_mobile() {
465	$("div.wrapper, div#headerWrap, ul#gnb ul, ul.articleList li").removeAttr("style");
466	$("div.mainArticle div.hot, ul.articleList a").removeAttr("style");
467	$("ul#gnb > li").removeClass("on");
468	$("ul#gnb > li, ul#gnb > li > a").off();
469	//$("dl.gnbSearch dt").removeClass("view");
470	//$("dl.gnbSearch dd").hide();
471
472
473	setTimeout(function(){
474		var win_h = $(window).height(),
475			header_h = $("div#headerWrap").outerHeight(),
476			footer_h = $("div#footerWrap").outerHeight(),
477			con_minH = win_h - header_h - footer_h;
478
479		$("div#container").css({"min-height":con_minH})
480
481	}, 300);
482
483
484	$("ul#gnb > li > a").on("click", function(){
485		var sClass = $(this).parent().attr("class");
486		if (sClass == "on") {
487			$(this).parent().removeClass("on");
488			$(this).parent().find("ul").slideUp();
489		} else {
490			//$("dl.gnbSearch dt").removeClass("view");
491			//$("dl.gnbSearch dd").hide();
492
493			$("ul#gnb > li").removeClass("on");
494			$("ul#gnb ul").hide();
495
496			$(this).parent().addClass("on");
497			$(this).parent().find("ul").slideDown();
498		}
499		return false
500	});
501
502
503	if ($("div.lnbWrap").length) {
504
505		$("div.lnbWrap dt").removeClass();
506		$("div.lnbWrap dl, div.lnbWrap dd").removeAttr("style");
507
508		$("div.lnbWrap dt a").on("click", function(){
509			var sClass = $(this).parent().attr("class"),
510				currCon = $(this).parent().next();
511
512			if (sClass == "view") {
513				$(this).parent().removeClass("view");
514				currCon.slideUp();
515			} else {
516				$(this).parent().addClass("view");
517				currCon.slideDown();
518			}
519			return false
520		});
521
522
523		$("body:not(div.lnbWrap)").on("click", function(){
524			$("div.lnbWrap dt").removeClass("view");
525			$("div.lnbWrap dd").hide();
526		});
527
528	}
529
530
531	if (recentBnr != null) {
532		recentBnr.destroySlider();
533		$("div.recent ul, div.recent li").removeAttr("style");
534		recentBnr = null;
535	}
536
537	if (sponBnr != null) {
538		sponBnr.destroySlider();
539		$("div.bnrzone ul, div.bnrzone li").removeAttr("style");
540		sponBnr = null;
541	}
542}
543
544
545
546//PC 
547function setting_pc() {
548	$("body").removeClass("overHidden");
549	$("div.wrapper, ul.headerMenu, div.contents, .toggleCon, ul.subMenu, dl.rwMenu dd, dl.rwMenu li, dl.toggleArea_rw > dd").removeAttr("style");
550	$("div.mainArticle div.hot, ul.articleList a").removeAttr("style");
551	$("ul#gnb > li").removeClass("on");
552	$("ul#gnb > li, ul#gnb > li > a").off();
553	//$("dl.gnbSearch dt").removeClass("view");
554	//$("dl.gnbSearch dd").hide();
555
556	/*
557	setTimeout(function(){
558		for (var i=0; i<$("ul#gnb > li").length ; i++) {
559			var re_poLeft = $("ul#gnb > li > a").eq(i).position().left;
560			$("ul#gnb > li").eq(i).find("ul").css({
561				"left":re_poLeft
562			});
563		}
564	}, 300);
565	*/
566
567	if ($("ul.articleList a").length) {
568		for (var i=0; i<$("ul.articleList a").length; i++) {
569			var re_paddingB = $("ul.articleList a").eq(i).find("span.type").outerHeight() + 40;
570			$("ul.articleList a").eq(i).css({
571				"padding-bottom":re_paddingB
572			});
573		}
574	}
575
576	/*
577	$("ul#gnb > li").on("mouseenter", function(){
578		if (hideMenu != null) {
579			clearTimeout(hideMenu);
580		}
581		//$("dl.gnbSearch dt").removeClass("view");
582		//$("dl.gnbSearch > dd").hide();
583
584		$("ul#gnb > li").removeClass("on");
585		$("ul#gnb ul").hide();
586
587		
588		$(this).addClass("on");
589		if ($(this).find("ul").length) {
590			$(this).find("ul").show();
591		}
592
593	});
594	
595
596	$("ul#gnb ul").on("mouseenter", function(){
597		if (hideMenu != null) {
598			clearTimeout(hideMenu);
599		}
600	});
601
602	$("ul#gnb").on("mouseleave", function(){
603		hideMenu = setTimeout(function(){
604			$("ul#gnb > li").removeClass("on");
605			$("ul#gnb ul").hide();
606		}, 500);
607	});
608	*/
609
610	if (recentBnr != null) {
611		recentBnr.destroySlider();
612		$("div.recent ul, div.recent li").removeAttr("style");
613		recentBnr = null;
614	}
615
616	if (sponBnr != null) {
617		sponBnr.destroySlider();
618		$("div.bnrzone ul, div.bnrzone li").removeAttr("style");
619		sponBnr = null;
620	}
621
622//반응형 메뉴
623	$(document).ready(function () {
624		main_menu_fixed();
625	});
626
627	if ($("dl.rwMenu").length) {
628
629		var sClass = $("dl.rwMenu ul").attr("class");
630		if (sClass == null) 	{
631			var reW = 100 / $("dl.rwMenu li").length;
632			$("dl.rwMenu li").css({
633				"width" : reW + "%"
634			});
635		}
636	}
637
638	if ($("div.articleBrief").length) {
639		menu_fixed();
640
641		 $("ul.conMenu a").click(function(event){
642			event.preventDefault();
643
644			var move_h = $(this.hash).offset().top - 123,
645				nIdx = $(this).parent().index();
646
647			if ($(".fixedArea").length) {
648				//move_h = move_h;
649			}
650			$('html,body').animate({scrollTop:move_h}, 500);
651
652			$("ul.conMenu li").removeClass("on").eq(nIdx).addClass("on");
653		});
654
655
656
657		$(window).on('scroll', function() {
658			$('.link-target').each(function(index, element) {
659				var preBasicH = 0;
660				var basicH = $(element).offset().top - 100;
661				if (index > 0) {
662					preElement = $('.link-target').eq(index - 1);
663					preBasicH = preElement.offset().top - 100;
664				} else {
665					preElement = $(element);
666				}
667
668				var preBasicH = preElement.offset().top - 220;
669				var basicH = $(element).offset().top - 220;
670				var scrollTop = $(window).scrollTop();
671
672				if(basicH > scrollTop && scrollTop >= preBasicH) {
673					var sID = preElement.attr('id');
674					$('ul.conMenu a').removeClass('on');
675					var selectedElement = $('ul.conMenu a[href=#'+ sID +']');
676					selectedElement.addClass('on');
677
678					var ulTop = $('ul.conMenu').offset().top;
679					var elementTop = selectedElement.offset().top;
680					if(elementTop < ulTop) {
681						$('ul.conMenu').scrollTop($('ul.conMenu').scrollTop() - (ulTop - elementTop));
682					}
683
684					var ulBottom = $('ul.conMenu').offset().top + $('ul.conMenu').outerHeight();
685					var elementBottom = selectedElement.offset().top + selectedElement.outerHeight();
686					if(elementBottom > ulBottom) {
687						$('ul.conMenu').scrollTop($('ul.conMenu').scrollTop() + (elementBottom - ulBottom));
688					}
689					return false;
690				}
691				var scrollValue = $(window).scrollTop(),
692				basic_h = $("div#headerWrap").outerHeight() + $("div.titArea").outerHeight() + $("div.articleBrief").outerHeight();
693				if (index == ($('.link-target').length - 1) && scrollValue > basic_h) {
694					var sID = $(element).attr('id');
695					$('ul.conMenu a').removeClass('on');
696					var selectedElement = $('ul.conMenu a[href=#'+ sID +']');
697					selectedElement.addClass('on');
698
699					var ulTop = $('ul.conMenu').offset().top;
700					var elementTop = selectedElement.offset().top;
701					if(elementTop < ulTop) {
702						$('ul.conMenu').scrollTop($('ul.conMenu').scrollTop() - (ulTop - elementTop));
703					}
704
705					var ulBottom = $('ul.conMenu').offset().top + $('ul.conMenu').outerHeight();
706					var elementBottom = selectedElement.offset().top + selectedElement.outerHeight();
707					if(elementBottom > ulBottom) {
708						$('ul.conMenu').scrollTop($('ul.conMenu').scrollTop() + (elementBottom - ulBottom));
709					}
710				}
711			});
712		});
713	}
714}
715
716function main_menu_fixed() {
717   $(window).scroll(function() {
718      var scrollValue = $(window).scrollTop(),
719      basic_h = $("div#headerWrap").outerHeight() + $("div.headMenu_wrap").outerHeight()-57;
720      if (scrollValue > basic_h) {
721         $("div.header__container").addClass("fixed");
722         $("dl.gnbSearch").addClass("fixed");
723         $(".article_paging").addClass("fixed");
724         $(".top_btn").addClass("fixed");
725      } else {
726         $("div.header__container").removeClass("fixed");
727         $("dl.gnbSearch").removeClass("fixed");
728         $(".article_paging").removeClass("fixed");
729         $(".top_btn").removeClass("fixed");
730      }
731   });
732}
733
734function menu_fixed() {
735	$(window).scroll(function() {
736		var scrollValue = $(window).scrollTop(),
737		basic_h = $("div#headerWrap").outerHeight() + $("div.titArea").outerHeight() + $("div.articleBrief").outerHeight();
738		if (scrollValue > basic_h) {
739			$("div.articleMenu").addClass("fixed")
740		} else {
741			$("div.articleMenu").removeClass("fixed")
742		}
743	});
744
745	$(window).scroll(function() {
746		var menuPosition = ($(window).scrollTop() + $("ul.conMenu").height());
747		var containerHeight = ($('#container').height() + 113);
748		var bottomLimit = 109 - (menuPosition - containerHeight);
749
750		if(menuPosition > containerHeight) {
751			$("ul.conMenu").css("top", bottomLimit + 'px');
752		} else if (bottomLimit != 109) {
753			$("ul.conMenu").css("top", "");
754		}
755	});
756}
757
758function journal_download(type, sid, filename) {
759	var increase_column;
760
761	if(type == "pdf") {
762		var openWindow = window.open("about:blank");
763		openWindow.location.href = '/upload/pdf/' + filename;
764
765		increase_column = "pdf_down";
766
767	} else if(type == "pdf_a") {
768		var openWindow = window.open("about:blank");
769		openWindow.location.href = '/upload/article/' + filename;
770
771		increase_column = "pdf_down";
772
773	} else if(type == "epub") {		
774		location.href = '/func/download.php?' + filename;		
775		increase_column = "epub_down";
776	}
777
778	$.ajax({
779		type: 'POST',
780		data: {table: 'journal_tbl', column: increase_column, count: 1, condition_column: 'sid', condition_value: sid},
781		url: '/func/count_increase.php'
782	});
783}
784
785
786
787$(document).ready(function(){
788   $('.top_btn').on('click', function(){
789      $('html, body').animate({scrollTop: '0'}, 500);
790   })
791})
792$(window).scroll(function() {
793   var scroll = $(window).scrollTop();
794   //console.log(scroll);
795   if (scroll >= 500) {
796      //console.log('a');
797      $(".top_btn").addClass("on");
798   } else {
799      //console.log('a');
800      $(".top_btn").removeClass("on");
801   }
802});
803

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.