PageSourceSearch

https://www.animallace.com/js/app.js?1577682295

js animallace.com collected 2026-09-24 13:38:32 UTC 2,318 bytes, 116 lines download raw bytes

1var APP = function(){
2	var appDefaultTabType = {
3		'APP_TAB_WEB_VIEW_BACK' : 'webViewBack',
4		'APP_TAB_ALARM' : 'alarm',
5		'APP_TAB_MY' : 'my'
6	};
7
8	var init = function(){
9		//당겨서 새로고침 사용설정
10		setPullToRefresh();
11	};
12
13	/***
14	 * 탭바 뱃지설정
15	 * type은 type+Badge형태 ex alarmBadge
16	 * @param type
17	 * @param cnt
18	 */
19	var updateTabBadgeCnt = function(type,cnt){
20		if(IS_IOS_APP){
21			var data = {
22				"method" : "updateTabBadgeCnt",
23				"type" : type,
24				"cnt" : cnt
25			};
26			loadMethod(data);
27		}
28	};
29
30	/***
31	 * 탭바 아이콘 변경
32	 * type은 type+Icon형태 ex alarmIcon
33	 * path는 도메인을 제외한 uri만 입력
34	 * @param type
35	 * @param icon_path
36	 */
37	var changeTabIcon = function(type,icon_path){
38		var data = {
39			"method" : "changeTabIcon",
40			"type" : type,
41			"icon_path" : icon_path
42		};
43		loadMethod(data);
44	};
45
46	/***
47	 * 탭바 활성/비활성화 시키기
48	 * type은 type+Icon형태 ex alarmIcon
49	 * @param type
50	 * @param is_disable
51	 */
52	var disableTab = function(type,is_disable){
53		var data = {
54			"method" : "disableTab",
55			"type" : type,
56			"is_disable" : is_disable
57		};
58		loadMethod(data);
59	};
60
61	/***
62	 * Ios앱 메소드 호출하기
63	 */
64	function loadMethod(data){
65		try {
66			webkit.messageHandlers.imwebIosCallBack.postMessage(data);
67		} catch(err) {
68
69		}
70	}
71
72	/***
73	 * 앱 당겨서 새로고침 사용유무
74	 * @param is_enable
75	 */
76	var setPullToRefresh = function(is_enable){
77		is_enable = isBlank(is_enable) ? "Y" : is_enable;
78		if(IS_APP){
79			if(IS_ANDROID_APP === "Y"){//android 앱일경우 처리
80				window.dozAndroidBridge.setPullToRefresh(is_enable);
81			}else{//iOS 앱일경우 처리
82				var data = {
83					"method" : "setPullToRefresh",
84					"is_enable" : is_enable
85				};
86				loadMethod(data);
87			}
88		}
89	};
90
91	var reFresh = function(){
92		location.reload();
93	};
94
95	return {
96		'init' : function(){
97			init();
98		},
99		appDefaultTabType : appDefaultTabType,
100		'updateTabBadgeCnt' : function(type,cnt){
101			updateTabBadgeCnt(type,cnt);
102		},
103		'disableTab' : function(type,is_disable){
104			disableTab(type,is_disable);
105		},
106		'changeTabIcon' : function(type,icon_path){
107			changeTabIcon(type,icon_path);
108		},
109		'setPullToRefresh' : function(isEnable){
110			setPullToRefresh(isEnable);
111		},
112		'reFresh' : function(){
113			reFresh();
114		}
115	};
116}();

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.