forked from qhwa/fdevlib-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lofty.php
128 lines (116 loc) · 4.44 KB
/
lofty.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="gbk">
<title>lofty 前端基础框架</title>
<meta name="description" content="lofty 前端基础框架集组件库、AMD加载器、DPL实现、在线合并工具、本地开发调试工具为一体,是前端模块化编程及效率提升的助推器。它同时也是跨终端的解决方案,对移动端提供高性能的 lofty-mobile 基础库支持"/>
<meta name="keywords" content="loftyjs 前端 基础框架 跨终端 AMD styleCombine"/>
<link rel="stylesheet" href="http://style.c.aliimg.com/fdevlib/css/lofty/port/lofty.css" />
<link rel="stylesheet" href="http://style.c.aliimg.com/fdevlib/css/lofty/ui/tabs/1.0/front/tabs-min.css"/>
<link rel="stylesheet" href="static/css/lofty/mainpage/components.css" />
</head>
<body>
<?php
function isAllowedIP(){
if(!empty($_SERVER["HTTP_CLIENT_IP"])){
$cip = $_SERVER["HTTP_CLIENT_IP"];
}
elseif(!empty($_SERVER["HTTP_X_FORWARDED_FOR"])){
$cip = $_SERVER["HTTP_X_FORWARDED_FOR"];
}
elseif(!empty($_SERVER["REMOTE_ADDR"])){
$cip = $_SERVER["REMOTE_ADDR"];
}
else{
$cip = "";
}
$flag = (false !== strpos($cip, "121.0.29.")) || (false !== strpos($cip, "42.120.")) || (false !== strpos($cip, "110.75.105."));
return $flag;
}
?>
<div id="header" class="header">
<div class="header-inner fd-clr">
<a class="logo fd-left" href="/"></a>
<ul class="nav fd-right">
<li class="item fd-left">
<a href="http://fmdjs.org/docs/api/define.html" target="_blank">加载器</a>
</li>
<li class="item fd-left">
<a href="stylecombine.html" target="_blank">StyleCombine</a>
</li>
<li class="item fd-left">
<a href="https://github.com/fangdeng/fdserver" target="_blank">fdserver</a>
</li>
<?php
if(isAllowedIP()){
echo '<li class="item fd-left"><a href="http://wd.alibaba-inc.com/monitor" target="_blank">fdsafe</a></li>';
echo '<li class="item fd-left"><a href="http://wd.alibaba-inc.com/fdevlib/#fdev4.js.core" target="_blank">fdev4入口</a></li>';
}
?>
</ul>
</div>
<a class="github-fork" href="https://github.com/fangdeng/lofty/" target="_blank">
<img src="http://img.china.alibaba.com/cms/upload/2014/459/239/1932954_523143985.png" alt="Fork me on GitHub">
</a>
</div>
<div class="body">
<div class="ui-search">
<div class="ui-search-inner">
<h1>lofty 组件库
<a href="/fdevlib/#fui.startup" target="_blank">开始使用</a>
</h1>
<div class="search-area">
<input type="text" id="search-box" placeholder="搜索 lofty 组件">
</div>
</div>
</div>
<div class="comps-list">
<div id="filterBar" class="fui-tab fui-tab-l fui-tab-bar">
<div class="fui-t">
<ul class="fui-tab-ul">
<li class="fui-tab-t fui-tab-current" data-type="all"><a href="#" target="_self">所有组件</a></li>
<li class="fui-tab-t" data-type="basic"><a href="#" target="_self">基础类</a></li>
<li class="fui-tab-t" data-type="ui"><a href="#" target="_self">UI 组件</a></li>
<li class="fui-tab-t" data-type="util"><a href="#" target="_self">Util 组件</a></li>
<?php
if(isAllowedIP()){
echo '<li class="fui-tab-t" data-type="alicn"><a href="#" target="_self">业务通用组件</a></li>';
echo '<li class="fui-tab-t" data-type="1688site"><a href="#" target="_self">全站通用组件</a></li>';
}
?>
<li class="fui-tab-t" data-type="dpl"><a href="#" target="_self">DPL 组件</a></li>
</ul>
</div>
<div class="fui-d">
<div class="fui-tab-b">
<ul class="list all"></ul>
</div>
<div class="fui-tab-b">
<ul class="list basic"></ul>
</div>
<div class="fui-tab-b">
<ul class="list ui"></ul>
</div>
<div class="fui-tab-b">
<ul class="list util"></ul>
</div>
<?php
if(isAllowedIP()){
echo '<div class="fui-tab-b"><ul class="list alicn"></ul></div>';
echo '<div class="fui-tab-b"><ul class="list 1688site"></ul></div>';
}
?>
<div class="fui-tab-b">
<ul class="list dpl"></ul>
</div>
</div>
</div>
</div>
</div>
<script src="http://style.c.aliimg.com/fdevlib/js/lofty/port/lofty.js"></script>
<script src="http://style.c.aliimg.com/fdevlib/js/gallery/jquery/jquery-latest.js"></script>
<script src="static/js/lofty/mainpage/components-config.js"></script>
<script src="static/js/lofty/mainpage/components.js"></script>
<script type="text/javascript" src="http://js.tongji.linezing.com/3465036/tongji.js"></script>
</body>
</html>