Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:41 +09:00
commit 5b1bfe3390
2223 changed files with 561621 additions and 0 deletions

30
assets/js/captcha.js Normal file
View File

@@ -0,0 +1,30 @@
if (typeof(CAPTCHA_JS) === 'undefined') {
if (typeof cb_url === 'undefined') {
alert('올바르지 않은 접근입니다.');
}
var CAPTCHA_JS = true;
var captcha_word = '';
$(function() {
$(document).on('click', '#captcha', function() {
$.ajax({
url : cb_url + '/captcha/show',
type : 'get',
dataType : 'json',
success : function(data) {
$('#captcha').attr('src', cb_url + '/uploads/captcha/' + data.filename);
captcha_word= data.word;
}
});
});
$('#captcha').trigger('click');
if (typeof $.validator !== 'undefined') {
$.validator.addMethod('captchaKey', function(value, element) {
return this.optional(element) || value.toLowerCase() === captcha_word.toLowerCase();
});
}
});
}