From 2616628a8ed29f72b91f88bb03b0fa3d5f094328 Mon Sep 17 00:00:00 2001 From: junhee park Date: Mon, 18 May 2026 22:35:18 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/script.js | 50 ++++++++++++++++++++++++++++++++++++++++++- templates/signup.html | 28 ++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 templates/signup.html diff --git a/static/js/script.js b/static/js/script.js index 5d51c2f..6ee005e 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -45,4 +45,52 @@ 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 From 3246e7641f2caf614127098a2c8a6446424def10 Mon Sep 17 00:00:00 2001 From: junhee park Date: Mon, 18 May 2026 22:52:12 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85?= =?UTF-8?q?=EC=B0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/script.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/script.js b/static/js/script.js index 6ee005e..0733f7a 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -48,7 +48,6 @@ function createCalendar() { window.onload = createCalendar; -// 기존 코드들은 그대로 두시고, 맨 아래에 추가하세요! function handleSignup() { const name = document.getElementById('newName').value; @@ -56,14 +55,14 @@ function handleSignup() { alert("이름을 입력해주세요!"); } else { alert(name + "님, 회원가입이 완료되었습니다!"); - window.location.href = "login.html"; // 가입 성공하면 로그인창으로 이동 + window.location.href = "login.html"; } } -// 로그인창에서 '회원가입' 글자를 눌렀을 때 이동하는 기능 수정 + function goToSignup() { window.location.href = "signup.html"; -}// 기존 코드들은 그대로 두시고, 맨 아래에 추가하세요! +} function handleSignup() { const name = document.getElementById('newName').value; @@ -71,14 +70,14 @@ function handleSignup() { alert("이름을 입력해주세요!"); } else { alert(name + "님, 회원가입이 완료되었습니다!"); - window.location.href = "login.html"; // 가입 성공하면 로그인창으로 이동 + window.location.href = "login.html"; } } // 로그인창에서 '회원가입' 글자를 눌렀을 때 이동하는 기능 수정 function goToSignup() { window.location.href = "signup.html"; -}// 기존 코드들은 그대로 두시고, 맨 아래에 추가하세요! +} function handleSignup() { const name = document.getElementById('newName').value;