PageSourceSearch

https://www.asseystore.co.kr/js/kakao_pixel.js?1771476305

js asseystore.co.kr collected 2026-09-24 15:05:42 UTC 3,224 bytes, 147 lines download raw bytes

1var KAKAO_PIXEL = function(){
2	const PARTNER_ID = '20006';
3
4	var key = '';
5	var _API = {};
6	var call = false;
7	this.order = {};
8
9	var init = function(id){
10		key = id;
11		if(typeof kakaoPixel === 'function'){
12			_API = kakaoPixel(key);
13
14			if (typeof kakaoPixel?.setServiceOrigin === 'function') {
15				kakaoPixel.setServiceOrigin(PARTNER_ID);
16			}
17		}
18		checkAPI();
19	};
20	var checkAPI = function(){
21		if(key == ''){
22			return false;
23		}
24		if(typeof _API == 'undefined' || _API == null){
25			return false;
26		}
27
28		if(!call){
29			_API.pageView();
30			call = true;
31		}
32		return true;
33	};
34
35	var CompleteJoin = function(){
36		if(!checkAPI()){
37			return false;
38		}
39		_API.completeRegistration();
40	};
41
42	var Search = function(keyword){
43		if(!checkAPI()){
44			return false;
45		}
46		_API.search({'keyword' : keyword});
47	};
48
49	var ViewContent = function(properties){
50		try {
51			if(!checkAPI()){
52				return false;
53			}
54			_API.viewContent({ ...(properties ?? {}) });
55		} catch (e) {
56			console.error(e);
57		}
58	};
59
60	var ViewCart = function(){
61		if(!checkAPI()){
62			return false;
63		}
64		_API.viewCart();
65	};
66
67	var AddorderInfo = function(name, qty, price, prod_idx){
68		if(!checkAPI()){
69			return false;
70		}
71		if(this.order['products'] == undefined){
72			this.order = {
73				'total_quantity' : 0,
74				'products' : [],
75			};
76		}
77		this.order['products'].push({'name' : name, 'quantity' : qty, 'price' : price, 'id' : prod_idx});
78		this.order['total_quantity']++;
79	};
80	var CompletePayment = function(price, currency){
81		if(!checkAPI()){
82			return false;
83		}
84		this.order['total_price'] = String(price);
85		this.order['currency'] = currency;
86		_API.purchase(this.order);
87	};
88
89	var addNpayOrder = function(order_data){
90		if(typeof order_data == 'undefined'){
91			return false;
92		}
93		if(typeof order_data['list'] == 'undefined'){
94			return false;
95		}
96		// 네이버 페이도 구매전환에 포함하게끔 옵션을 사용할 경우에는 구매완료를 바로 보낸다
97		// ( 카카오는 아직 해당 옵션이 없음 그냥 메소드만 추가해둠 - 나중에 옵션화되거나 하면 이거 호출하면 됨 )
98
99		var npay_order_total_price = 0;
100		var npay_order_item = {};
101		for(var i = 0; i < order_data['list'].length; i++){
102			npay_order_item = order_data['list'][i];
103			AddorderInfo(npay_order_item['prod_name'], npay_order_item['count'], npay_order_item['price'], npay_order_item['prod_idx']);
104			npay_order_total_price += npay_order_item['price'];
105		}
106
107		CompletePayment(npay_order_total_price, 'KRW');
108	};
109
110
111	var AddPurchase = function(d){
112		if(!checkAPI()){
113			return false;
114		}
115		_API.purchase(d);
116	};
117
118	return {
119		'init' : function(id){
120			init(id);
121		},
122		'CompleteJoin' : function(){
123			CompleteJoin();
124		},
125		'Search' : function(keyword){
126			Search(keyword);
127		},
128		'ViewContent' : function(properties){
129			ViewContent(properties);
130		},
131		'AddorderInfo' : function(name, qty, price, prod_idx){
132			AddorderInfo(name, qty, price, prod_idx);
133		},
134		'CompletePayment' : function(price, currency){
135			CompletePayment(price, currency);
136		},
137		'addNpayOrder' : function(npay_order_data){
138			return addNpayOrder(npay_order_data);
139		},
140		'AddPurchase' : function(d){
141			AddPurchase(d);
142		},
143		"ViewCart" : function(){
144			ViewCart();
145		}
146	};
147}();

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.