-
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.
- Loading branch information
0 parents
commit dcfb3cc
Showing
103 changed files
with
192,438 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. | ||
require('../../js/transition.js') | ||
require('../../js/alert.js') | ||
require('../../js/button.js') | ||
require('../../js/carousel.js') | ||
require('../../js/collapse.js') | ||
require('../../js/dropdown.js') | ||
require('../../js/modal.js') | ||
require('../../js/tooltip.js') | ||
require('../../js/popover.js') | ||
require('../../js/scrollspy.js') | ||
require('../../js/tab.js') | ||
require('../../js/affix.js') |
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,51 @@ | ||
//var ip = "http://202.117.54.39:8080/Yotta"; // 服务器域名(ip) + http端口(9218)+工程名字 | ||
// var ip = "http://202.117.54.42:8080/Yotta"; // 服务器域名(ip) + http端口(9218)+工程名字 | ||
// var ip = "http://yotta.xjtushilei.com:9218/Yotta"; // 服务器域名(ip) + http端口(9218)+工程名字 | ||
//var ip = "http://202.117.54.125:8080/Yotta"; // 服务器域名(ip) + http端口(9218)+工程名字 | ||
var ip = "http://yotta.xjtushilei.com:8083"; | ||
|
||
|
||
// setCookie("name","hayden"); | ||
// alert(getCookie("name")); | ||
//如果需要设定自定义过期时间 | ||
//那么把上面的setCookie 函数换成下面两个函数就ok; | ||
//程序代码 | ||
function setCookie(name,value,time) | ||
{ | ||
var strsec = getsec(time); | ||
var exp = new Date(); | ||
exp.setTime(exp.getTime() + strsec*1); | ||
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+";path=/"; | ||
} | ||
function getsec(str) | ||
{ | ||
// alert(str); | ||
var str1=str.substring(1,str.length)*1; | ||
var str2=str.substring(0,1); | ||
if (str2=="s") | ||
{ | ||
return str1*1000; | ||
} | ||
else if (str2=="h") | ||
{ | ||
return str1*60*60*1000; | ||
} | ||
else if (str2=="d") | ||
{ | ||
return str1*24*60*60*1000; | ||
} | ||
} | ||
//这是有设定过期时间的使用示例: | ||
//s20是代表20秒 | ||
//h是指小时,如12小时则是:h12 | ||
//d是天数,30天则:d30 | ||
// setCookie("name","hayden","s20"); | ||
// | ||
function getCookie(name) | ||
{ | ||
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); | ||
if(arr=document.cookie.match(reg)) | ||
return unescape(arr[2]); | ||
else | ||
return ""; | ||
} |
Binary file not shown.
Oops, something went wrong.