This repository has been archived by the owner on Nov 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
161 lines (151 loc) · 7.44 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>西电开源社区 - 0pen Source, 0pen Mind!</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.timeago.js"></script>
<script type="text/javascript" src="js/jquery.timeago.zh-cn.js"></script>
<script type="text/javascript" src="js/jquery.jfeed.pack.js"></script>
<script type="text/javascript" src="js/spin.min.js"></script>
<script type="text/javascript" src="js/jquery.spin.js"></script>
<script type="text/javascript">
// get rss from @url and put into @id
function getNews(options){
var url=options.url;
var id=options.container;
$.getFeed({
url: url,
error: function(XMLHttpRequest) {
$(id).find('.loader').addClass("hidden");
$(id).append(
'<div class="error_msg" > 矮油!出错啦! </div>'
);
},
success: function(feed) {
$(id).find('.loader').addClass("hidden");
var html = '';
for(var i = 0; i < feed.items.length && i < 11; i++) {
var item = feed.items[i];
html +='<li><span class="title"><a href="'
+ item.link
+ '">'
+ item.title
+ '</a></span><span class="date">'
+ $.timeago(item.updated)
+'</span></li>';
}
$( id+' ul.items').append(html);
}
});
}
$(document).ready(function() {
//ajax loading animation
$(".loader").spin("small","#2c5794");
$(".loader").append("<br /><br/><span>唔,我正在努力的加载 >_< </span>");
//fix navigation panel position
navYloc = parseInt($("#nav").css("top").substring(0, $("#nav").css("top").indexOf("px")));
$(window).scroll(function() {
offset = navYloc + $(document).scrollTop() + "px";
$("#nav").animate({ top: offset }, { duration: 500, queue: false });
});
//navigation button hover style change
$("#nav li").hover(function(){
$(this).addClass("hover");
},function(){
$(this).removeClass("hover");
});
//fetch rss
getNews({url:"/git.atom", container:"#github"});
getNews({url:"/bbs/feed", container:"#bbs"});
getNews({url:"/wiki/feed",container:"#wiki"});
});
</script>
</head>
<body>
<div id="nav">
<li class="pulse"><a href="/maillist/" class="mail"><span><div>邮件列表</div></span></a></li>
<li><a href="/bbs/" class="bbs"><span><div>论坛</div></span></a></li>
<li><a href="/wiki/" class="wiki"><span><div>Wiki</div></span></a></li>
<li><a href="/index/status.html" class="mirror"><span><div>软件源</div></span></a></li>
<li><a href="/project" class="project"><span><div>项目</div></span></a></li>
<li><a href="/book/" class="book"><span><div>图书</div></span></a></li>
<li><a href="http://rt.xdlinux.info/" class="rt"><span><div>实时</div></span></a></li>
<li><a href="http://xdlinux.info/xdlinux.html" class="xdlinux"><span><div>xdlinux宣言</div></span></a></li>
</div>
<div id="content">
<h1> 西电开源社区 - 0pen Source, 0pen Mind!</h1>
<div id="current" class="hidden">
<h3> 正在进行 </h3>
</div>
<div id="mirror" class="hidden">
</div>
<div id="news">
<h3>社区动态</h3>
<div id="bbs" class="feed">
<h4><a href="/bbs">论坛新帖</a></h4>
<div class="items">
<ul class="items">
</ul>
</div>
<div class="loader" ></div>
</div>
<div id="wiki" class="feed">
<h4><a href="/wiki">Wiki更新</a></h4>
<div class="items">
<ul class="items">
</ul>
</div>
<div class="loader" ></div>
</div>
<div id="github" class="feed">
<h4><a href="http://xdlinux.info/project/xdpd.html">项目动态</a></h4>
<div class="items">
<ul class="items">
</ul>
</div>
<div class="loader" ></div>
</div>
</div>
<div class="clear"></div>
<form method="get" action="http://www.google.com.hk/search" target="google_window">
<a href="http://www.google.com.hk/"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<input type="text" name="as_q" size="31" maxlength="255" value=""/>
<input type="submit" name="sa" value="搜索"/>
<input type="radio" name="as_sitesearch" value="xdlinux.info/wiki" checked="checked"/>
<font size="-1" color="#000000">wiki</font>
<input type="radio" name="as_sitesearch" value="xdlinux.info/bbs" checked="checked"/>
<font size="-1" color="#000000">bbs</font>
<input type="radio" name="as_sitesearch" value="groups.google.com/group/xidian_linux" checked="checked"/>
<font size="-1" color="#000000">groups(邮件列表)</font>
<input type="radio" name="as_sitesearch" value="xdlinux.info" checked="checked"/>
<font size="-1" color="#000000">xdlinux全站搜索</font>
<input name="newwindow" value="1" type="hidden"/>
<input name="complete" value="1" type="hidden"/>
<input name="forid" value="zh-CN" type="hidden"/>
<input type="hidden" name="num" value="10"/>
<input name="btnG" value="Google+%E6%90%9C%E7%B4%A2&" type="hidden"/>
<input name="as_ft" value="1" type="hidden"/>
<input name="as_qdr" value="all" type="hidden"/>
<input name="as_occt" value="any" type="hidden"/>
<input name="as_dt" value="i" type="hidden"/>
</form>
<div class="comment">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'xdlinux'; // required: replace example with your forum shortname
var disqus_identifier = 'xdlinux/index';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink"><span class="logo-disqus">Disqus</span></a>
</div>
</div>
</body>
</html>