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.