forked from jixiangac/TimeLines
-
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 fbfc873
Showing
10 changed files
with
619 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,6 @@ | ||
.DS_Store | ||
node_modules | ||
npm-debug.log | ||
*.swp | ||
.sw* | ||
.idea/* |
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,67 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>TimeLines的demo</title> | ||
<script src="http://g.tbcdn.cn/kissy/k/1.3.0/kissy-min.js" charset="utf-8"></script> | ||
<link rel="stylesheet" href="http://g.tbcdn.cn/kissy/k/1.3.0/css/dpl/base-min.css"> | ||
</head> | ||
<body> | ||
<h2>TimeLines的demo</h2> | ||
<div id="timeline"></div> | ||
<script> | ||
var S = KISSY; | ||
if (S.Config.debug) { | ||
var srcPath = "../../../"; | ||
S.config({ | ||
packages:[ | ||
{ | ||
name:"gallery", | ||
path:srcPath, | ||
charset:"utf-8", | ||
ignorePackageNameInUri:true | ||
} | ||
] | ||
}); | ||
} | ||
|
||
S.use('gallery/TimeLines/1.0/index', function (S, TimeLines) { | ||
var data = [ | ||
{ | ||
"date" : "2013-09-01", | ||
"tip": "开学了!" | ||
}, | ||
{ | ||
"date" : "2013-09-07", | ||
"tip": ["秋季热卖","有的是毛线"] | ||
}, | ||
{ | ||
"date" : "2013-09-15", | ||
"tip": ["月饼大甩卖","土豪今天和我做了朋友"] | ||
}, | ||
{ | ||
"data" : "2013-10-01", | ||
"tip" : ["去年买了个登山包","今年在双十一必须买土豪金"] | ||
} | ||
{ | ||
"date" : "2013-11-01", | ||
"tip": "活动预热,还有10天双十一" | ||
}, | ||
{ | ||
"date" : "2013-11-04", | ||
"tip": "预售开始" | ||
}, | ||
{ | ||
"date" : "2013-11-11", | ||
"tip": "双11启动,土豪金,fighting!" | ||
} | ||
] | ||
new TimeLines({ | ||
target : "#timeline" | ||
,data : data | ||
,curDate : "2013-11-11" | ||
}); | ||
}); | ||
</script> | ||
</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,15 @@ | ||
## 综述 | ||
|
||
TimeLines是。 | ||
|
||
* 版本:1.0 | ||
* 作者:jixiangac | ||
* demo:[http://gallery.kissyui.com/TimeLines/1.0/demo/index.html](http://gallery.kissyui.com/TimeLines/1.0/demo/index.html) | ||
|
||
## 初始化组件 | ||
|
||
S.use('gallery/TimeLines/1.0/index', function (S, TimeLines) { | ||
var TimeLines = new TimeLines(); | ||
}) | ||
|
||
## API说明 |
Oops, something went wrong.