PageSourceSearch

http://img.koreatimes.com/2015/js/main.js?v=2026-09-248393

js koreatimes.com collected 2026-09-24 17:34:27 UTC 3,214 bytes, 113 lines download raw bytes

1/***************    탭 paging 관련    ***************/
2//사용된 제이쿼리 jquery-latest.js
3
4//english news : eng_news
5function eng_news_tab(num){	
6	var f = $('.eng_news > .paging').find('li');
7	for ( var i = 0; i < f.length; i++ ) {			
8		if ( i == num) {			
9			f.eq(i).addClass('hover');	
10			$('.eng_news_con' + i ).fadeIn(0);
11		} else {
12			f.eq(i).removeClass('hover');					
13			$('.eng_news_con' + i ).hide();
14		}
15	}
16}
17/***************    //탭 paging 관련    ***************/
18
19
20/***************    컨텐츠 전체슬라이드 관련    ***************/
21//사용된 제이쿼리 jquery.min.js
22
23//마켓 전단 : marketS
24(function($){
25
26$.fn.articlePages = function(opts){
27	if(!opts) opts = {};
28	var resultsPerPage = opts.perPage || 3;
29	var ul = this;
30	var li = ul.find('li');
31	li.each(function(){
32		var el = $(this);
33		el.data('height',el.outerHeight(true));
34	});
35	var pagesNumber = Math.ceil(li.length/resultsPerPage);
36	if(pagesNumber<2) return this;
37	var paging = $('<div class="paging">');
38	for(var i=0;i<pagesNumber;i++)
39	{
40		li.slice(i*resultsPerPage,(i+1)*resultsPerPage).wrapAll('<div class="list_box" />');
41		paging.append('<a href="" class="paging_btn">'+(i+1)+'</a>');
42	}
43	ul.append(paging);
44	
45	var maxHeight = 0;
46	var totalWidth = 0;
47	var list_box = ul.find('.list_box');
48	list_box.each(function(){
49		
50		var elem = $(this);
51
52		var tmpHeight = 0;
53		elem.find('li').each(function(){tmpHeight+=$(this).data('height');});
54
55		if(tmpHeight>maxHeight)
56			maxHeight = tmpHeight;
57
58		totalWidth+=elem.outerWidth();
59		
60		elem.css('float','left').width(ul.width());
61	});
62	
63	list_box.wrapAll('<div class="list_wrap" />');
64	ul.height(maxHeight);
65	var list_wrap = ul.find('.list_wrap');
66	list_wrap.append('<div class="clear" />').width(totalWidth);
67	var hyperLinks = ul.find('.paging_btn');
68	
69	hyperLinks.click(function(e){	
70		$(this).addClass('hover_btns').siblings().removeClass('hover_btns');
71		list_wrap.stop().animate({'margin-left':-(parseInt($(this).text())-1)*ul.width()},'slow');
72		e.preventDefault();
73	});
74	
75	$(opts.next).click(function(e) {
76        $('.paging_btn.hover_btns').next('.paging_btn').click();
77    });
78    
79    $(opts.prev).click(function(e) {
80        $('.paging_btn.hover_btns').prev('.paging_btn').click();
81    });
82	
83	hyperLinks.eq(0).addClass('hover_btns');
84	return this;
85}})(jQuery);
86
87
88$(document).ready(function(){
89	$('.marketS_page').articlePages({perPage:2, next: '.btn_next', prev: '.btn_prev'}); // 한페이지당 보여줄 리스트 개수
90	var controls = $('.marketS .paging').detach();
91	controls.appendTo('.marketS');
92});
93/***************    //컨텐츠 전체슬라이드 관련    ***************/
94
95
96/***************    CA Lottery    
97
98
99      $(function() {
100        var moveLeft = 0;
101        var moveDown = 0;
102        
103        $('img#winning_bn').hover(function(e) {
104          $('div#cLottery_pop_up').show();
105          //.css('top', e.pageY + moveDown)
106          //.css('left', e.pageX + moveLeft)
107          //.appendTo('body');
108        }, function() {
109          $('div#cLottery_pop_up').hide();
110        });
111                
112      });
113***************/ 

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.