signinmain.html 4 KB
<!doctype html>
<html>
<head>
<title>KHU KHU Chat</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style/style.css">
<script src="JS/validation.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.js">
</script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js">
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#eValidation').keyup(function () {
    var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

    if (re.test($(this).val())) {

        $(this).css("borderColor", "green");

    } else {

        $(this).css("borderColor", "red");

    }
});
});

$(document).ready(function () {
$('#fValidation, #sValidation').on('keyup', function () {
    if ($('#fValidation').val() == $('#sValidation').val()) {
        $('#message').html('일치').css('color', 'green');

    } else
        $('#message').html('비밀번호가 일치 하지않습니다.').css('color', 'red');

});
});



</script>

</head>
<body>

  <h1><a href="main.html" color:black>KHU Chatting service</a></h1>
  <img src="image/signin.jpg" class="image">
<div class="media" id="grid">
  <div id="category">
    <ol class="center">
      <li><a href="service/whatiskhuchat.html" class="saw">What is KHU chat? </a></li>
      <li><a href="loginmain.html" class="saw">로그인</a></li>
      <li><a href="signinmain.html" class="saw">회원가입</a></li>
      <li><a href="question.html" class="saw">문의사항</a></li>
      <li><a href="afterlogin.html" class="saw">로그인이후</a></li>
    </ol>
  </div>
      <div id="article">
        <h2>회원가입</h2>
        <div id="inputset">
        <form class="signinform" action="loginmain.html" onsubmit="return checkValidation()"  method="post">
          <label for="email">이메일:</label><br>
          <input class="inputset" id="eValidation"type="text" name="email"  placeholder="이메일을 입력하세요." ><br>

          <label for="password">비밀번호:</label><br>
          <input class="inputset" id="fValidation" type="password" name="password"  placeholder="비밀번호를 입력하세요." ><br>

          <label for="password">비밀번호 확인:</label><br>
          <input class="inputset" id="sValidation" type="password" name="checkpassword"  placeholder="비밀번호를 입력하세요." >
          <br>
          <span id='message'></span>
          <br>
          <br>
          <label for="name">이름:</label><br>
          <input  class="inputset"type="text" name="name"  placeholder="이름을 입력하세요." ><br>

          <label for="age">나이:</label><br>
          <input  class="inputset"type="text" name="age"  placeholder="나이를 입력하세요." ><br><br>

          <label for="sex">성별:</label><br>
          <input type="radio" value="man" name="sex">남자<br>
          <input type="radio" value="woman" name="sex">여자<br><br>

          <label for="work">직업:</label><br>
          <input type="radio" value="nowork" name="work">무직<br>
          <input type="radio" value="Hstudent" name="work">중/고생<br>
          <input type="radio" value="Ustudent" name="work">대학생<br>
          <input type="radio" value="worker" name="work">직장인<br><br>

          <label for="interesting">관심사(중복선택가능):</label><br>
          <input type="checkbox" value="movie" name="interesting">영화<br>
          <input type="checkbox" value="song" name="interesting">노래<br>
          <input type="checkbox" value="study" name="interesting">공부<br>
          <input type="checkbox" value="coding" name="interesting">코딩<br><br>

          <input type="submit" value="회원가입신청" >



        </form>
        </div>
  </div>
</div>

</body>
</html>