Skip to content

Commit

Permalink
项目源码
Browse files Browse the repository at this point in the history
  • Loading branch information
Jame-Chen committed Mar 16, 2018
0 parents commit 4dda1c2
Show file tree
Hide file tree
Showing 33 changed files with 38,349 additions and 0 deletions.
587 changes: 587 additions & 0 deletions Content/bootstrap-theme.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Content/bootstrap-theme.css.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Content/bootstrap-theme.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Content/bootstrap-theme.min.css.map

Large diffs are not rendered by default.

6,757 changes: 6,757 additions & 0 deletions Content/bootstrap.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Content/bootstrap.css.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Content/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Content/bootstrap.min.css.map

Large diffs are not rendered by default.

2,377 changes: 2,377 additions & 0 deletions Scripts/bootstrap.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions Scripts/bootstrap.min.js

Large diffs are not rendered by default.

6,632 changes: 6,632 additions & 0 deletions Scripts/jquery-3.2.1-vsdoc.js

Large diffs are not rendered by default.

2,670 changes: 2,670 additions & 0 deletions Scripts/jquery-3.2.1.intellisense.js

Large diffs are not rendered by default.

10,253 changes: 10,253 additions & 0 deletions Scripts/jquery-3.2.1.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Scripts/jquery-3.2.1.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Scripts/jquery-3.2.1.min.map

Large diffs are not rendered by default.

8,160 changes: 8,160 additions & 0 deletions Scripts/jquery-3.2.1.slim.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Scripts/jquery-3.2.1.slim.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Scripts/jquery-3.2.1.slim.min.map

Large diffs are not rendered by default.

151 changes: 151 additions & 0 deletions Test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="Content/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<div class="container-fluid">
<div class="row" style="padding:20px;">
<div class="col-md-12">
<input type="button" id="test" class="btn btn-info" value="确定" />
</div>
</div>
</div>
<script src="Scripts/jquery-3.2.1.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script>
$("#test").click(function () {


})

function getstudent() {
$.ajax({
type: "get",
url: "https://172.18.1.75:8243/student/v1/Students",
dataType: "json",
headers: {
"Authorization": "Bearer 183d014c-61c1-3657-9ab3-d7aff9431966",
"Accept": "application/json"
},
success: function (data) {
// var ret = data.StudentCollection.Student[0];
var arr = [];
var list = {
"_poststudent_batch_req": {
"_poststudent": arr
}
}
$.each(data.StudentCollection.Student, function (i, item) {
var temp = {
"Name": "" + item.Name + "",
"Age": parseInt(item.Age),
"Sex": parseInt(item.Sex),
"Chinese": parseFloat(item.Chinese),
"Math": parseFloat(item.Math),
"English": parseFloat(item.English)
}
arr.push(temp);
})
addstudent(list);
},
error: function (xhr, ajaxOptions, thrownError) {
if (xhr.status == 200) {

alert(ajaxOptions);
}
else {
alert(xhr.status);
alert(thrownError);
}
}
})
}

function addstudent(temp) {
temp = JSON.stringify(temp);//json字符串
alert(temp);
$.ajax({
type: "POST",
url: "https://172.18.1.75:8243/203student/v1/Student_batch_req",
dataType: "json",
data: temp,
headers: {
"Content-Type": "application/json",//必须的
"Authorization": "Bearer 183d014c-61c1-3657-9ab3-d7aff9431966",
"Accept": "application/json"
},
success: function (data) {
alert(JSON.stringify(data));
},
error: function (xhr, ajaxOptions, thrownError) {
if (xhr.status == 200) {
alert(ajaxOptions);
}
else {
alert(xhr.status);
alert(thrownError);
}
}
})
}

function test() {
$.ajax({
type: "get",
url: "http://link.y11t.appnxt.com/v1/trigger/odoo",
dataType: "jsonp",
headers: {
"Accept": "application/json"
},
data: {
'link': 'c8b51d10ff3e11e7bf9e02420b6a1625',
'action': 'article_list',
'type': '公司新闻'
},
jsonp: "successCallback",
jsonpCallback: 'successCallback',
username: "",
password: "",
success: function (data) {
alert(JSON.stringify(data));
},
error: function (xhr, ajaxOptions, thrownError) {
if (xhr.status == 200) {

alert(ajaxOptions);
}
else {
alert(xhr.status);
alert(thrownError);
}
}
})
}

function successCallback(data) {
alert(JSON.stringify(data));
}

function domainTest() {
//document.domain;
var domain = "http://172.18.1.152:8091/YJDD/Index?mark=VXNlck5hbWU9QWRtaW58RGVwYXJ0bWVudD3luILmjpLmsLTlpIR8VXNlcklEPTEzMTEwNjE1MTYzNTYzODk2MjE1NjlkZjNlMjRlfERlcGFydG1lbnRUeXBlPeW4gueuoeWNleS9jXxUcnVlTmFtZT3ns7vnu5/nrqHnkIblkZg";
var paramIndex = domain.indexOf("?");
domain = domain.substring(7, paramIndex);
var index = domain.indexOf("/");
var index2 = domain.lastIndexOf("/");
if (index2 - index > 5) {
domain = domain.substring(index, index + 5);
} else {
domain = "";
}
}
</script>
</body>

</html>
47 changes: 47 additions & 0 deletions Transforms.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<style>
.trans {
margin: 0 auto;
border: 1px solid green;
width: 100px;
height: 100px;
-webkit-transition: all ease 0.5s;
-moz-transition: all ease 0.5s;
-o-transition: all ease 0.5s;
transition: all ease 0.5s;
}

.trans:hover {
transform: scale(1.1,1.1);
box-shadow: 0 0 10px #498deb;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12" style="padding:100px 0;">
<div class="trans">
hover效果
</div>
</div>
</div>
</div>
<script src="Scripts/jquery-3.2.1.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script>

$(function () {

})
</script>
</body>
</html>
42 changes: 42 additions & 0 deletions Transition.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<style>
.trans {
border: 1px solid green;
height: 100px;
-webkit-transition: background-color linear 0.5s;
-moz-transition: background-color linear 0.5s;
-o-transition: background-color linear 0.5s;
transition: background-color linear 0.5s;
}
.trans:hover {
background-color:green;
color:red;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 trans">
<button class="btn btn-info ">测试</button>
</div>
</div>
</div>
<script src="Scripts/jquery-3.2.1.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script>

$(function () {

})
</script>
</body>
</html>
32 changes: 32 additions & 0 deletions Web.Debug.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- 有关使用 web.config 转换的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=125889 -->

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
在下例中,“SetAttributes”转换将更改
“connectionString”的值,以仅在“Match”定位器
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
在下例中,“Replace”转换将替换
web.config 文件的整个 <customErrors> 节。
请注意,由于
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>
15 changes: 15 additions & 0 deletions Web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=169433
-->

<configuration>

<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>

</configuration>
41 changes: 41 additions & 0 deletions animate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/animate.min.css">
<style>
.box {
width:100px;
height:100px;
border:1px solid green;
margin:0 auto;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 text-center" style="padding:100px 0;">
<div class="box"></div>
</div>
</div>
</div>
<script src="Scripts/jquery-3.2.1.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script>

$(function () {

})

$(".box").hover(function () {
$(".box").addClass("animated infinite bounceOutLeft");
})
</script>
</body>
</html>
Binary file added fonts/glyphicons-halflings-regular.eot
Binary file not shown.
Loading

0 comments on commit 4dda1c2

Please sign in to comment.