PageSourceSearch

https://www.columbiakorea.co.kr/js/pages/pc/list.js?v=20220914001

js columbiakorea.co.kr collected 2026-09-26 07:11:42 UTC 3,857 bytes, 137 lines download raw bytes

1var codiList;
2(function(ssq){
3	var	struc={}, config={}, listener={};
4	ssq(document).ready(function(){ struc.init() });
5	function trace(a){ var b=""; for(var i=0;i<arguments.length;i++){if(i>0)b+=", ";b+=arguments[i];} try{console.log(b);}catch(e){}}
6	struc = {
7		init : function() {
8			struc.regist(); 
9			struc.pageMethod();
10			listener.start();
11		},
12		regist : function() {
13
14		},
15		pageMethod : function () {
16			listTab();
17			setListUI();
18			listLast();
19			listTab_new();
20
21			tabScrollProduct();
22		}
23	};
24	listener = {
25		start : function(){
26			ssq(window).bind("resize", listener.resizePage); listener.resizePage();
27			ssq(document).on('click', 'a[href^="#"]',function(e){
28				e.preventDefault();
29			});
30		},
31		resizePage : function(e) {
32		}
33	};
34
35	// 탭
36    function listTab() {
37        var list_tab = ssq('#listTab');
38		var list_tab_button = list_tab.children('.tab__menu');
39		list_tab_button.click(function(e){
40			e.preventDefault();
41			ssq(this).siblings('.tab__menu').removeClass('on');
42			ssq(this).siblings('div').removeClass('show');
43			ssq(this).addClass('on');
44			ssq(this).next().addClass('show');
45		});
46    }
47	
48	function setListUI(){
49		var cardListSort;
50		var list = ssq("#cardList");
51		if (list.size() == 0) return;
52		codiList = list.mightySort({
53			align				: "left",
54			autoResize			: true,
55			itemWidth		: 500,
56			maxSortLine		: 3,
57			minSortLine		: 3,
58			margin			: 50,			
59			verticalMargin: 25,
60			randomDelay	: 0,
61			resizable : true,
62			speed				: 0
63			}
64		);
65	}
66	function listLast(){
67		ssq('.thumb--col4 >li:nth-child(4n)').addClass('last');
68		ssq('.thumb--col5 >li:nth-child(5n)').addClass('last');
69
70	}
71
72		//18.11.21 기획전 탭 수정
73	 function listTab_new() {
74        var list_tab_new = ssq('#newTab');
75		var list_tab_button_new = list_tab_new.children('.tab_menu');
76		list_tab_button_new.click(function(e){
77			//e.preventDefault();
78			ssq(this).siblings('.tab_menu').removeClass('tab_on');
79			ssq(this).addClass('tab_on');
80			
81			var temp_val = $(this).find("a").attr('href');
82			if ( temp_val != "" && temp_val != undefined && temp_val.indexOf("#tab_") > -1 ) {
83				$('html, body').animate({
84					scrollTop:$(''+ temp_val +'').offset().top - 200//스크롤이동								
85				},800)
86			}
87
88		});
89    }
90
91
92	function tabScrollProduct(){
93		const tabBtns = $('.list-tab.event--section .new_tab .tab_menu');
94		const tabBoxs = $('.list-tab .event_lists');
95
96		$('.list-tab.event--section .new_tab .tab_menu').removeClass('tab_on');
97
98		const tabScroll = ()=> {
99			const wSt = $(window).scrollTop();
100
101			for(let i = 0; i < tabBtns.length; i++){			
102				if(wSt < $('.list-tab .event_lists:first-of-type').offset().top - 250){ // 스크롤 위치가 첫번째 박스 위치보다 낮으면			
103					tabBtns.removeClass('tab_on');			
104				}else if(wSt > $('.list-tab .event_lists').eq(i).offset().top - 250){
105					tabBtns.removeClass('tab_on');
106					$('.list-tab.event--section .new_tab .tab_menu').eq(i).addClass('tab_on'); 			
107				}		
108			}
109		}
110
111		document.addEventListener('scroll', ()=> {
112			tabScroll();		
113		});             
114
115		tabScroll();
116	}
117})(jQuery);
118
119jQuery(document).on("mouseover", ".goods__list._v2:not(.raffle) .goods", function(e) {
120	var obj = jQuery(this);
121	var tempVal = obj.find(".colorchip a.on").attr("data-no");
122	obj.find(".review-score").hide();
123	obj.find(".gd-option-box[data-no=" + tempVal + "]").show();
124})
125jQuery(document).on("mouseout", ".goods__list._v2:not(.raffle) .goods", function(e) {
126	var obj = jQuery(this);
127	obj.find(".gd-option-box").hide();
128	obj.find(".review-score").show();
129})
130
131
132/* 2026-04-17 scroll 함수 */
133function evtScroll(val) {
134	var offsetVal = jQuery(val).offset();
135	var topval = offsetVal.top - 50;
136	jQuery('body,html').animate({ scrollTop: topval }, 500);
137} 

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.