1;(function($) { 2$.fn.bookclub_type_select = function(){ 3 var t = this; 4 if( t.length==0 ) 5 return; 6 7 var total_amount = Number($('input[name=LGD_AMOUNT]').val()); 8 9 t.change(function(e){ 10 var payprice = Number(this.value); 11 12 var new_amount = payprice; 13 14 var data = { 15 action: 'bookclub-register', 16 action_scope: 'get-pay-hashdata', 17 nonce: bcp_vars.nonce, 18 mid: $('input[name=LGD_MID]').val(), 19 oid: $('input[name=LGD_OID]').val(), 20 timestamp: $('input[name=LGD_TIMESTAMP]').val(), 21 amount: new_amount 22 } 23 24 $.post(bcp_vars.ajaxurl, data, function(rs){ 25 if( rs ){ 26 $('input[name=LGD_HASHDATA]').val(rs.hashdata); 27 $('input[name=LGD_AMOUNT]').val(new_amount); 28 $('.pay-info .amount b').text( bcp.number_format(new_amount) ); 29 $('input[name=LGD_NOINTINF]').val(rs.nointinf); 30 t.data('index', t[0].selectedIndex); 31 if(rs.duration == 12) { 32 if( $(".present-select-input.section").hasClass('invisible') ) 33 $(".present-select-input.section").removeClass('invisible').slideDown(400); 34 if( $(".present-select-input.section fieldset").hasClass('present-rule-re') ) { 35 $(".present-select-input.section fieldset.present-rule-re input[name='bookclub_register[present1]']").addClass('required'); 36 } 37 if( $(".present-select-input.section fieldset").hasClass('present-rule') ) { 38 $(".present-select-input.section fieldset.present-rule input[name='bookclub_register[present2]']").addClass('required'); 39 } 40 } 41 else { 42 $(".present-select-input.section").addClass('invisible').slideUp(400); 43 if( $(".present-select-input.section fieldset").hasClass('present-rule-re') ) { 44 $(".present-select-input.section fieldset.present-rule-re input[name='bookclub_register[present1]']").removeClass('required').prop('checked', false); 45 } 46 if( $(".present-select-input.section fieldset").hasClass('present-rule') ) { 47 $(".present-select-input.section fieldset.present-rule input[name='bookclub_register[present2]']").removeClass('required').prop('checked', false); 48 } 49 } 50 51 }else{ 52 alert('ê°ì í ì ìë ê¸°ê° ë¨ìì ëë¤.'); 53 /*t[0].selectedIndex = t.data('index') || 0;*/ 54 } 55 },'json'); 56 }); 57} 58 59$.fn.bookclub_type_select_entry = function(){ 60 var t = this; 61 if( t.length==0 ) 62 return; 63 64 var total_amount = Number($('input[name=LGD_AMOUNT]').val()); 65 66 t.change(function(e){ 67 var payprice = Number(this.value); 68 69 var new_amount = payprice; 70 71 var data = { 72 action: 'bookclub-register', 73 action_scope: 'get-pay-hashdata-entry', 74 nonce: bcp_vars.nonce, 75 mid: $('input[name=LGD_MID]').val(), 76 oid: $('input[name=LGD_OID]').val(), 77 timestamp: $('input[name=LGD_TIMESTAMP]').val(), 78 amount: new_amount 79 } 80 81 $.post(bcp_vars.ajaxurl, data, function(rs){ 82 if( rs ){ 83 $('input[name=LGD_HASHDATA]').val(rs.hashdata); 84 $('input[name=LGD_AMOUNT]').val(new_amount); 85 $('.pay-info .amount b').text( bcp.number_format(new_amount) ); 86 $('input[name=LGD_NOINTINF]').val(rs.nointinf); 87 t.data('index', t[0].selectedIndex); 88 if(rs.duration == 12) { 89 if( $(".present-select-input.section").hasClass('invisible') ) 90 $(".present-select-input.section").removeClass('invisible').slideDown(400); 91 if( $(".present-select-input.section fieldset").hasClass('present-rule-re') ) 92 $(".present-select-input.section fieldset.present-rule-re input[name='bookclub_register[present1]']").addClass('required'); 93 } 94 else { 95 $(".present-select-input.section").addClass('invisible').slideUp(400); 96 if( $(".present-select-input.section fieldset").hasClass('present-rule-re') ) 97 $(".present-select-input.section fieldset.present-rule-re input[name='bookclub_register[present1]']").removeClass('required').prop('checked', false); 98 } 99 100 }else{ 101 alert('ì¤ë¥ê° ë°ìíììµëë¤. CDOE:9'); 102 /*t[0].selectedIndex = t.data('index') || 0;*/ 103 } 104 },'json'); 105 }); 106} 107 108$.fn.bookclub_age_select = function(){ 109 var t = this; 110 if( t.length==0 ) 111 return; 112 113 t.change(function(e){ 114 var lvl = this.value; 115 116 var data = { 117 action: 'bookclub-register', 118 action_scope: 'get-pay-name', 119 nonce: bcp_vars.nonce, 120 lvl: lvl, 121 } 122 123 $.post(bcp_vars.ajaxurl, data, function(rs){ 124 if( rs ){ 125 $('input[name=LGD_PRODUCTINFO]').val(rs.pay_name); 126 t.data('index', t[0].selectedIndex); 127 }else{ 128 alert('ìë¬ê° ë°ìíìµëë¤.'); 129 /*t[0].selectedIndex = t.data('index') || 0;*/ 130 } 131 },'json'); 132 }); 133} 134 135$.fn.bookclub_age_select_new = function(){ 136 var t = this; 137 if( t.length==0 ) 138 return; 139 140 t.change(function(e){ 141 var lvl = this.value; 142 143 var data = { 144 action: 'bookclub-register', 145 action_scope: 'get-pay-name', 146 nonce: bcp_vars.nonce, 147 lvl: lvl, 148 } 149 150 $.post(bcp_vars.ajaxurl, data, function(rs){ 151 if( rs ){ 152 $('input[name=LGD_PRODUCTINFO]').val(rs.pay_name); 153 t.data('index', t[0].selectedIndex); 154 if( t[0].selectedIndex > 4 && $("input[name='bcthru']").val() == 'dochimom') { 155 $(".present-select-input.section input[name='bookclub_register[present1]']").prop('checked', false); 156 $(".present-select-input.section input[name='bookclub_register[present1]']").each(function() { 157 if( $(this).val() == 'ì°ë ¹ë³ì± ' ) { 158 $(this).prop('disabled', true); 159 } 160 }); 161 } 162 else if( t[0].selectedIndex > 4 && $("input[name='bcthru']").val() != 'dochimom') { 163 $(".present-select-input.section input[name='bookclub_register[present1]']").removeClass('required').prop('checked', false); 164 $(".present-select-input.section input[name='bookclub_register[present1]']").prop('checked', false); 165 $(".present-select-input.section input[name='bookclub_register[present1]']").each(function() { 166 if( $(this).val() == 'ì°ë ¹ë³ì± ' ) { 167 $(this).prop('disabled', true); 168 } 169 }); 170 $(".present-select-input.section").addClass('invisible').slideUp(400); 171 } 172 else { 173 $(".present-select-input.section input[name='bookclub_register[present1]']").addClass('required').prop('disabled', false); 174 $(".present-select-input.section").removeClass('invisible').slideDown(400); 175 } 176 }else{ 177 alert('ìë¬ê° ë°ìíìµëë¤.'); 178 /*t[0].selectedIndex = t.data('index') || 0;*/ 179 } 180 },'json'); 181 }); 182} 183 184$.fn.bookclub_age_select_new2 = function(){ 185 var t = this; 186 if( t.length==0 ) 187 return; 188 189 t.change(function(e){ 190 var lvl = this.value; 191 192 var data = { 193 action: 'bookclub-register', 194 action_scope: 'get-pay-name', 195 nonce: bcp_vars.nonce, 196 lvl: lvl, 197 } 198 199 $.post(bcp_vars.ajaxurl, data, function(rs){ 200 if( rs ){ 201 $('input[name=LGD_PRODUCTINFO]').val(rs.pay_name); 202 t.data('index', t[0].selectedIndex); 203 204 if( t[0].selectedIndex > 4 ) { 205 $(".present-select-input.section input[name='bookclub_register[present1]']").removeClass('required').prop('checked', false); 206 $(".present-select-input.section input[name='bookclub_register[present2]']").removeClass('required').prop('checked', false); 207 $(".present-select-input.section").addClass('invisible').slideUp(400); 208 } 209 else { 210 $(".present-select-input.section input[name='bookclub_register[present1]']").addClass('required'); 211 $(".present-select-input.section input[name='bookclub_register[present2]']").addClass('required'); 212 $(".present-select-input.section").removeClass('invisible').slideDown(400); 213 } 214 }else{ 215 alert('ìë¬ê° ë°ìíìµëë¤.'); 216 /*t[0].selectedIndex = t.data('index') || 0;*/ 217 } 218 },'json'); 219 }); 220} 221 222$.fn.bookclub_age_select_new3 = function(){ //for reentry member 16.1.21 223 var t = this; 224 if( t.length==0 ) 225 return; 226 227 t.change(function(e){ 228 var lvl = this.value; 229 230 var data = { 231 action: 'bookclub-register', 232 action_scope: 'get-pay-name', 233 nonce: bcp_vars.nonce, 234 lvl: lvl, 235 } 236 237 $.post(bcp_vars.ajaxurl, data, function(rs){ 238 if( rs ){ 239 $('input[name=LGD_PRODUCTINFO]').val(rs.pay_name); 240 t.data('index', t[0].selectedIndex); 241 if( t[0].selectedIndex > 4 ) { 242 $(".present-select-input.section input[name='bookclub_register[present1]']").prop('checked', false); 243 $(".present-select-input.section input[name='bookclub_register[present2]']").prop('checked', false); 244 $(".present-select-input.section input[name='bookclub_register[present1]']").each(function() { 245 if( $(this).val() == 'ì°ë ¹ë³ì± ' ) { 246 $(this).prop('disabled', true); 247 } 248 if( $(this).val() == 'íë¶' ) { 249 $(this).prop('disabled', false); 250 } 251 }); 252 $(".present-select-input.section label#step-p2").css('display','inline-block'); 253 $(".present-select-input.section label#step-p1").css('display','none'); 254 //$(".present-select-input.section label#step-p1-1").css('display','none'); 255 } 256 else { 257 $(".present-select-input.section input[name='bookclub_register[present1]']").prop('checked', false); 258 $(".present-select-input.section input[name='bookclub_register[present2]']").prop('checked', false); 259 $(".present-select-input.section input[name='bookclub_register[present1]']").addClass('required'); 260 $(".present-select-input.section input[name='bookclub_register[present2]']").addClass('required'); 261 $(".present-select-input.section input[name='bookclub_register[present1]']").each(function() { 262 if( $(this).val() == 'íë¶' ) { 263 $(this).prop('disabled', true); 264 } 265 if( $(this).val() == 'ì°ë ¹ë³ì± ' ) { 266 $(this).prop('disabled', false); 267 } 268 }); 269 $(".present-select-input.section label#step-p1").css('display','inline-block'); 270 //$(".present-select-input.section label#step-p1-1").css('display','inline'); 271 $(".present-select-input.section label#step-p2").css('display','none'); 272 } 273 }else{ 274 alert('ìë¬ê° ë°ìíìµëë¤.'); 275 /*t[0].selectedIndex = t.data('index') || 0;*/ 276 } 277 },'json'); 278 }); 279} 280 281$.fn.bookclub_age_select_offmem = function(){ //for offline member 16.3.31 282 var t = this; 283 if( t.length==0 ) 284 return; 285 286 t.change(function(e){ 287 var lvl = this.value; 288 289 var data = { 290 action: 'bookclub-register', 291 action_scope: 'get-pay-name', 292 nonce: bcp_vars.nonce, 293 lvl: lvl, 294 } 295 296 $.post(bcp_vars.ajaxurl, data, function(rs){ 297 if( rs ){ 298 $('input[name=LGD_PRODUCTINFO]').val(rs.pay_name); 299 t.data('index', t[0].selectedIndex); 300 if( t[0].selectedIndex > 4 ) { 301 $(".present-select-input.section input[name='bookclub_register[present1]']").prop('checked', false); 302 $(".present-select-input.section input[name='bookclub_register[present2]']").prop('checked', false); 303 $(".present-select-input.section input[name='bookclub_register[present1]']").each(function() { 304 if( $(this).val() == 'ì°ë ¹ë³ì± ' ) { 305 $(this).prop('disabled', true); 306 } 307 if( $(this).val() == 'íë¶' ) { 308 $(this).prop('disabled', false); 309 } 310 }); 311 $(".present-select-input.section label#step-p2").css('display','inline-block'); 312 $(".present-select-input.section label#step-p1").css('display','none'); 313 //$(".present-select-input.section label#step-p1-1").css('display','none'); 314 } 315 else { 316 $(".present-select-input.section input[name='bookclub_register[present1]']").prop('checked', false); 317 $(".present-select-input.section input[name='bookclub_register[present2]']").prop('checked', false); 318 $(".present-select-input.section input[name='bookclub_register[present1]']").addClass('required'); 319 $(".present-select-input.section input[name='bookclub_register[present2]']").addClass('required'); 320 $(".present-select-input.section input[name='bookclub_register[present1]']").each(function() { 321 if( $(this).val() == 'íë¶' ) { 322 $(this).prop('disabled', true); 323 } 324 if( $(this).val() == 'ì°ë ¹ë³ì± ' ) { 325 $(this).prop('disabled', false); 326 } 327 }); 328 $(".present-select-input.section label#step-p1").css('display','inline-block'); 329 $(".present-select-input.section label#step-p1-1").css('display','inline'); 330 $(".present-select-input.section label#step-p2").css('display','none'); 331 } 332 }else{ 333 alert('ìë¬ê° ë°ìíìµëë¤.'); 334 /*t[0].selectedIndex = t.data('index') || 0;*/ 335 } 336 },'json'); 337 }); 338} 339 340$.fn.bookclub_type_select_for_offmem = function(){ 341 var t = this; 342 if( t.length==0 ) 343 return; 344 345 var total_amount = Number($('input[name=LGD_AMOUNT]').val()); 346 347 t.change(function(e){ 348 var payprice = Number(this.value); 349 350 var new_amount = payprice; 351 352 var data = { 353 action: 'bookclub-register', 354 action_scope: 'get-pay-hashdata', 355 nonce: bcp_vars.nonce, 356 mid: $('input[name=LGD_MID]').val(), 357 oid: $('input[name=LGD_OID]').val(), 358 timestamp: $('input[name=LGD_TIMESTAMP]').val(), 359 amount: new_amount 360 } 361 362 $.post(bcp_vars.ajaxurl, data, function(rs){ 363 if( rs ){ 364 $('input[name=LGD_HASHDATA]').val(rs.hashdata); 365 $('input[name=LGD_AMOUNT]').val(new_amount); 366 $('.pay-info .amount b').text( bcp.number_format(new_amount) ); 367 $('input[name=LGD_NOINTINF]').val(rs.nointinf); 368 t.data('index', t[0].selectedIndex); 369 if(rs.duration == 12) { 370 if( $(".present-select-input.section").hasClass('invisible') ) 371 $(".present-select-input.section").removeClass('invisible').slideDown(400); 372 $(".present-select-input.section fieldset.present-rule-re input[name='bookclub_register[present1]']").addClass('required'); 373 } 374 else { 375 $(".present-select-input.section").addClass('invisible').slideUp(400); 376 $(".present-select-input.section fieldset.present-rule-re input[name='bookclub_register[present1]']").removeClass('required').prop('checked', false); 377 } 378 379 }else{ 380 alert('ê°ì í ì ìë ê¸°ê° ë¨ìì ëë¤.'); 381 /*t[0].selectedIndex = t.data('index') || 0;*/ 382 } 383 },'json'); 384 }); 385} 386 387 388$.fn.bookclub_ele_memember_input = function(){ 389 var t = this; 390 t.keyup(function(e){ 391 392 if( t.val().length > 0 ) 393 $('#elemem-wrap .checker').remove(); 394 395 if( t.val().length < 3) 396 return; 397 398 var total_amount = Number($('input[name=LGD_AMOUNT]').val()); 399 var data = { 400 action: 'bookclub-register', 401 action_scope: 'check-ele-member', 402 nonce: bcp_vars.nonce, 403 eleid: t.val(), 404 amount: total_amount 405 } 406 407 $.post(bcp_vars.ajaxurl, data, function(rs){ 408 $('#elemem-wrap .checker').remove(); 409 if( rs && rs.errors ==''){ 410 $('input[name=LGD_NOINTINF]').val(rs.nointinf); 411 $("input[name='bookclub_register[elemem_chk]'").val(rs.elemem); 412 $('<div class="blue checker"/>').appendTo('#elemem-wrap').html('ì¶ì²ì¸ íì¸ì´ ìë£ëììµëë¤.'); 413 }else{//ìë¬ì 414 $('input[name=LGD_NOINTINF]').val(rs.nointinf); 415 $("input[name='bookclub_register[elemem_chk]'").val(''); 416 $('<div class="red checker"/>').appendTo('#elemem-wrap').html(rs.errors); 417 } 418 },'json'); 419 }); 420} 421 422})(jQuery); 423 424
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.