forked from hzuapps/java-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hzuapps#270 from bestwayr/master
hzuapps#2 hzuapps#3 提交实验代码 hzuapps#109
- Loading branch information
Showing
4 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<meta charset="utf-8"> | ||
<!-- 新 Bootstrap 核心 CSS 文件 --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css"> | ||
<!-- 可选的Bootstrap主题文件(一般不用引入) --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css"> | ||
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 --> | ||
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script> | ||
<!-- 最新的 Bootstrap 核心 JavaScript 文件 --> | ||
<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> | ||
<script src="index.js"></script> | ||
<style type="text/css"> | ||
body{ | ||
background-color:#FFCC00; | ||
} | ||
.text2{border:3px;width:350px;height:50px;font-size:16px;line-height:1.6;} | ||
.bt{ | ||
width:100px; | ||
} | ||
</style> | ||
<head> | ||
<title>果果外卖网</title> | ||
</head> | ||
<body bgcolor="yellow"> | ||
<form action=""method="post"id="target"> | ||
<p > | ||
<font size="6"color="#FFFFFF">果果账户登录</font> | ||
</p> | ||
<hr size="15px" noshade> | ||
<p> | ||
<b>用 户 名:</b><input name="textfield3"type="text"class="text2"id="textfield3"value="用户名/邮箱/手机号"/> | ||
<br> | ||
<br> | ||
<br> | ||
<p> | ||
<b>密 码:</b><input name="textfield3"type="password"class="text2"id="textfield4"value=""/> | ||
<input type="checkbox" checked="ischecked">记住密码 | ||
<br> | ||
<br> | ||
<br> | ||
<p> | ||
<input type="submit" class="btn"id="button1"value="登录"> | ||
<input type="reset" class="btn"value="重置"></p> | ||
</form> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
$(function() | ||
{ | ||
$( "#button1" ).click(function() | ||
{ | ||
if ($("#textfield3").val() =="") | ||
{ | ||
alert("Please input your name"); | ||
return false; | ||
} | ||
else if ($("#textfield4").val() =="") | ||
{ | ||
alert("Please input you Password"); | ||
return false; | ||
} | ||
else | ||
{ | ||
$( "#target" ).submit(function( event ) { | ||
alert( "Handler for .submit() called." ); | ||
event.preventDefault(); | ||
}); | ||
} | ||
$.ajax({ | ||
url: "success.json" | ||
}).done(function(data) { | ||
if ( console && console.log ) { | ||
console.dir(data); | ||
alert(data.msg); | ||
} | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> | ||
<% | ||
String path = request.getContextPath(); | ||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | ||
%> | ||
|
||
<!DOCTYPE HTML> | ||
<html> | ||
<meta charset="utf-8"> | ||
<!-- 新 Bootstrap 核心 CSS 文件 --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css"> | ||
<!-- 可选的Bootstrap主题文件(一般不用引入) --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css"> | ||
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 --> | ||
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script> | ||
<!-- 最新的 Bootstrap 核心 JavaScript 文件 --> | ||
<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> | ||
<script src="index.js"></script> | ||
<style type="text/css"> | ||
body{ | ||
background-color:#FFCC00; | ||
} | ||
.text2{border:3px;width:350px;height:50px;font-size:16px;line-height:1.6;} | ||
.bt{ | ||
width:100px; | ||
} | ||
</style> | ||
<head> | ||
<title>某滴出行网。</title> | ||
</head> | ||
|
||
<body bgcolor="yellow"> | ||
<form action=""method="post"id="target"> | ||
<p > | ||
<font size="6"color="#FFFFFF">某滴欢迎您~</font> | ||
</p> | ||
<hr size="15px" noshade> | ||
<p align="center"><font size="5"color="#ffffff"><b>您好,您现在要去哪儿?</b></font></p> | ||
<ul> | ||
<li> | ||
<p> | ||
<a href="http://developer.baidu.com/map/carhome.htm"><font size="5"color="#ffffff">您现在在哪?(查看定位)</font></a> | ||
</p></li> | ||
<br> | ||
<li> | ||
<p> | ||
<a href="http://developer.baidu.com/map/carhome.htm"><font size="5"color="#ffffff">您要去哪儿?</font></a> | ||
</p> | ||
</li> | ||
</ul> | ||
<hr size="15px" noshade> | ||
<p> | ||
<font size="5"color="#ffffff"><b>您想搭乘:</b></font> | ||
</p> | ||
<p> | ||
<input type="checkbox"name="way1"value="A1"><font size="4"color="#ff6600">快车</font></input> | ||
<input type="checkbox"name="way2"value="A2"><font size="4"color="#ff6600">出租车</font></input> | ||
<input type="checkbox"name="way3"value="A3"><font size="4"color="#ff6600">专车</font></input> | ||
<input type="checkbox"name="way4"value="A4"><font size="4"color="#ff6600">顺风车</font></input> | ||
</p> | ||
<p align="center"> | ||
<a href="http://blog.sina.com.cn/s/blog_a1da9c5b0102wxlz.html"><font size="5"color="#ffffff">计价规则</font></a> | ||
</p> | ||
<br> | ||
<p align="center"> | ||
<input style="background:#ffffff;color:black;width: 250px; height: 50px;"type="submit"class="btn"id="button1"value="呼叫快车"></input> | ||
</p> | ||
<br> | ||
<p> | ||
<font size="5"color="#ffffff"><b>祝您乘坐愉快!*—*</b></font> | ||
</p> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"msg": "保存成功!" | ||
} |