1 2 var taeil_id ; 3 var taeil_uid ; 4 5 6var obj = { 7 8 9 init: function() { 10 login_chk(); 11 }, 12 13 14 //@ ì¿ í¤ì¸í 15 setCookie: function(cName, cValue, cDay) { 16 17 var hostn = window.location.hostname ; 18 19 if (hostn.indexOf("makeulike") != -1) { 20 ckdomain =".makeulike.co.kr"; 21 } 22 else if (hostn.indexOf("unitysquare.co.kr") != -1) { 23 ckdomain =".unitysquare.co.kr"; 24 } 25 else { 26 ckdomain =""; 27 } 28 29 30 var expire = new Date(); 31 //expire.setDate(expire.getDate() + cDay); 32 expire.setTime(expire.getTime() + (cDay * 60 * 60 * 1000)); // 20Min 33 34 35 // cookies = cName + '=' + escape(cValue) + '; path=/ '; // íê¸ ê¹¨ì§ì ë§ê¸°ìí´ escape(cValue)를 í©ëë¤. 36 cookies = cName + '=' + escape(cValue)+ ';domain='+ckdomain+'; path=/ '; // ëë©ì¸ ì¿ í¤ 37 if (typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';'; 38 document.cookie = cookies; 39 }, 40 41 //@ ì¿ í¤ìì ëë©ì¸ ìëê² ìì . 42 deleteCookie: function(cookieName) { 43 var expireDate = new Date(); 44 var hostn = window.location.hostname ; 45 46 if (hostn.indexOf("makeulike") != -1) { 47 ckdomain =".makeulike.co.kr"; 48 } 49 else if (hostn.indexOf("unitysquare.co.kr") != -1) { 50 ckdomain =".unitysquare.co.kr"; 51 } 52 else { 53 ckdomain =""; 54 } 55 56 expireDate.setDate(expireDate.getDate() - 1); 57 document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString() + ";domain="+ckdomain+"; path=/"; 58 }, 59 60 //@ ì¿ í¤ìì ëë©ì¸ ìëê² ìì . 61 deleteCookie2: function(cookieName) { 62 var expireDate = new Date(); 63 var hostn = window.location.hostname ; 64 65 if (hostn.indexOf("makeulike") != -1) { 66 ckdomain =".makeulike.co.kr"; 67 } 68 else if (hostn.indexOf("unitysquare.co.kr") != -1) { 69 ckdomain =".unitysquare.co.kr"; 70 } 71 else { 72 ckdomain =""; 73 } 74 75 expireDate.setDate(expireDate.getDate() - 1); 76 document.cookie = cookieName + "= " + "; expires=" + expireDate.toGMTString() + ";domain="+ckdomain+"; path=/"; 77 }, 78 79 80 //@ ì¿ í¤ ê°ì ¸ì¤ê¸° 81 getCookie: function(cName) { 82 cName = cName + '='; 83 var cookieData = document.cookie; 84 var start = cookieData.indexOf(cName); 85 var cValue = ''; 86 if (start != -1) { 87 start += cName.length; 88 var end = cookieData.indexOf(';', start); 89 if (end == -1) end = cookieData.length; 90 cValue = cookieData.substring(start, end); 91 } 92 return unescape(cValue); 93 } 94 95}; 96 97 98 99$(document).ready(function(e){ 100 101 obj.init(); 102}); 103 104 105var getParameter = function (param) { 106 var returnValue; 107 var url = location.href; 108 var parameters = (url.slice(url.indexOf('?') + 1, url.length)).split('&'); 109 for (var i = 0; i < parameters.length; i++) { 110 var varName = parameters[i].split('=')[0]; 111 if (varName.toUpperCase() == param.toUpperCase()) { 112 returnValue = parameters[i].split('=')[1]; 113 return decodeURIComponent(returnValue); 114 } 115 } 116}; 117 118 119 120 121 122function logout_proc(){ 123 124 obj.deleteCookie("E_ID"); 125 obj.deleteCookie("E_UID"); 126 127 alert("ë¡ê·¸ìì ëììµëë¤."); 128 129 setTimeout(function(){ 130 window.location.reload(); 131 }, 1000); 132 133} 134 135 136function login_chk(){ 137 138 // taeil_id = '<?php echo get_cookie_dec("E_ID") ?>'; //obj.getCookie("E_ID"); 139 // taeil_uid = '<?php echo get_cookie_dec("E_UID") ?>'; //obj.getCookie("E_UID"); 140 taeil_id =obj.getCookie("E_ID"); 141 taeil_uid = obj.getCookie("E_UID"); 142 143} 144 145 146 147// ì½ë ë³í í¨ì 148/* 149ì¬ì©ë²: 150seq => html append ì¼ë ¨ë²í¸ (ì¬ë¬ê°ì¼ ê²½ì° 0, 1, 2 .. ìì°¨ì ì©) 151coeytype => 0 : select, 1 : input, 2 : input ë°°ì´, 3 : select(ì ì²´í¬í¨) 152codearea => í´ë¹ í ì´ë¸ 153codename => ì½ëëª 154c_var => ì½ë ë¹êµê°(ì íê°) 155mode => ìì ì¬ë¶ (m:ìì ) 156etc_var => 기í ê°(ì íê°) 157*/ 158function codeConvert(seq, codetype, codearea, codename, c_var, mode, etc_var) { 159 if(codetype==2){ 160 c_var = encodeURIComponent(c_var); 161 } 162 $.ajax({
163 url: "/ajax/ajax_codeConvert", 164 type: "GET", 165 data: { 166 'codetype' : codetype, 167 'codearea' : codearea, 168 'codename' : codename, 169 'c_var' : c_var, 170 'mode' : mode, 171 'etc_var' : etc_var 172 }, 173 dataType: "html", 174 success: function(data) { 175 176 $(".codeuse_"+seq).html(data); 177 }, 178 error: function() { 179 } 180 }); 181} 182 183 184// ì½ë ë³í í¨ì 커뮤ëí° ì´ë²¤í¸ ê´ì¬ì£¼ì ìì ì¬ì© 185/* 186ì¬ì©ë²: 187seq => html append ì¼ë ¨ë²í¸ (ì¬ë¬ê°ì¼ ê²½ì° 0, 1, 2 .. ìì°¨ì ì©) 188coeytype => 0 : select, 1 : input, 2 : input ë°°ì´, 3 : select(ì ì²´í¬í¨) 189codearea => í´ë¹ í ì´ë¸ 190codename => ì½ëëª 191c_var => ì½ë ë¹êµê°(ì íê°) 192mode => ìì ì¬ë¶ (m:ìì ) 193etc_var => 기í ê°(ì íê°) 194industrial_field => ì°ì ë¶ì¼ 195*/ 196function codeConvert(seq, codetype, codearea, codename, c_var, mode, etc_var, industrial_field) { 197 198 if(codetype==2){ 199 c_var = encodeURIComponent(c_var); 200 } 201 $.ajax({
202 url: "/ajax/ajax_codeConvert_comm", 203 type: "GET", 204 data: { 205 'codetype' : codetype, 206 'codearea' : codearea, 207 'codename' : codename, 208 'c_var' : c_var, 209 'mode' : mode, 210 'etc_var' : etc_var, 211 'industrial_field' : industrial_field 212 }, 213 dataType: "html", 214 success: function(data) { 215 216 $(".codeuse_"+seq).html(data); 217 }, 218 error: function() { 219 } 220 }); 221} 222 223 224 225function insert_Share(stype, link, pidx){ 226 227 $.ajax({ 228 type: 'post', 229 url: '/ajax/sns_share_ins', //ë°ì´í°ë¥¼ ìì²í íì´ì§ 230 dataType: 'json', //ë°ì´í° ì í 231 data: { 232 'board_idx': pidx, 233 'stype': stype, 234 'board_link': link, 235 }, 236 error: function(xhr, status, e) { //ìë¬ ë°ìì ì²ë¦¬í¨ì 237 // console.log(e); 238 }, 239 success: function(jdata) { //ì±ê³µì ì²ë¦¬ í¨ì, ì¸ìë ììì data를 ì¬ì©í ê²½ì° 240 241 } 242 }); 243} 244 245// ì«ìë§ ì ë ¥ onkeypress="inNumber();"/> 246function inNumber(){ 247 if(event.keyCode<48 || event.keyCode>57){ 248 event.returnValue=false; 249 } 250} 251 252// userAgent ê° ì»ê¸° 253function checkMobile(){ 254 var varUA = navigator.userAgent.toLowerCase(); //userAgent ê° ì»ê¸° 255 256 if ( varUA.indexOf('android') > -1) { 257 //ìëë¡ì´ë 258 return "android"; 259 } else if ( varUA.indexOf("iphone") > -1||varUA.indexOf("ipad") > -1||varUA.indexOf("ipod") > -1 ) { 260 //IOS 261 return "ios"; 262 } else { 263 //ìì´í°, ìëë¡ì´ë ì¸ 264 return "other"; 265 } 266} 267 268//PC, Mobile ëë°ì´ì¤ êµ¬ë¶ 269function device_check() { 270 // ëë°ì´ì¤ ì¢ ë¥ ì¤ì 271 var pc_device = "win16|win32|win64|mac|macintel"; 272 273 // ì ìí ëë°ì´ì¤ íê²½ 274 var this_device = navigator.platform; 275 276 if ( this_device ) { 277 278 if ( pc_device.indexOf(navigator.platform.toLowerCase()) < 0 ) { 279 //console.log('MOBILE'); 280 return "MOBILE"; 281 } else { 282 //console.log('PC'); 283 return "PC"; 284 } 285 286 } 287}
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.