Skip to content

Commit

Permalink
Merge pull request hzuapps#270 from bestwayr/master
Browse files Browse the repository at this point in the history
hzuapps#2 hzuapps#3 提交实验代码 hzuapps#109
  • Loading branch information
zengsn authored Oct 24, 2016
2 parents bb861ce + c97cfbe commit 02f1a7a
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 0 deletions.
46 changes: 46 additions & 0 deletions labs/1414080902202/index.html
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>用&nbsp;&nbsp;户&nbsp;&nbsp;名:</b><input name="textfield3"type="text"class="text2"id="textfield3"value="用户名/邮箱/手机号"/>
<br>
<br>
<br>
<p>
<b>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</b><input name="textfield3"type="password"class="text2"id="textfield4"value=""/>
<input type="checkbox" checked="ischecked">记住密码
<br>
<br>
<br>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" class="btn"id="button1"value="登录">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" class="btn"value="重置"></p>
</form>
</body>
31 changes: 31 additions & 0 deletions labs/1414080902202/index.js
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);
}
});
});
});
74 changes: 74 additions & 0 deletions labs/1414080902202/index.jsp
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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox"name="way2"value="A2"><font size="4"color="#ff6600">出租车</font></input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox"name="way3"value="A3"><font size="4"color="#ff6600">专车</font></input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<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>
3 changes: 3 additions & 0 deletions labs/1414080902202/succes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"msg": "保存成功!"
}

0 comments on commit 02f1a7a

Please sign in to comment.