-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathShare.html
210 lines (180 loc) · 6.46 KB
/
Share.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Share | My RSS</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate icon" type="image/png" href="assets/i/favicon.png">
<link rel="stylesheet" href="assets/css/amazeui.min.css" />
<link rel="stylesheet" href="assets/css/Share.css" />
</head>
<body>
<!-- header -->
<header class="am-topbar">
<h1 class="am-topbar-brand">
<a href="#">My RSS</a>
</h1>
<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}"><span
class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
<ul id="nav" class="am-nav am-nav-pills am-topbar-nav">
<li><a href="Home_Page.html">发现</a></li>
<li class="am-active"><a href="Share.html">分享</a></li>
<li><a href="Collection.html">收藏</a></li>
<li><a href="Group.html">小组</a></li>
<li><a href="Source.html">来源</a></li>
<li><a href="Personal_information.html">个人信息</a></li>
</ul>
</div>
</header>
<script>
function Logincheck() {
var userId = document.URL.split("html")[1];
if (userId == "") {
alert("请先登录或注册!");
window.location.href = "Login.html";
}
}
Logincheck();
licolection = document.getElementById("nav").childNodes;
for (i = 0; i < parseInt(licolection.length / 2); ++i) {
element = licolection[i * 2 + 1].childNodes[0];
element.setAttribute('href', element.getAttribute('href') + "?" + document.URL.split("?")[1])
}
</script>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<div id="arctileList">
<article class="blog-main">
<h3 class="am-article-title" id="title_1">
</h3>
<h4 class="am-article-meta blog-meta" id="createTime_1">
</h4>
<div class="am-g blog-content">
<div class="am-u-lg-12">
<p id="description_1"></p>
</div>
</div>
</article>
<hr class="am-article-divider blog-hr">
<article class="blog-main">
<h3 class="am-article-title" id="title_2">
身邊的字體: Arial (上)
</h3>
<h4 class="am-article-meta blog-meta" id="createTime_2">createTime: 2018/08/20
</h4>
<div class="am-g blog-content">
<div class="am-u-lg-12">
<p id="description_2">这次要介绍的是大家似乎都狠熟悉却又狠陌生的字体:Arial。不只是对 Typography
特别有兴趣的人、碰过排版的人,就算毫无接触,只要打开过电脑的字型选单,应该都有看过这个字型吧。尤其它还是以 A 开头,总是会出现在选单最前面。</p>
</div>
</div>
</article>
<hr class="am-article-divider blog-hr">
<article class="blog-main">
<h3 class="am-article-title" id="title_3">
</h3>
<h4 class="am-article-meta blog-meta" id="createTime_3">
</h4>
<div class="am-g blog-content">
<div class="am-u-lg-12">
<p id="description_3"></p>
</div>
</div>
</article>
<hr class="am-article-divider blog-hr">
<article class="blog-main">
<h3 class="am-article-title" id="title_4">
</h3>
<h4 class="am-article-meta blog-meta" id="createTime_4">
</h4>
<div class="am-g blog-content">
<div class="am-u-lg-12">
<p id="description_4"></p>
</div>
</div>
</article>
<hr class="am-article-divider blog-hr">
<article class="blog-main">
<h3 class="am-article-title" id="title_5">
</h3>
<h4 class="am-article-meta blog-meta" id="createTime_5">
</h4>
<div class="am-g blog-content">
<div class="am-u-lg-12">
<p id="description_5"></p>
</div>
</div>
</article>
</div>
<div class="page-btn">
<ul class="am-pagination blog-pagination">
<li class="am-pagination-prev"><a href="javascript:void(0)" onclick="goLastPage()">« 上一页</a></li>
<li class="am-pagination-next"><a href="javascript:void(0)" onclick="goNextPage()">下一页 »</a></li>
</ul>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script>
var pageNum = 1;
function ListAllPublic(pageNum) {
var reqId = "1";
var reqType = "ListAllPublic";
var publicStatus = "-1";
var device = "pc";
var pageSize = 5;
$.ajax
({
url: "http://120.79.191.240:8089/rssbackend/api/v1/collection/list/allPublic",
data:
{
reqId: reqId,
reqType: reqType,
reqParam: JSON.stringify
({
"device": device
}),
reqPageInfo: JSON.stringify
({
"pageSize": pageSize,
"pageNum": pageNum
})
},
datatype: "json",
type: "GET",
contentType: "application/json",
success: function (objResult) {
var div = document.getElementById("articleList");
for (var i = 0; i < objResult.resResult.curData.totalElements; i++) {
var order = i + 1;
var titleId = "title_" + order;
var createTimeId = "createTime_" + order;
var descriptionId = "description_" + order;
document.getElementById(titleId).innerText = objResult.resResult.curData.content[i].name;
document.getElementById(createTimeId).innerText = "CreateTime: " + objResult.resResult.curData.content[i].createTime;
document.getElementById(descriptionId).innerText = objResult.resResult.curData.content[i].description;
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest.status);
}
});
}
function goLastPage() {
if (pageNum == 1)
return;
else {
pageNum--;
ListAllPublic(pageNum);
}
}
function goNextPage() {
pageNum++;
ListAllPublic(pageNum);
}
ListAllPublic(pageNum);
</script>
</body>
</html>