signinmain.html
3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!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 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 class="dr-icon" href="service/whatiskhuchat.html" >What is KHU chat? </a></li>
<li><a class="dr-icon" href="loginmain.html" >로그인</a></li>
<li><a class="dr-icon" href="signinmain.html" >회원가입</a></li>
<li><a class="dr-icon" href="question.html" >문의사항</a></li>
<li><a class="dr-icon" href="afterlogin.html" >로그인이후</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>