PageSourceSearch

http://newstree.kr/js/pcommon.js?v=20200813

js newstree.kr collected 2026-10-01 12:15:34 UTC 2,362 bytes, 90 lines download raw bytes

1$(document).ready(function() {	
2	$('#Tmenu li').hover(function() {
3		$('ul', this).show();
4		$('#Tmenu li a').removeClass("hovx");	
5		//if(this.id !='sel') $('#sel ul').hide();//css('display', 'none');
6
7		$(this).children('a:first').addClass("hov");
8	}, function() {
9		$('ul', this).hide();
10		$(this).children('a:first').removeClass("hov");
11		$('#sel').children('a:first').addClass("hovx");
12		//$('#sel ul').hide();//show();//.css('display', 'block');
13
14	});
15});
16
17
18$(document).ready(function(){
19	$(window).scroll(function(){
20		if ($(this).scrollTop() > 100) {
21			$('#_toplink').fadeIn();
22		} else {
23			$('#_toplink').fadeOut();
24		}
25	});
26	$('#_toplink').click(function(){
27		$("html, body").animate({ scrollTop: 0 }, 600);
28		return false;
29	});
30});
31
32
33$(document).ready(function(){
34	$("*[data-bannerkind]").each(function(index, obj){
35		var kind=$(obj).attr("data-bannerkind");
36		var bid=$(obj).attr("data-objid");
37		var slideTime=$(obj).attr("data-slidetime");
38		slideTime = (slideTime == "" ? 5 : slideTime);
39		var size=$(obj).find("li").length;
40
41		switch(kind){
42			case "one":
43				$(obj).find("li:nth-child(n+2)").hide();
44				break;
45			case "random":
46				var rNum=String(Math.ceil(Math.random()*size));
47				$(obj).find("li").hide();
48				$(obj).find("li:nth-child("+rNum+")").show();
49				break;
50			case "slideRight":
51				$(obj).closest(".banner").css("overflow","hidden");
52				$(obj).css("width",size+"00%");
53				$(obj).find("li").css("width",String(100/size)+"%");
54				$(obj).find("li").css("float","left");
55				$(obj).css("position","relative");
56				if(size > 1){
57					setInterval(function(){rightSlideBanner(obj);}, (slideTime*1000));
58				}
59				break;
60			case "stack":
61				break;
62		}
63	});
64});
65
66function rightSlideBanner(obj){
67	$(obj).animate({left:"-100%"},1000,function(){
68		$(obj).append($(obj).find("li:first-child"));
69		$(obj).css('left',"0");
70	});
71}
72
73$(document).ready(function(){
74	// ±¤°í¿µ¿ª ¼ÒÀç°¡ ¾øÀ» °æ¿ì È÷µç
75	$('.banner > ul').each(function(){
76		var isRemove = false;
77		if($(this).children('li').length == 0){
78			isRemove = true;
79		}
80		if($(this).children('li').length == 1){
81			if($(this).children('li').html() == ''){
82				isRemove = true;
83			}
84		}
85		if(isRemove){
86			$(this).closest('.local_box').remove();
87			$(this).closest('.banner').remove();
88		}
89	});
90});

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.