diff --git a/static/js/script.js b/static/js/script.js index 5d51c2f..0733f7a 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -45,4 +45,51 @@ function createCalendar() { } } -window.onload = createCalendar; \ No newline at end of file +window.onload = createCalendar; + + + +function handleSignup() { + const name = document.getElementById('newName').value; + if(name === "") { + alert("이름을 입력해주세요!"); + } else { + alert(name + "님, 회원가입이 완료되었습니다!"); + window.location.href = "login.html"; + } +} + + +function goToSignup() { + window.location.href = "signup.html"; +} + +function handleSignup() { + const name = document.getElementById('newName').value; + if(name === "") { + alert("이름을 입력해주세요!"); + } else { + alert(name + "님, 회원가입이 완료되었습니다!"); + window.location.href = "login.html"; + } +} + +// 로그인창에서 '회원가입' 글자를 눌렀을 때 이동하는 기능 수정 +function goToSignup() { + window.location.href = "signup.html"; +} + +function handleSignup() { + const name = document.getElementById('newName').value; + if(name === "") { + alert("이름을 입력해주세요!"); + } else { + alert(name + "님, 회원가입이 완료되었습니다!"); + window.location.href = "login.html"; // 가입 성공하면 로그인창으로 이동 + } +} + +// 로그인창에서 '회원가입' 글자를 눌렀을 때 이동하는 기능 수정 +function goToSignup() { + window.location.href = "signup.html"; +} \ No newline at end of file diff --git a/templates/signup.html b/templates/signup.html new file mode 100644 index 0000000..47ff4eb --- /dev/null +++ b/templates/signup.html @@ -0,0 +1,28 @@ + + + + + 회원가입 + + + +
+

회원가입

+ +
+ + + + +
+ + + + +
+ + + + \ No newline at end of file