|
@@ -289,6 +289,9 @@
|
|
|
width: 500px;
|
|
|
}
|
|
|
}
|
|
|
+ .yanzheng{
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
@@ -298,16 +301,18 @@
|
|
|
|
|
|
<div class="container b-container" id="b-container">
|
|
|
<form action="LoginServlet" method="post" class="form" id="b-form">
|
|
|
- <h2 class="form_title title">Log in</h2>
|
|
|
+ <h2 class="form_title title">Login</h2>
|
|
|
<div class="form_icons">
|
|
|
|
|
|
</div>
|
|
|
<span class="form_span">Log in</span>
|
|
|
- <input type="text" class="form_input" placeholder="Email" name="email" >
|
|
|
+ <input type="text" class="form_input" placeholder="Email" name="email">
|
|
|
<input type="text" class="form_input" placeholder="Password" name="pwd">
|
|
|
- 验证码:<input type="text" name="image">
|
|
|
- <img src="VerifyCodeServlet">
|
|
|
- <input type="button" value="看不清? 换一张." id="btn"><font color="red">${requestScope.imageMess}</font>
|
|
|
+ <div class="yanzheng">
|
|
|
+ <input type="text" class="form_input" placeholder="PIN" name="img">
|
|
|
+ </div>
|
|
|
+ <img src="VerifyCodeServlet" id="ifh">
|
|
|
+ <input type="button" value="看不清? 换一张." id="btn" style="margin-top: 4px">
|
|
|
<br>
|
|
|
<button class="form_button button submit">SIGN IN</button>
|
|
|
</form>
|
|
@@ -325,6 +330,12 @@
|
|
|
</div>
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
+ document.getElementById("ifh").onclick = function () {
|
|
|
+ // 获取img元素
|
|
|
+ // 为了让浏览器发送请求到servlet, 所以一定要改变src
|
|
|
+ document.getElementsByTagName("img")[0].src =
|
|
|
+ "VerifyCodeServlet?time=" + new Date().getTime();
|
|
|
+ };
|
|
|
document.getElementById("btn").onclick = function () {
|
|
|
// 获取img元素
|
|
|
// 为了让浏览器发送请求到servlet, 所以一定要改变src
|