forked from AlloyTeam/PhyTouch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
452 lines (394 loc) · 13.5 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title>AlloyTouch</title>
<link rel="shortcut icon" href="example/asset/logo.ico">
<style type="text/css">
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body, ul, li {
padding: 0;
margin: 0;
border: 0;
font-family: Segoe UI Light,Segoe UI,Microsoft Jhenghei,Mirco Yahei,'sans-serif';
}
ul, li {
list-style: none;
}
a {
text-decoration: none;
outline: 0;
}
img {
vertical-align: middle;
border: 0;
}
._ib {
display: inline-block;
}
</style>
<style>
.ctn {
width: 100%;
}
.logo_box img {
width: 50px;
margin-right: 5px;
position: relative;
top: -3px;
}
.logo_box {
font-size: 20px;
color: #00a6ff;
}
.logo_box a {
color: #00a6ff;
}
.head {
width: 100%;
line-height: 60px;
height: 60px;
font-weight: bold;
}
.head li {
display: inline-block;
margin-left: 10px;
font-size: 18px;
font-weight: normal;
color: black;
}
.head li a {
color: black;
display: block;
width: 100%;
}
.ad {
text-align: center;
background: #00a6ff url(example/asset/ad_bg.png) center center no-repeat;
background-size: cover;
height: 400px;
position: relative;
}
.ad_main_box {
width: 100%;
top: 100px;
position: absolute;
z-index: 2;
}
.ad_main {
color: white;
font-size: 20px;
white-space:nowrap;
text-align:center;
}
.ad_mask {
z-index: 1;
width: 100%;
position: absolute;
height: 400px;
background-color: black;
opacity: 0.7;
}
.ad_main h1 {
color: white;
font-size: 40px;
}
.footer {
height: 50px;
text-align: center;
line-height: 50px;
background-color: #202020;
color: white;
}
.special {
text-align: center;
border-bottom:1px solid #ddd;
padding-bottom:10px;
}
.features li {
display: inline-block;
width: 25%;
vertical-align: top;
}
@media only screen and (max-width: 768px) {
/* For mobile phones: */
.features p {
height: auto;
width: 200px;
margin: 0 auto;
font-size: 18px;
}
.features li {
width: 100%;
vertical-align: top;
}
.mb_menu {
display: block;
position: fixed;
left: 0px;
top: 0px;
width: 50px;
z-index: 200;
height: 50px;
line-height: 50px;
text-align: center;
}
.mb_menu img {
width: 30px;
}
.logo_box {
width: 100%;
text-align: center;
}
.head ul {
-moz-transform: translateX(-100%) translateZ(0);
-ms-transform: translateX(-100%) translateZ(0);
-o-transform: translateX(-100%) translateZ(0);
-webkit-transform: translateX(-100%) translateZ(0);
transform: translateX(-100%) translateZ(0);
text-align: center;
width: 100%;
padding-top: 58px;
background-color: white;
position: fixed;
z-index: 100;
left: 0;
top: 0;
top: 0px;
border-bottom: 1px solid #dddddd;
-moz-transition: all .6s ease;
-o-transition: all .6s ease;
-webkit-transition: all .6s ease;
transition: all .6s ease;
}
.head ul.show {
-moz-transform: translateX(0%) translateZ(0);
-ms-transform: translateX(0%) translateZ(0);
-o-transform: translateX(0%) translateZ(0);
-webkit-transform: translateX(0%) translateZ(0);
transform: translateX(0%) translateZ(0);
text-align: center;
width: 100%;
padding-top: 58px;
background-color: white;
position: fixed;
z-index: 100;
left: 0;
top: 0;
top: 0px;
border-bottom: 1px solid #dddddd;
-moz-transition: all .6s ease;
-o-transition: all .6s ease;
-webkit-transition: all .6s ease;
transition: all .6s ease;
}
.head li {
width: 100%;
border-top: 1px solid #dddddd;
margin-left: 0px;
}
.github_li {
display: inline-block;
}
#githubLink {
display: none;
}
}
@media only screen and (min-width: 768px) {
.mb_menu {
display: none;
}
/* For desktop: */
.ctn {
width: 100%;
margin: 0 auto;
}
#githubLink {
display: block;
}
.head .github_li {
display: none;
}
.features p {
height: 100px;
width: 200px;
margin: 0 auto;
font-size: 18px;
}
.special {
height:500px;
}
}
.major h2:after {
background-color: #dddddd;
background-image: -moz-linear-gradient(90deg, #efa8b0, #a89cc8, #8cc9f0);
background-image: -webkit-linear-gradient(90deg, #efa8b0, #a89cc8, #8cc9f0);
background-image: -ms-linear-gradient(90deg, #efa8b0, #a89cc8, #8cc9f0);
background-image: linear-gradient(90deg, #efa8b0, #a89cc8, #8cc9f0);
display: block;
content: '';
width: 3.25em;
height: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
margin: 20px auto 0px;
}
.user{
text-align:center;
}
</style>
</head>
<body>
<div class="mb_menu">
<img src="example/asset/menu.png" alt="" />
</div>
<div class="ctn">
<div class="head bord-btm">
<div class="logo_box _ib">
<a href="https://github.com/AlloyTeam/AlloyTouch">
<img src="example/asset/logo.png" alt="" />AlloyTouch</a>
</div>
<ul class="_ib" id="menu">
<!-- <li>
<a href="##">Docs</a>
</li>
<li>
<a href="##">Tutorial</a>
</li>-->
<li>
<a href="website/demo.html">Demo</a>
</li>
<li><a href="http://www.alloyteam.com/">AlloyTeam</a></li>
<li><a href="http://alloyteam.github.io/donate.html">Donate</a></li>
<li class="github_li">
<a href="https://github.com/AlloyTeam/AlloyTouch">Github</a>
</li>
<li>
<a href="website/index_cn.html">中文</a>
</li>
</ul>
</div>
<div class="ad">
<div class="ad_mask"></div>
<div class="ad_main_box">
<div class="ad_main">
<!--<span class="logo"><img src="images/logo.svg" alt="" /></span>-->
<h1>AlloyTouch</h1>
<p>
Everything you want to touch is here<br>
by AlloyTeam
</p>
</div>
</div>
</div>
<div class="special">
<div class="major">
<h2>Features</h2>
</div>
<ul class="features">
<li>
<span class="icon major style3 fa-copy"></span>
<h3>Rich Components</h3>
<p>There are many components to use such as select, multi-select, carousel, full page scrolling, pull to refresh and so on. </p>
</li>
<li>
<span class="icon major style1 fa-code"></span>
<h3>Super Tiny Size</h3>
<p>2.24 kB gzipped</p>
</li>
<li>
<span class="icon major style5 fa-diamond"></span>
<h3>Simple API</h3>
<p>
Takes about a minute to get start. Creating an instance of an object by new keyword:<br />
new AlloyTouch(option)
</p>
</li>
</ul>
<ul class="features" style="margin-top: 30px;">
<li>
<span class="icon major style1 fa-code"></span>
<h3>Smoothing Animation</h3>
<p>The tween parameters of motion is a time-consuming progress with iterative adjustment and modify. Bring the ultimate experience to the users.</p>
</li>
<li>
<span class="icon major style3 fa-copy"></span>
<h3>Easy To Extend</h3>
<p>Highly abstract logic design allows you to easily touch many user feedback scenes, not just scrolling.</p>
</li>
<li>
<span class="icon major style5 fa-diamond"></span>
<h3>Excellent Contributors</h3>
<p>AlloyTeam will be the first time to respond to any of your questions, any comments and suggestions please let us know.</p>
</li>
</ul>
<!-- <div class="major">
<ul class="actions">
<li><a href="generic.html" class="button">Learn More</a></li>
</ul>
</div>-->
</div>
<div class="user">
<div class="major">
<h2>Products using AlloyTouch</h2>
</div>
<div>
<div>
<img src="http://s1.url.cn/qqun/qun/imgs/logo2.png" />
</div>
<div style="margin-top:10px;">
<img src="example/asset/egame.png" alt="企鹅电竞游戏直播" />
</div>
<div style="font-size: 32px; color: #222222; font-weight: bold;margin-top:7px;">
<img src="example/asset/wt.png" alt="" />
QQ天气
</div>
<div style="margin-top:-10px;">
<img src="example/asset/kandian.png" alt="" />
</div>
<div style="margin-top:-3px;">
<img style="width: 180px;" src="example/asset/nearby.png" alt="" />
</div>
<div style="margin-top:10px;">
<img src="example/asset/qqvip.png" alt="" />
</div>
<div style="margin-top:10px;">
<img src="example/asset/mig.png" alt="" />
</div>
<div style="margin-top:10px;">
<img style="width: 180px;" src="http://pub.idqqimg.com/qqun/xiaoqu/mobile/img/login-logo.png" />
</div>
</div>
<div class="footer bord-top">© 2017 AlloyTeam</div>
</div>
</div>
<a href="https://github.com/AlloyTeam/AlloyTouch" target="_blank" id="githubLink" style="position: fixed; right: 0; top: 0; z-index: 3;">
<img src="//alloyteam.github.io/github.png" alt="">
</a>
<script>
function toggleClass(element, className) {
if (!element || !className) {
return;
}
var classString = element.className, nameIndex = classString.indexOf(className);
if (nameIndex == -1) {
classString += ' ' + className;
}
else {
classString = classString.substr(0, nameIndex) + classString.substr(nameIndex + className.length);
}
element.className = classString;
}
var menuDiv = document.getElementById("menu");
document.querySelector(".mb_menu").onclick = function () {
toggleClass(menuDiv, "show");
}
</script>
</body>
</html>