forked from kissygalleryteam/kissy-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (54 loc) · 1.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>KISSY Gallery</title>
<link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/1.3.0/css/dpl/base-min.css"/>
<link rel="stylesheet" href="tools/skin/default.css"/>
<script src="http://a.tbcdn.cn/s/kissy/1.3.0/kissy.js"></script>
</head>
<body>
<div id="header">
<h1 class="logo"><a alt="KISSY" href="http://kissyui.com/"><img src="http://a.tbcdn.cn/s/kissy/logo.png"/></a></h1>
<p class="sub-title">Gallery</p>
<ul class="navigation">
<li><a href="https://groups.google.com/group/kissy-ui">讨论组</a></li>
<li><a href="http://github.com/kissyteam">源码</a></li>
</ul>
</div>
<div id="content">
<div class="s-crumbs">
<span>当前位置:</span>
<a href="http://kissyui.com/">KISSY</a>
<span>Gallery</span>
</div>
<div style='margin:10px 0 0 10px;'>
淘宝 cdn gallery 包地址: http://a.tbcdn.cn/s/kissy/gallery/
</div>
<div class="layout grid-m">
<div class="col-main">
<div class="s-section">
<ul class="s-list" id='list'>
</ul>
</div>
</div>
</div>
</div>
<div id="footer">
© Copyright 2010~2011, KISSY Team.
</div>
<script>
KISSY.use('xtemplate', function (S, XTemplate) {
var tpl = '{{#each gs}}<li><a href="gallery/{{name}}/" target="_blank">{{name}}</a> <span class="s-desc">- {{desc}}</span></li>{{/each}}';
S.io({
url: './index.js',
cache: false,
dataType: 'json',
success: function (data) {
S.all('#list').html(new XTemplate(tpl).render(data));
}
})
});
</script>
</body>
</html>