-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.html
140 lines (114 loc) · 5.61 KB
/
demo.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>UI 组件演示中心 - jPlusUI</title>
<link href="assets/web/styles/jplus-welcome.css" rel="stylesheet">
<link href="assets/web/styles/index.css" rel="stylesheet">
<link href="assets/demo/demo.css" rel="stylesheet">
<style>
body {
font-family: 'Microsoft YaHei';
}
h2.demo {
font-size: 24px;
line-height: 40px;
text-align: left;
}
.nav {
margin-top: 0;
}
.x-grid {
margin-bottom: 40px;
}
</style>
<script src="assets/web/scripts/jplus-welcome.js" type="text/javascript"></script>
<script src="assets/web/scripts/controls.js" type="text/javascript"></script>
<script>var Demo = { web: true }</script>
<script src="assets/demo/demo.js" type="text/javascript"></script>
</head>
<body>
<a href="https://github.com/jplusui/jplusui/" target="_blank" id="forkmeongithub">
<img src="assets/web/images/fork_me_on_github.png">
</a>
<div id="topbar">
<div class="x-container x-clear">
<h1 class="x-left"><a href="index.html" title="jPlusUI - 一个轻量但完整的UI组件库">jPlusUI</a></h1>
<ul class="x-left">
<li><a href="whyjplusui.html" title="组件概念">组件概念</a></li>
<li><a href="features.html" title="设计思路和原则">设计理念</a></li>
<li><a href="demo.html" class="selcted" title="查看组件列表">文档和演示中心</a></li>
<li><a href="download.html" title="获取 jPlusUI">下载</a></li>
<li><a href="community.html" title="讨论和联系方式">社区</a></li>
</ul>
</div>
</div>
<div id="main">
<div id="body" class="demo-doc">
<div class="examples x-container" id="examples">
<nav class="demo-toolbar" style="margin-top: 10px;">
<a href="getstarted.html">三分钟快速上手</a>
<a href="diy.html">定制组件</a>
<a href="src/index.html" target="_blank">完整组件列表 »</a>
</nav>
<h2 class="demo">UI 组件演示中心</h2>
<div class="nav">
<script>
var first = true;
for (var category in Controls) {
if (first) {
first = false;
} else {
document.write(' • ');
}
document.write('<a href="#" data-value="' + category + '" title="' + category + '">' + category + '</a>');
}
</script>
</div>
<div id="items">
</div>
<script>
function toggleTab(controls) {
controls = Controls[controls];
var html = '';
var i = 0;
for (var control in controls) {
if (i === 0) {
html += '<div class="x-grid">';
}
if (i === 0) {
html += '<div class="x-col x-col-3 x-col-first">';
} else {
html += '<div class="x-col x-col-3">';
}
html += '<a href="' + controls[control].url + '" class="x-thumbnail" target="_blank" title="' + (controls[control].title || '') + '"><img src="assets/web/thumbnails/' + controls[control].thumbnail + '" /></a><h4><a href="' + controls[control].url + '" target="_blank" title="' + (controls[control].title || '') + '">' + control + '</a></h4>';
html += '</div>';
if (i === 3) {
html += '</div>';
}
if (++i === 4) {
i = 0;
}
}
Dom.get('items').setHtml(html);
}
Dom.query('.nav a').on('click', function () {
Dom.query('.nav a').removeClass('selected');
this.addClass('selected');
toggleTab(this.getAttr('data-value'));
return false;
});
Dom.query('.nav a').item(0).trigger('click');
</script>
</div>
</div>
<div id="footer">
<div class="x-container">
<span class="x-right"><a href="about.html">关于我们</a> | <a href="LICENSE.txt" target="_blank">The BSD License</a> | <a href="https://github.com/jplusui/jplusui/issues/new" target="_blank">意见反馈</a> | <a href="community.html">加入我们</a></span>
Copyright © 2011-2012 jPlusUI Team. All Rights Reserved.
</div>
</div>
</div>
<script type="text/javascript" src="assets/web/scripts/stat.js"></script>
</body>
</html>