포토리뷰 작업 중

This commit is contained in:
2025-12-22 22:48:31 +09:00
parent a23a4b3f2a
commit f4f47bcc5f
18 changed files with 683 additions and 67 deletions

View File

@@ -443,14 +443,14 @@ $(document).ready(function () {
let content = $(this).val();
if (content.length == 0 || content == "") {
$(".textCount").text("0/" + maxInquiryContentsCount);
$(".textCount").html(`<em>0</em>/${maxInquiryContentsCount}`);
} else {
$(".textCount").text(content.length + "/" + maxInquiryContentsCount);
$(".textCount").html(`<em>${content.length}</em>/${maxInquiryContentsCount}`);
}
if (content.length > maxInquiryContentsCount) {
$(this).val($(this).val().substring(0, maxInquiryContentsCount));
$(".textCount").text(maxInquiryContentsCount + "/" + maxInquiryContentsCount);
$(".textCount").html(`<em>${maxInquiryContentsCount}</em>/${maxInquiryContentsCount}`);
alert("글자수는 " + maxInquiryContentsCount + "자까지 입력 가능합니다.");
}
});