1$(document).ready(function() { 2 3}); 4 5var SIGNUP = { 6 7 send : function(form){ 8 9 $.ajax({ 10 type: "POST", 11 url : "/member/set_member_create", 12 data: form.serialize(), 13 cache: false, 14 dataType: 'json', 15 success : function(result) { 16 17 if(result.status == 'success'){ 18 goto('/member/join_success'); 19 }else{ 20 alert(result.message); 21 } 22 23 } 24 }); 25 }, 26 modify : function(form){ 27 28 $.ajax({ 29 type: "POST", 30 url : "/member/modify_member_info", 31 data: form.serialize(), 32 cache: false, 33 dataType: 'json', 34 success : function(result) { 35 36 if(result.status == 'success'){ 37 if(result.uri){ 38 goto(result.uri); 39 }else{ 40 goto('https://tan.tantanselect.com/'); 41 } 42 43 }else{ 44 alert(result.message); 45 } 46 47 } 48 }); 49 }, 50 mobile_pattern : function(obj){ 51 52 var val = obj.val(); 53 54 val = val.replace(/[^0-9]/g, ''); 55 val = val.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"); 56 57 return val; 58 59 }, 60 mobile_valid : function(obj){ 61 62 var val = SIGNUP.mobile_pattern(obj); 63 64 if(val.length < 13){ 65 return val; 66 } 67 68 $("input[name='user_mobile']").siblings(".tip").hide(); 69 70 var mobilePattern = /^\d{3}-\d{3,4}-\d{4}$/; 71 72 if (mobilePattern.test(val)) { 73 var arr_mobile = val.split("-"); 74 $("input[name='mbMobile1']").val(arr_mobile[0]); 75 $("input[name='mbMobile2']").val(arr_mobile[1]); 76 $("input[name='mbMobile3']").val(arr_mobile[2]); 77 78 $.ajax({
79 type: "POST", 80 url : "/member/valid_mobile_no", 81 data: {mobile:val, csrf_token:$("input[name=csrf_token]").val()}, 82 cache: false, 83 dataType: 'json', 84 success : function(result) { 85 if (result.status == 'success') { 86 } else { 87 var message = result.message; 88 $("input[name='user_mobile']").siblings(".tip").html(message).show(); 89 } 90 91 } 92 }); 93 } 94 return val; 95 96 }, 97 // ì¸ì¦ë²í¸ ìì² 98 cert_request : function() { 99 100 var mobile1 = $("input[name='mbMobile1']").val(); 101 var mobile2 = $("input[name='mbMobile2']").val(); 102 var mobile3 = $("input[name='mbMobile3']").val(); 103 //$(".cert_timmer").hide(); 104 if ($("input[name='certKey']").val()) { 105 clearInterval(certTimer); 106 } 107 if (mobile1 && mobile2 && mobile3) { 108 $.ajax({
109 type: "POST", 110 url : "/member/get_cert_number", 111 data: {mobile1:mobile1, mobile2:mobile2, mobile3:mobile3, csrf_token:$("input[name=csrf_token]").val()}, 112 cache: false, 113 dataType: 'json', 114 115 success : function(result) { 116 if (result.status == "success") { 117 $(".btn.certRequest").hide(); 118 $(".btn.remain").show(); 119 $(".btn.remain").text("05:00"); 120 $(".btn.certCheck").show(); 121 $(".btn.resend").show(); 122 certTimer = setInterval(SIGNUP.cert_timer, 1000); 123 alert(result.message); 124 $("input[name='certKey']").val(result.certKey); 125 } else { 126 var message = result.message; 127 $("input[name='user_mobile']").siblings(".tip").html(message).show(); 128 } 129 } 130 }); 131 } 132 }, 133 get_cert_seconds : function() { 134 var now = $.trim($(".btn.remain").text()); 135 var arr = now.split(":"); 136 return Number(arr[0]) * 60 + Number(arr[1]) - 1; 137 }, 138 cert_timer : function() { 139 var seconds = SIGNUP.get_cert_seconds(); 140 if (seconds == 0) { 141 clearInterval(certTimer); 142 } 143 var bt = function(t) { return (t < 10) ? "0"+t : t; } 144 var time = bt(parseInt(seconds / 60 % 60)) + ":" + bt(seconds % 60); 145 $(".btn.remain").text(time); 146 }, 147 // ì¸ì¦ë²í¸ ê²ì¦ 148 cert_check : function() { 149 var cert = $("input[name='certKey']").val(); 150 var num = $("input[name='certCode']").val(); 151 var seconds = parseInt(SIGNUP.get_cert_seconds()) + 1; 152 if (seconds < 1) { 153 alert("ì¸ì¦ìê°ì´ ì´ê³¼ ëììµëë¤."); 154 return false; 155 } 156 if (!cert) { 157 alert("ì¸ì¦ë²í¸ë¥¼ ì ì¡í´ 주ì¸ì."); 158 return false; 159 } 160 if (!num) { 161 alert("ì¸ì¦ë²í¸ë¥¼ ì ë ¥í´ ì£¼ì¸ì."); 162 return false; 163 } 164 $.ajax({
165 type: "POST", 166 url : "/member/get_cert_check", 167 data: {cert:cert, num:num, csrf_token:$("input[name=csrf_token]").val()}, 168 cache: false, 169 dataType: 'json', 170 beforeSend : function() { 171 $("#loadingCertCheck").show(); 172 $("#btnCertCheck").hide(); 173 }, 174 complete : function() { 175 $("#loadingCertCheck").hide(); 176 }, 177 success : function(result) { 178 if (result.status == "success") { 179 $("[name='is_sms_cert']").val(1); 180 $(".btn.remain").text("ì¸ì¦ìë£"); 181 $(".btn.certCheck").hide(); 182 $(".btn.resend").hide(); 183 $("[name='user_mobile']").attr("readonly", true); 184 $("[name='certCode']").attr("readonly", true); 185 clearInterval(certTimer); 186 alert("ì¸ì¦ëììµëë¤."); 187 } else { 188 alert(result.message); 189 $("[name='is_sms_cert']").val(0); 190 } 191 } 192 }); 193 } 194} 195 196var LOGIN = { 197 send : function() { 198 if ($("#loginForm #user_id").val() == '') { 199 alert($("#loginForm #user_id").attr('placeholder')); 200 return false; 201 } 202 if ($("#loginForm #user_pw").val() == '') { 203 alert($("#loginForm #user_pw").attr('placeholder')); 204 return false; 205 } 206 207 var id = $("[name='user_id']").val(); 208 var pw = $("[name='user_pw']").val(); 209 210 $.ajax({
211 type: "POST", 212 url : "/member/set_login", 213 data: {id:id, pw:pw, csrf_token:$("input[name=csrf_token]").val()}, 214 cache: false, 215 dataType: 'json', 216 beforeSend : function() { 217 $("#loading").show(); 218 }, 219 complete : function() { 220 $("#loading").hide(); 221 }, 222 success : function(result) { 223 if (result.status == 'success') { 224 225 if (result.uri) { 226 goto(result.uri); 227 } else { 228 goto("https://tan.tantanselect.com"); 229 } 230 231 } else { 232 alert(result.message); 233 } 234 } 235 }); 236 }, 237 logout : function() { 238 $.ajax({ 239 type: "POST", 240 url : "/member/set_logout", 241 data: {csrf_token:$("input[name=csrf_token]").val()}, 242 cache: false, 243 dataType: 'json', 244 beforeSend : function() { 245 $("#loading").show(); 246 }, 247 complete : function() { 248 $("#loading").hide(); 249 }, 250 success : function(result) { 251 if (result.status == 'success') { 252 document.location.reload(true); 253 }else{ 254 alert(result.message); 255 } 256 } 257 }); 258 } 259}; 260 261 262var FIND = { 263 id : function() { 264 var name = $("#findIdForm [name='user_name']").val(); 265 var email = $("#findIdForm [name='user_mail']").val(); 266 267 $.ajax({
268 type: "POST", 269 url : "/member/find_member_id", 270 data: {name:name, email:email, csrf_token:$("input[name=csrf_token]").val()}, 271 cache: false, 272 dataType: 'json', 273 success : function(result) { 274 275 if(result.status == 'success'){ 276 277 $('.form_area').eq(2).addClass('on').siblings().removeClass('on'); 278 $('.find_id_result span').text(result.memberId); 279 280 }else{ 281 alert(result.message); 282 } 283 } 284 }); 285 }, 286 pw : function() { 287 var id = $("#findPwForm [name='user_id']").val(); 288 var name = $("#findPwForm [name='user_name']").val(); 289 var email = $("#findPwForm [name='user_mail']").val(); 290 291 $.ajax({ 292 type: "POST", 293 url : "/member/find_member_pw", 294 data: {id:id, name:name, email:email, csrf_token:$("input[name=csrf_token]").val()}, 295 cache: false, 296 dataType: 'json', 297 success : function(result) { 298 299 if(result.status == 'success'){ 300 301 $('.form_area').eq(3).addClass('on').siblings().removeClass('on'); 302 303 }else{ 304 alert(result.message); 305 } 306 } 307 }); 308 } 309 310 311}
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.