first commit
This commit is contained in:
27
static/script.js
Normal file
27
static/script.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// 공통 JavaScript 함수들
|
||||
|
||||
// 폼 유효성 검사
|
||||
function validateForm(formId) {
|
||||
const form = document.getElementById(formId);
|
||||
if (!form.checkValidity()) {
|
||||
form.reportValidity();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// 로딩 표시
|
||||
function showLoading() {
|
||||
const modal = document.getElementById('loadingModal');
|
||||
if (modal) {
|
||||
modal.style.display = 'flex';
|
||||
}
|
||||
}
|
||||
|
||||
function hideLoading() {
|
||||
const modal = document.getElementById('loadingModal');
|
||||
if (modal) {
|
||||
modal.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user