Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
b145ac62
Unverified
Commit
b145ac62
authored
Jan 16, 2020
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
#18
parent
2498205e
Changes
53
Hide whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
60 additions
and
86 deletions
+60
-86
src/main/resources/common-template/label.ftl
src/main/resources/common-template/label.ftl
+1
-1
src/main/resources/js/admin/admin.min.js
src/main/resources/js/admin/admin.min.js
+2
-2
src/main/resources/js/common.min.js
src/main/resources/js/common.min.js
+1
-1
src/main/resources/skins/9IPHP/article-list.ftl
src/main/resources/skins/9IPHP/article-list.ftl
+1
-1
src/main/resources/skins/9IPHP/article.ftl
src/main/resources/skins/9IPHP/article.ftl
+1
-1
src/main/resources/skins/9IPHP/side.ftl
src/main/resources/skins/9IPHP/side.ftl
+2
-6
src/main/resources/skins/Andrea/article-list.ftl
src/main/resources/skins/Andrea/article-list.ftl
+1
-1
src/main/resources/skins/Andrea/article.ftl
src/main/resources/skins/Andrea/article.ftl
+1
-1
src/main/resources/skins/Andrea/side.ftl
src/main/resources/skins/Andrea/side.ftl
+1
-1
src/main/resources/skins/Bubble/article-list.ftl
src/main/resources/skins/Bubble/article-list.ftl
+2
-2
src/main/resources/skins/Casper/article-list.ftl
src/main/resources/skins/Casper/article-list.ftl
+2
-2
src/main/resources/skins/Community/article-list.ftl
src/main/resources/skins/Community/article-list.ftl
+1
-1
src/main/resources/skins/Community/article.ftl
src/main/resources/skins/Community/article.ftl
+1
-1
src/main/resources/skins/Community/side.ftl
src/main/resources/skins/Community/side.ftl
+1
-1
src/main/resources/skins/Finding/css/base.css
src/main/resources/skins/Finding/css/base.css
+1
-1
src/main/resources/skins/Finding/css/base.scss
src/main/resources/skins/Finding/css/base.scss
+1
-1
src/main/resources/skins/Finding/dynamic.ftl
src/main/resources/skins/Finding/dynamic.ftl
+1
-1
src/main/resources/skins/Jane/article-list.ftl
src/main/resources/skins/Jane/article-list.ftl
+1
-1
src/main/resources/skins/Jane/article.ftl
src/main/resources/skins/Jane/article.ftl
+1
-1
src/main/resources/skins/Medium/article-list.ftl
src/main/resources/skins/Medium/article-list.ftl
+1
-1
src/main/resources/skins/Medium/article.ftl
src/main/resources/skins/Medium/article.ftl
+3
-3
src/main/resources/skins/NeoEase/article-list.ftl
src/main/resources/skins/NeoEase/article-list.ftl
+1
-1
src/main/resources/skins/NeoEase/article.ftl
src/main/resources/skins/NeoEase/article.ftl
+1
-1
src/main/resources/skins/NeoEase/side.ftl
src/main/resources/skins/NeoEase/side.ftl
+1
-1
src/main/resources/skins/Pinghsu/article.ftl
src/main/resources/skins/Pinghsu/article.ftl
+1
-3
src/main/resources/skins/favourite/article-list.ftl
src/main/resources/skins/favourite/article-list.ftl
+1
-1
src/main/resources/skins/favourite/article.ftl
src/main/resources/skins/favourite/article.ftl
+1
-1
src/main/resources/skins/favourite/side.ftl
src/main/resources/skins/favourite/side.ftl
+1
-1
src/main/resources/skins/i-nove/article-list.ftl
src/main/resources/skins/i-nove/article-list.ftl
+1
-1
src/main/resources/skins/i-nove/article.ftl
src/main/resources/skins/i-nove/article.ftl
+1
-1
src/main/resources/skins/i-nove/side.ftl
src/main/resources/skins/i-nove/side.ftl
+1
-1
src/main/resources/skins/metro-hot/article-list.ftl
src/main/resources/skins/metro-hot/article-list.ftl
+1
-1
src/main/resources/skins/metro-hot/article.ftl
src/main/resources/skins/metro-hot/article.ftl
+1
-1
src/main/resources/skins/metro-hot/dynamic.ftl
src/main/resources/skins/metro-hot/dynamic.ftl
+1
-1
src/main/resources/skins/next/article-list.ftl
src/main/resources/skins/next/article-list.ftl
+1
-1
src/main/resources/skins/next/article.ftl
src/main/resources/skins/next/article.ftl
+1
-1
src/main/resources/skins/nijigen/article-list.ftl
src/main/resources/skins/nijigen/article-list.ftl
+1
-1
src/main/resources/skins/nijigen/article.ftl
src/main/resources/skins/nijigen/article.ftl
+1
-1
src/main/resources/skins/owmx-3.0/article-list.ftl
src/main/resources/skins/owmx-3.0/article-list.ftl
+1
-1
src/main/resources/skins/owmx-3.0/article.ftl
src/main/resources/skins/owmx-3.0/article.ftl
+1
-1
src/main/resources/skins/owmx-3.0/side.ftl
src/main/resources/skins/owmx-3.0/side.ftl
+1
-1
src/main/resources/skins/timeline/article-list.ftl
src/main/resources/skins/timeline/article-list.ftl
+1
-5
src/main/resources/skins/timeline/article.ftl
src/main/resources/skins/timeline/article.ftl
+1
-5
src/main/resources/skins/timeline/dynamic.ftl
src/main/resources/skins/timeline/dynamic.ftl
+1
-5
src/main/resources/skins/timeline/index.ftl
src/main/resources/skins/timeline/index.ftl
+1
-5
src/main/resources/skins/timeline/js/timeline.js
src/main/resources/skins/timeline/js/timeline.js
+1
-1
src/main/resources/skins/timeline/js/timeline.min.js
src/main/resources/skins/timeline/js/timeline.min.js
+2
-2
src/main/resources/skins/tree-house/article-list.ftl
src/main/resources/skins/tree-house/article-list.ftl
+1
-1
src/main/resources/skins/tree-house/article.ftl
src/main/resources/skins/tree-house/article.ftl
+1
-1
src/main/resources/skins/tree-house/side.ftl
src/main/resources/skins/tree-house/side.ftl
+1
-1
src/main/resources/skins/yilia/article-list.ftl
src/main/resources/skins/yilia/article-list.ftl
+1
-3
src/main/resources/skins/yilia/article.ftl
src/main/resources/skins/yilia/article.ftl
+1
-3
src/main/resources/skins/yilia/dynamic.ftl
src/main/resources/skins/yilia/dynamic.ftl
+1
-1
No files found.
src/main/resources/common-template/label.ftl
View file @
b145ac62
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
-->
<script src="https://cdn.jsdelivr.net/npm/uvstat@v1.0.
5
/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/uvstat@v1.0.
6
/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vcmt@v1.0.4/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vcmt@v1.0.4/dist/index.min.js"></script>
<script>
<script>
var Label = {
var Label = {
...
...
src/main/resources/js/admin/admin.min.js
View file @
b145ac62
...
@@ -3,8 +3,8 @@ admin.editors={};var SoloEditor=function(e){this.conf=e,this.init()};$.extend(So
...
@@ -3,8 +3,8 @@ admin.editors={};var SoloEditor=function(e){this.conf=e,this.init()};$.extend(So
var
TablePaginate
=
function
(
a
){
this
.
id
=
a
,
this
.
currentPage
=
1
};
$
.
extend
(
TablePaginate
.
prototype
,{
buildTable
:
function
(
a
,
t
){
var
e
=
{
colModel
:
a
,
noDataTip
:
Label
.
noDataLabel
};
t
||
(
e
.
expendRow
=
{
index
:
"
expendRow
"
}),
$
(
"
#
"
+
this
.
id
+
"
Table
"
).
table
(
e
)},
initPagination
:
function
(){
var
a
=
this
.
id
;
$
(
"
#
"
+
a
+
"
Pagination
"
).
paginate
({
bind
:
function
(
a
,
t
){
t
?
$
(
"
#tipMsg
"
).
text
(
t
):
admin
.
setHashByPage
(
a
)},
currentPage
:
1
,
errorMessage
:
Label
.
inputErrorLabel
,
nextPageText
:
"
>
"
,
previousPageText
:
"
<
"
,
goText
:
Label
.
gotoLabel
,
type
:
"
custom
"
,
custom
:[
1
],
pageCount
:
1
})},
initCommentsDialog
:
function
(){
var
a
=
this
;
$
(
"
#
"
+
this
.
id
+
"
Comments
"
).
dialog
({
modal
:
!
0
,
hideFooter
:
!
0
,
close
:
function
(){
return
admin
[
a
.
id
+
"
List
"
].
getList
(
a
.
currentPage
),
!
0
}})},
updateTablePagination
:
function
(
a
,
t
,
e
){
if
((
t
=
parseInt
(
t
))
>
e
.
paginationPageCount
&&
t
>
1
)
return
$
(
"
#tipMsg
"
).
text
(
Label
.
pageLabel
+
t
+
Label
.
notFoundLabel
),
void
$
(
"
#loadMsg
"
).
text
(
""
);
$
(
"
#
"
+
this
.
id
+
"
Table
"
).
table
(
"
update
"
,{
data
:[{
groupName
:
"
all
"
,
groupData
:
a
}]}),
0
===
e
.
paginationPageCount
&&
(
e
.
paginationPageCount
=
1
),
$
(
"
#
"
+
this
.
id
+
"
Pagination
"
).
paginate
(
"
update
"
,{
pageCount
:
e
.
paginationPageCount
,
currentPage
:
t
,
custom
:
e
.
paginationPageNums
}),
this
.
currentPage
=
t
}});
var
TablePaginate
=
function
(
a
){
this
.
id
=
a
,
this
.
currentPage
=
1
};
$
.
extend
(
TablePaginate
.
prototype
,{
buildTable
:
function
(
a
,
t
){
var
e
=
{
colModel
:
a
,
noDataTip
:
Label
.
noDataLabel
};
t
||
(
e
.
expendRow
=
{
index
:
"
expendRow
"
}),
$
(
"
#
"
+
this
.
id
+
"
Table
"
).
table
(
e
)},
initPagination
:
function
(){
var
a
=
this
.
id
;
$
(
"
#
"
+
a
+
"
Pagination
"
).
paginate
({
bind
:
function
(
a
,
t
){
t
?
$
(
"
#tipMsg
"
).
text
(
t
):
admin
.
setHashByPage
(
a
)},
currentPage
:
1
,
errorMessage
:
Label
.
inputErrorLabel
,
nextPageText
:
"
>
"
,
previousPageText
:
"
<
"
,
goText
:
Label
.
gotoLabel
,
type
:
"
custom
"
,
custom
:[
1
],
pageCount
:
1
})},
initCommentsDialog
:
function
(){
var
a
=
this
;
$
(
"
#
"
+
this
.
id
+
"
Comments
"
).
dialog
({
modal
:
!
0
,
hideFooter
:
!
0
,
close
:
function
(){
return
admin
[
a
.
id
+
"
List
"
].
getList
(
a
.
currentPage
),
!
0
}})},
updateTablePagination
:
function
(
a
,
t
,
e
){
if
((
t
=
parseInt
(
t
))
>
e
.
paginationPageCount
&&
t
>
1
)
return
$
(
"
#tipMsg
"
).
text
(
Label
.
pageLabel
+
t
+
Label
.
notFoundLabel
),
void
$
(
"
#loadMsg
"
).
text
(
""
);
$
(
"
#
"
+
this
.
id
+
"
Table
"
).
table
(
"
update
"
,{
data
:[{
groupName
:
"
all
"
,
groupData
:
a
}]}),
0
===
e
.
paginationPageCount
&&
(
e
.
paginationPageCount
=
1
),
$
(
"
#
"
+
this
.
id
+
"
Pagination
"
).
paginate
(
"
update
"
,{
pageCount
:
e
.
paginationPageCount
,
currentPage
:
t
,
custom
:
e
.
paginationPageNums
}),
this
.
currentPage
=
t
}});
admin
.
article
=
{
isConfirm
:
!
0
,
status
:{
id
:
void
0
,
isArticle
:
void
0
},
content
:
""
,
get
:
function
(
t
,
e
){
this
.
status
.
id
=
t
,
this
.
status
.
isArticle
=
e
,
admin
.
selectTab
(
"
article/article
"
)},
getAndSet
:
function
(){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
+
admin
.
article
.
status
.
id
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
$
(
"
#title
"
).
val
(
t
.
article
.
articleTitle
),
admin
.
editors
.
articleEditor
.
setContent
(
t
.
article
.
articleContent
),
admin
.
editors
.
abstractEditor
.
setContent
(
t
.
article
.
articleAbstract
),
admin
.
article
.
content
=
admin
.
editors
.
articleEditor
.
getContent
();
for
(
var
i
=
t
.
article
.
articleTags
,
a
=
""
,
l
=
0
;
l
<
i
.
length
;
l
++
)
0
===
l
?
a
=
i
[
l
].
tagTitle
:
a
+=
"
,
"
+
i
[
l
].
tagTitle
;
$
(
"
#tag
"
).
val
(
a
),
$
(
"
#permalink
"
).
val
(
t
.
article
.
articlePermalink
),
$
(
"
#viewPwd
"
).
val
(
t
.
article
.
articleViewPwd
),
$
(
"
#articleCommentable
"
).
prop
(
"
checked
"
,
t
.
article
.
articleCommentable
);
var
s
=
t
.
article
.
signs
;
$
(
"
.signs button
"
).
each
((
function
(
e
){
parseInt
(
t
.
article
.
articleSignId
)
===
parseInt
(
s
[
e
].
oId
)?
$
(
"
#articleSign
"
+
s
[
e
].
oId
).
addClass
(
"
selected
"
):
$
(
"
#articleSign
"
+
s
[
e
].
oId
).
removeClass
(
"
selected
"
)})),
admin
.
article
.
setStatus
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
del
:
function
(
t
,
e
,
i
){
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
articleLabel
+
'
"
'
+
Util
.
htmlDecode
(
i
)
+
'
"?
'
)
&&
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
+
t
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
t
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
)
if
(
2
===
document
.
querySelectorAll
(
"
tr
"
).
length
){
const
t
=
Math
.
max
(
admin
[
e
+
"
List
"
].
tablePagination
.
currentPage
-
1
,
1
);
admin
[
e
+
"
List
"
].
getList
(
t
),
admin
.
setHashByPage
(
t
)}
else
admin
[
e
+
"
List
"
].
getList
(
admin
[
e
+
"
List
"
].
tablePagination
.
currentPage
);
else
$
(
"
#loadMsg
"
).
text
(
""
)}}))},
add
:
function
(
t
){
if
(
admin
.
article
.
validate
()){
var
e
=
this
;
e
.
_addDisabled
(),
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
""
;
$
(
"
.signs button
"
).
each
((
function
(){
"
selected
"
===
this
.
className
&&
(
i
=
this
.
id
.
substr
(
this
.
id
.
length
-
1
,
1
))}));
var
a
=
admin
.
editors
.
articleEditor
.
getContent
(),
l
=
admin
.
editors
.
abstractEditor
.
getContent
();
if
(
$
(
"
#articleThumbnail
"
).
prop
(
"
checked
"
)){
var
s
=
$
(
"
.thumbnail__img
"
).
css
(
"
background-image
"
);
a
=
"
.
replace
(
"
w/768
"
,
"
w/960
"
).
replace
(
"
h/432
"
,
"
h/540
"
)
+
"
)
\n\n
"
+
a
}
var
r
=
{
article
:{
articleTitle
:
$
(
"
#title
"
).
val
(),
articleContent
:
a
,
articleAbstract
:
l
,
articleTags
:
this
.
trimUniqueArray
(
$
(
"
#tag
"
).
val
()).
toString
(),
articlePermalink
:
$
(
"
#permalink
"
).
val
(),
articleStatus
:
t
,
articleSignId
:
i
,
postToCommunity
:
$
(
"
#postToCommunity
"
).
prop
(
"
checked
"
),
articleCommentable
:
$
(
"
#articleCommentable
"
).
prop
(
"
checked
"
),
articleViewPwd
:
$
(
"
#viewPwd
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
,
type
:
"
POST
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
r
),
success
:
function
(
e
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
&&
(
admin
.
article
.
status
.
id
=
void
0
,
0
===
t
?
admin
.
selectTab
(
"
article/article-list
"
):
admin
.
selectTab
(
"
article/draft-list
"
),
admin
.
article
.
isConfirm
=!
1
)},
complete
:
function
(
t
,
i
){
e
.
_removeDisabled
(),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
update
:
function
(
t
){
if
(
admin
.
article
.
validate
()){
var
e
=
this
;
e
.
_addDisabled
(),
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
""
;
$
(
"
.signs button
"
).
each
((
function
(){
"
selected
"
===
this
.
className
&&
(
i
=
this
.
id
.
substr
(
this
.
id
.
length
-
1
,
1
))}));
var
a
=
admin
.
editors
.
articleEditor
.
getContent
(),
l
=
admin
.
editors
.
abstractEditor
.
getContent
();
if
(
$
(
"
#articleThumbnail
"
).
prop
(
"
checked
"
)){
var
s
=
$
(
"
.thumbnail__img
"
).
css
(
"
background-image
"
);
a
=
"
.
replace
(
"
w/768
"
,
"
w/960
"
).
replace
(
"
h/432
"
,
"
h/540
"
)
+
"
)
\n\n
"
+
a
}
var
r
=
{
article
:{
oId
:
this
.
status
.
id
,
articleTitle
:
$
(
"
#title
"
).
val
(),
articleContent
:
a
,
articleAbstract
:
l
,
articleTags
:
this
.
trimUniqueArray
(
$
(
"
#tag
"
).
val
()).
toString
(),
articlePermalink
:
$
(
"
#permalink
"
).
val
(),
articleStatus
:
t
,
articleSignId
:
i
,
articleCommentable
:
$
(
"
#articleCommentable
"
).
prop
(
"
checked
"
),
articleViewPwd
:
$
(
"
#viewPwd
"
).
val
(),
postToCommunity
:
$
(
"
#postToCommunity
"
).
prop
(
"
checked
"
)}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
r
),
success
:
function
(
e
,
i
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
&&
(
0
===
t
?
admin
.
selectTab
(
"
article/article-list
"
):
admin
.
selectTab
(
"
article/draft-list
"
),
$
(
"
#tipMsg
"
).
text
(
Label
.
updateSuccLabel
),
admin
.
article
.
status
.
id
=
void
0
,
admin
.
article
.
isConfirm
=!
1
)},
complete
:
function
(
t
,
i
){
e
.
_removeDisabled
(),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
setStatus
:
function
(){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tags
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
if
(
!
(
0
>=
t
.
tags
.
length
)){
$
(
"
#tagCheckboxPanel>span
"
).
remove
(
""
);
for
(
var
i
=
""
,
a
=
0
;
a
<
t
.
tags
.
length
;
a
++
)
i
+=
"
<span>
"
+
t
.
tags
[
a
].
tagTitle
+
"
</span>
"
;
$
(
"
#tagCheckboxPanel
"
).
html
(
i
+
'
<div class="fn__clear"></div>
'
),
$
(
"
#loadMsg
"
).
text
(
""
)}}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}),
this
.
status
?
this
.
status
.
isArticle
?(
$
(
"
#unSubmitArticle
"
).
show
(),
$
(
"
#saveArticle
"
).
hide
(),
$
(
"
#submitArticle
"
).
show
()):(
$
(
"
#submitArticle
"
).
show
(),
$
(
"
#unSubmitArticle
"
).
hide
(),
$
(
"
#saveArticle
"
).
show
()):(
$
(
"
#submitArticle
"
).
show
(),
$
(
"
#unSubmitArticle
"
).
hide
(),
$
(
"
#saveArticle
"
).
show
(),
$
(
"
#postToCommunityPanel
"
).
show
())},
clear
:
function
(){
this
.
status
=
{
id
:
void
0
,
isArticle
:
void
0
},
this
.
setStatus
(),
$
(
"
#title
"
).
val
(
""
),
admin
.
editors
.
articleEditor
.
setContent
(
""
),
admin
.
editors
.
abstractEditor
.
setContent
(
""
),
$
(
"
#tag
"
).
val
(
""
),
$
(
"
#tagCheckboxPanel
"
).
hide
().
find
(
"
span
"
).
removeClass
(
"
selected
"
),
$
(
"
#permalink
"
).
val
(
""
),
$
(
"
#articleCammentable
"
).
prop
(
"
checked
"
,
!
0
),
$
(
"
#postToCommunity
"
).
prop
(
"
checked
"
,
!
1
),
$
(
"
.signs button
"
).
each
((
function
(
t
){
this
.
className
=
0
===
t
?
"
selected
"
:
""
})),
$
(
"
#articleThumbnail
"
).
prop
(
"
checked
"
)
&&
$
(
"
#articleThumbnail
"
).
click
()},
init
:
function
(
t
){
$
(
"
.signs button
"
).
click
((
function
(
t
){
$
(
"
.signs button
"
).
removeClass
(
"
selected
"
),
$
(
this
).
addClass
(
"
selected
"
)})),
$
(
"
#tipMsg
"
).
text
(
Label
.
uploadMsg
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tags
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
if
(
!
(
0
>=
t
.
tags
.
length
)){
for
(
var
i
=
[],
a
=
0
;
a
<
t
.
tags
.
length
;
a
++
)
i
.
push
(
t
.
tags
[
a
].
tagTitle
);
$
(
"
#tag
"
).
completed
({
height
:
160
,
buttonText
:
Label
.
selectLabel
,
data
:
i
}),
$
(
"
#loadMsg
"
).
text
(
""
)}}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}),
$
(
"
#submitArticle
"
).
click
((
function
(){
admin
.
article
.
status
.
id
?
admin
.
article
.
update
(
0
):
admin
.
article
.
add
(
0
)})),
$
(
"
#saveArticle
"
).
click
((
function
(){
admin
.
article
.
status
.
id
?
admin
.
article
.
update
(
admin
.
article
.
status
.
isArticle
?
0
:
1
):
admin
.
article
.
add
(
1
)})),
admin
.
editors
.
articleEditor
=
new
SoloEditor
({
id
:
"
articleContent
"
,
height
:
500
,
fun
:
t
,
previewMode
:
"
both
"
,
resize
:
!
1
,
typewriterMode
:
!
0
}),
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
id
:
"
abstract
"
,
height
:
200
,
previewMode
:
"
editor
"
,
resize
:
!
0
,
typewriterMode
:
!
1
}),
$
(
"
#articleThumbnailBtn
"
).
click
((
function
(){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/thumbs?n=1&w=768&h=432
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
t
.
sc
?
$
(
"
#articleThumbnailBtn
"
).
prev
().
css
(
"
background-image
"
,
"
url(
"
+
t
.
data
[
0
]
+
"
)
"
):
$
(
"
#loadMsg
"
).
text
(
t
.
msg
)}})})).
click
()},
validate
:
function
(){
var
t
=
admin
.
editors
.
articleEditor
.
getContent
();
if
(
""
===
$
(
"
#title
"
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
titleEmptyLabel
),
$
(
"
#title
"
).
focus
().
val
(
""
);
else
{
if
(
""
!==
t
.
replace
(
/
\s
/g
,
""
))
return
!
0
;
$
(
"
#tipMsg
"
).
text
(
Label
.
contentEmptyLabel
)}
return
!
1
},
unPublish
:
function
(){
var
t
=
this
;
t
.
_addDisabled
(),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/unpublish/
"
+
admin
.
article
.
status
.
id
,
type
:
"
PUT
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
&&
(
admin
.
selectTab
(
"
article/draft-list
"
),
admin
.
article
.
status
.
id
=
void
0
,
admin
.
article
.
isConfirm
=!
1
)},
complete
:
function
(
e
,
i
){
t
.
_removeDisabled
(),
$
(
"
#loadMsg
"
).
text
(
""
)}})},
trimUniqueArray
:
function
(
t
){
for
(
var
e
=
(
t
=
t
.
toString
()).
split
(
"
,
"
),
i
=
0
;
i
<
e
.
length
;
i
++
)
e
[
i
]
=
e
[
i
].
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
),
""
===
e
[
i
]
&&
(
e
.
splice
(
i
,
1
),
i
--
);
return
$
.
unique
(
e
).
toString
()},
prePost
:
function
(){
if
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
admin
.
article
.
content
=
""
,
admin
.
editors
.
articleEditor
.
getContent
){
var
t
=
admin
.
editors
.
articleEditor
.
getContent
();
"
#article/article
"
===
window
.
location
.
hash
&&
""
!==
t
.
replace
(
/
\s
/g
,
""
)
&&
confirm
(
Label
.
editorPostLabel
)
&&
admin
.
article
.
clear
(),
$
(
"
#tipMsg
"
).
text
(
""
),
$
(
"
#loadMsg
"
).
text
(
""
)}},
_addDisabled
:
function
(){
$
(
"
#unSubmitArticle
"
).
attr
(
"
disabled
"
,
"
disabled
"
),
$
(
"
#saveArticle
"
).
attr
(
"
disabled
"
,
"
disabled
"
),
$
(
"
#submitArticle
"
).
attr
(
"
disabled
"
,
"
disabled
"
)},
_removeDisabled
:
function
(){
$
(
"
#unSubmitArticle
"
).
removeAttr
(
"
disabled
"
),
$
(
"
#saveArticle
"
).
removeAttr
(
"
disabled
"
),
$
(
"
#submitArticle
"
).
removeAttr
(
"
disabled
"
)}},
admin
.
register
.
article
=
{
obj
:
admin
.
article
,
init
:
admin
.
article
.
init
,
refresh
:
function
(){
admin
.
editors
.
abstractEditor
.
setContent
(
""
),
admin
.
editors
.
articleEditor
.
setContent
(
""
),
$
(
"
#loadMsg
"
).
text
(
""
),
$
(
"
#tipMsg
"
).
text
(
Label
.
uploadMsg
)}};
admin
.
article
=
{
isConfirm
:
!
0
,
status
:{
id
:
void
0
,
isArticle
:
void
0
},
content
:
""
,
get
:
function
(
t
,
e
){
this
.
status
.
id
=
t
,
this
.
status
.
isArticle
=
e
,
admin
.
selectTab
(
"
article/article
"
)},
getAndSet
:
function
(){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
+
admin
.
article
.
status
.
id
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
$
(
"
#title
"
).
val
(
t
.
article
.
articleTitle
),
admin
.
editors
.
articleEditor
.
setContent
(
t
.
article
.
articleContent
),
admin
.
editors
.
abstractEditor
.
setContent
(
t
.
article
.
articleAbstract
),
admin
.
article
.
content
=
admin
.
editors
.
articleEditor
.
getContent
();
for
(
var
i
=
t
.
article
.
articleTags
,
a
=
""
,
l
=
0
;
l
<
i
.
length
;
l
++
)
0
===
l
?
a
=
i
[
l
].
tagTitle
:
a
+=
"
,
"
+
i
[
l
].
tagTitle
;
$
(
"
#tag
"
).
val
(
a
),
$
(
"
#permalink
"
).
val
(
t
.
article
.
articlePermalink
),
$
(
"
#viewPwd
"
).
val
(
t
.
article
.
articleViewPwd
),
$
(
"
#articleCommentable
"
).
prop
(
"
checked
"
,
t
.
article
.
articleCommentable
);
var
s
=
t
.
article
.
signs
;
$
(
"
.signs button
"
).
each
((
function
(
e
){
parseInt
(
t
.
article
.
articleSignId
)
===
parseInt
(
s
[
e
].
oId
)?
$
(
"
#articleSign
"
+
s
[
e
].
oId
).
addClass
(
"
selected
"
):
$
(
"
#articleSign
"
+
s
[
e
].
oId
).
removeClass
(
"
selected
"
)})),
admin
.
article
.
setStatus
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
del
:
function
(
t
,
e
,
i
){
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
articleLabel
+
'
"
'
+
Util
.
htmlDecode
(
i
)
+
'
"?
'
)
&&
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
+
t
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
t
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
)
if
(
2
===
document
.
querySelectorAll
(
"
tr
"
).
length
){
const
t
=
Math
.
max
(
admin
[
e
+
"
List
"
].
tablePagination
.
currentPage
-
1
,
1
);
admin
[
e
+
"
List
"
].
getList
(
t
),
admin
.
setHashByPage
(
t
)}
else
admin
[
e
+
"
List
"
].
getList
(
admin
[
e
+
"
List
"
].
tablePagination
.
currentPage
);
else
$
(
"
#loadMsg
"
).
text
(
""
)}}))},
add
:
function
(
t
){
if
(
admin
.
article
.
validate
()){
var
e
=
this
;
e
.
_addDisabled
(),
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
""
;
$
(
"
.signs button
"
).
each
((
function
(){
"
selected
"
===
this
.
className
&&
(
i
=
this
.
id
.
substr
(
this
.
id
.
length
-
1
,
1
))}));
var
a
=
admin
.
editors
.
articleEditor
.
getContent
(),
l
=
admin
.
editors
.
abstractEditor
.
getContent
();
if
(
$
(
"
#articleThumbnail
"
).
prop
(
"
checked
"
)){
var
s
=
$
(
"
.thumbnail__img
"
).
css
(
"
background-image
"
);
a
=
"
.
replace
(
"
w/768
"
,
"
w/960
"
).
replace
(
"
h/432
"
,
"
h/540
"
)
+
"
)
\n\n
"
+
a
}
var
r
=
{
article
:{
articleTitle
:
$
(
"
#title
"
).
val
(),
articleContent
:
a
,
articleAbstract
:
l
,
articleTags
:
this
.
trimUniqueArray
(
$
(
"
#tag
"
).
val
()).
toString
(),
articlePermalink
:
$
(
"
#permalink
"
).
val
(),
articleStatus
:
t
,
articleSignId
:
i
,
postToCommunity
:
$
(
"
#postToCommunity
"
).
prop
(
"
checked
"
),
articleCommentable
:
$
(
"
#articleCommentable
"
).
prop
(
"
checked
"
),
articleViewPwd
:
$
(
"
#viewPwd
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
,
type
:
"
POST
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
r
),
success
:
function
(
e
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
&&
(
admin
.
article
.
status
.
id
=
void
0
,
0
===
t
?
admin
.
selectTab
(
"
article/article-list
"
):
admin
.
selectTab
(
"
article/draft-list
"
),
admin
.
article
.
isConfirm
=!
1
)},
complete
:
function
(
t
,
i
){
e
.
_removeDisabled
(),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
update
:
function
(
t
){
if
(
admin
.
article
.
validate
()){
var
e
=
this
;
e
.
_addDisabled
(),
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
""
;
$
(
"
.signs button
"
).
each
((
function
(){
"
selected
"
===
this
.
className
&&
(
i
=
this
.
id
.
substr
(
this
.
id
.
length
-
1
,
1
))}));
var
a
=
admin
.
editors
.
articleEditor
.
getContent
(),
l
=
admin
.
editors
.
abstractEditor
.
getContent
();
if
(
$
(
"
#articleThumbnail
"
).
prop
(
"
checked
"
)){
var
s
=
$
(
"
.thumbnail__img
"
).
css
(
"
background-image
"
);
a
=
"
.
replace
(
"
w/768
"
,
"
w/960
"
).
replace
(
"
h/432
"
,
"
h/540
"
)
+
"
)
\n\n
"
+
a
}
var
r
=
{
article
:{
oId
:
this
.
status
.
id
,
articleTitle
:
$
(
"
#title
"
).
val
(),
articleContent
:
a
,
articleAbstract
:
l
,
articleTags
:
this
.
trimUniqueArray
(
$
(
"
#tag
"
).
val
()).
toString
(),
articlePermalink
:
$
(
"
#permalink
"
).
val
(),
articleStatus
:
t
,
articleSignId
:
i
,
articleCommentable
:
$
(
"
#articleCommentable
"
).
prop
(
"
checked
"
),
articleViewPwd
:
$
(
"
#viewPwd
"
).
val
(),
postToCommunity
:
$
(
"
#postToCommunity
"
).
prop
(
"
checked
"
)}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
r
),
success
:
function
(
e
,
i
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
&&
(
0
===
t
?
admin
.
selectTab
(
"
article/article-list
"
):
admin
.
selectTab
(
"
article/draft-list
"
),
$
(
"
#tipMsg
"
).
text
(
Label
.
updateSuccLabel
),
admin
.
article
.
status
.
id
=
void
0
,
admin
.
article
.
isConfirm
=!
1
)},
complete
:
function
(
t
,
i
){
e
.
_removeDisabled
(),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
setStatus
:
function
(){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tags
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
if
(
!
(
0
>=
t
.
tags
.
length
)){
$
(
"
#tagCheckboxPanel>span
"
).
remove
(
""
);
for
(
var
i
=
""
,
a
=
0
;
a
<
t
.
tags
.
length
;
a
++
)
i
+=
"
<span>
"
+
t
.
tags
[
a
].
tagTitle
+
"
</span>
"
;
$
(
"
#tagCheckboxPanel
"
).
html
(
i
+
'
<div class="fn__clear"></div>
'
),
$
(
"
#loadMsg
"
).
text
(
""
)}}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}),
this
.
status
?
this
.
status
.
isArticle
?(
$
(
"
#unSubmitArticle
"
).
show
(),
$
(
"
#saveArticle
"
).
hide
(),
$
(
"
#submitArticle
"
).
show
()):(
$
(
"
#submitArticle
"
).
show
(),
$
(
"
#unSubmitArticle
"
).
hide
(),
$
(
"
#saveArticle
"
).
show
()):(
$
(
"
#submitArticle
"
).
show
(),
$
(
"
#unSubmitArticle
"
).
hide
(),
$
(
"
#saveArticle
"
).
show
(),
$
(
"
#postToCommunityPanel
"
).
show
())},
clear
:
function
(){
this
.
status
=
{
id
:
void
0
,
isArticle
:
void
0
},
this
.
setStatus
(),
$
(
"
#title
"
).
val
(
""
),
admin
.
editors
.
articleEditor
.
setContent
(
""
),
admin
.
editors
.
abstractEditor
.
setContent
(
""
),
$
(
"
#tag
"
).
val
(
""
),
$
(
"
#tagCheckboxPanel
"
).
hide
().
find
(
"
span
"
).
removeClass
(
"
selected
"
),
$
(
"
#permalink
"
).
val
(
""
),
$
(
"
#articleCammentable
"
).
prop
(
"
checked
"
,
!
0
),
$
(
"
#postToCommunity
"
).
prop
(
"
checked
"
,
!
1
),
$
(
"
.signs button
"
).
each
((
function
(
t
){
this
.
className
=
0
===
t
?
"
selected
"
:
""
})),
$
(
"
#articleThumbnail
"
).
prop
(
"
checked
"
)
&&
$
(
"
#articleThumbnail
"
).
click
()},
init
:
function
(
t
){
$
(
"
.signs button
"
).
click
((
function
(
t
){
$
(
"
.signs button
"
).
removeClass
(
"
selected
"
),
$
(
this
).
addClass
(
"
selected
"
)})),
$
(
"
#tipMsg
"
).
text
(
Label
.
uploadMsg
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tags
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
if
(
!
(
0
>=
t
.
tags
.
length
)){
for
(
var
i
=
[],
a
=
0
;
a
<
t
.
tags
.
length
;
a
++
)
i
.
push
(
t
.
tags
[
a
].
tagTitle
);
$
(
"
#tag
"
).
completed
({
height
:
160
,
buttonText
:
Label
.
selectLabel
,
data
:
i
}),
$
(
"
#loadMsg
"
).
text
(
""
)}}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}),
$
(
"
#submitArticle
"
).
click
((
function
(){
admin
.
article
.
status
.
id
?
admin
.
article
.
update
(
0
):
admin
.
article
.
add
(
0
)})),
$
(
"
#saveArticle
"
).
click
((
function
(){
admin
.
article
.
status
.
id
?
admin
.
article
.
update
(
admin
.
article
.
status
.
isArticle
?
0
:
1
):
admin
.
article
.
add
(
1
)})),
admin
.
editors
.
articleEditor
=
new
SoloEditor
({
id
:
"
articleContent
"
,
height
:
500
,
fun
:
t
,
previewMode
:
"
both
"
,
resize
:
!
1
,
typewriterMode
:
!
0
}),
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
id
:
"
abstract
"
,
height
:
200
,
previewMode
:
"
editor
"
,
resize
:
!
0
,
typewriterMode
:
!
1
}),
$
(
"
#articleThumbnailBtn
"
).
click
((
function
(){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/thumbs?n=1&w=768&h=432
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
t
.
sc
?
$
(
"
#articleThumbnailBtn
"
).
prev
().
css
(
"
background-image
"
,
"
url(
"
+
t
.
data
[
0
]
+
"
)
"
):
$
(
"
#loadMsg
"
).
text
(
t
.
msg
)}})})).
click
()},
validate
:
function
(){
var
t
=
admin
.
editors
.
articleEditor
.
getContent
();
if
(
""
===
$
(
"
#title
"
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
titleEmptyLabel
),
$
(
"
#title
"
).
focus
().
val
(
""
);
else
{
if
(
""
!==
t
.
replace
(
/
\s
/g
,
""
))
return
!
0
;
$
(
"
#tipMsg
"
).
text
(
Label
.
contentEmptyLabel
)}
return
!
1
},
unPublish
:
function
(){
var
t
=
this
;
t
.
_addDisabled
(),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/unpublish/
"
+
admin
.
article
.
status
.
id
,
type
:
"
PUT
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
&&
(
admin
.
selectTab
(
"
article/draft-list
"
),
admin
.
article
.
status
.
id
=
void
0
,
admin
.
article
.
isConfirm
=!
1
)},
complete
:
function
(
e
,
i
){
t
.
_removeDisabled
(),
$
(
"
#loadMsg
"
).
text
(
""
)}})},
trimUniqueArray
:
function
(
t
){
for
(
var
e
=
(
t
=
t
.
toString
()).
split
(
"
,
"
),
i
=
0
;
i
<
e
.
length
;
i
++
)
e
[
i
]
=
e
[
i
].
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
),
""
===
e
[
i
]
&&
(
e
.
splice
(
i
,
1
),
i
--
);
return
$
.
unique
(
e
).
toString
()},
prePost
:
function
(){
if
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
admin
.
article
.
content
=
""
,
admin
.
editors
.
articleEditor
.
getContent
){
var
t
=
admin
.
editors
.
articleEditor
.
getContent
();
"
#article/article
"
===
window
.
location
.
hash
&&
""
!==
t
.
replace
(
/
\s
/g
,
""
)
&&
confirm
(
Label
.
editorPostLabel
)
&&
admin
.
article
.
clear
(),
$
(
"
#tipMsg
"
).
text
(
""
),
$
(
"
#loadMsg
"
).
text
(
""
)}},
_addDisabled
:
function
(){
$
(
"
#unSubmitArticle
"
).
attr
(
"
disabled
"
,
"
disabled
"
),
$
(
"
#saveArticle
"
).
attr
(
"
disabled
"
,
"
disabled
"
),
$
(
"
#submitArticle
"
).
attr
(
"
disabled
"
,
"
disabled
"
)},
_removeDisabled
:
function
(){
$
(
"
#unSubmitArticle
"
).
removeAttr
(
"
disabled
"
),
$
(
"
#saveArticle
"
).
removeAttr
(
"
disabled
"
),
$
(
"
#submitArticle
"
).
removeAttr
(
"
disabled
"
)}},
admin
.
register
.
article
=
{
obj
:
admin
.
article
,
init
:
admin
.
article
.
init
,
refresh
:
function
(){
admin
.
editors
.
abstractEditor
.
setContent
(
""
),
admin
.
editors
.
articleEditor
.
setContent
(
""
),
$
(
"
#loadMsg
"
).
text
(
""
),
$
(
"
#tipMsg
"
).
text
(
Label
.
uploadMsg
)}};
admin
.
comment
=
{
open
:
function
(
e
,
t
){
this
.
getList
(
e
,
t
),
$
(
"
#
"
+
t
+
"
Comments
"
).
dialog
(
"
open
"
)},
getList
:
function
(
e
,
t
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
(
"
#
"
+
t
+
"
Comments
"
).
html
(
""
);
var
a
=
"
article
"
;
"
page
"
===
t
&&
(
a
=
"
page
"
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/comments/
"
+
a
+
"
/
"
+
e
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
a
,
n
){
if
(
$
(
"
#tipMsg
"
).
text
(
a
.
msg
),
a
.
sc
){
for
(
var
m
=
a
.
comments
,
s
=
""
,
o
=
0
;
o
<
m
.
length
;
o
++
){
var
l
=
"
<a target='_blank' href='
"
+
m
[
o
].
commentURL
+
"
'>
"
,
c
=
m
[
o
].
commentContent
;
"
http://
"
===
m
[
o
].
commentURL
&&
(
l
=
"
<a target='_blank'>
"
),
s
+=
"
<div class='comment-title'><span class='fn__left'>
"
+
l
+
m
[
o
].
commentName
+
"
</a>
"
,
m
[
o
].
commentOriginalCommentName
&&
(
s
+=
"
@
"
+
m
[
o
].
commentOriginalCommentName
),
s
+=
"
</span><a title='
"
+
Label
.
removeLabel
+
"
' class='fn__right fn__pointer' href=
\"
javascript:admin.comment.del('
"
+
m
[
o
].
oId
+
"
', '
"
+
t
+
"
', '
"
+
e
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a><span class='fn__right'>
"
+
$
.
bowknot
.
getDate
(
m
[
o
].
commentTime
)
+
"
</span><div class='fn__clear'></div></div><div class='vditor-reset'>
"
+
c
+
"
</div>
"
}
""
===
s
&&
(
s
=
Label
.
noCommentLabel
),
$
(
"
#
"
+
t
+
"
Comments
"
).
html
(
s
),
Util
.
parseMarkdown
(),
Util
.
parseLanguage
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
del
:
function
(
e
,
t
,
a
){
if
(
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
commentLabel
+
"
?
"
)){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
var
n
=
"
article
"
;
"
page
"
===
t
&&
(
n
=
"
page
"
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/
"
+
n
+
"
/comment/
"
+
e
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
n
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
?(
admin
.
comment
.
getList
(
a
,
t
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}}};
admin
.
comment
=
{
open
:
function
(
e
,
t
){
this
.
getList
(
e
,
t
),
$
(
"
#
"
+
t
+
"
Comments
"
).
dialog
(
"
open
"
)},
getList
:
function
(
e
,
t
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
(
"
#
"
+
t
+
"
Comments
"
).
html
(
""
);
var
a
=
"
article
"
;
"
page
"
===
t
&&
(
a
=
"
page
"
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/comments/
"
+
a
+
"
/
"
+
e
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
a
,
n
){
if
(
$
(
"
#tipMsg
"
).
text
(
a
.
msg
),
a
.
sc
){
for
(
var
m
=
a
.
comments
,
s
=
""
,
o
=
0
;
o
<
m
.
length
;
o
++
){
var
l
=
"
<a target='_blank' href='
"
+
m
[
o
].
commentURL
+
"
'>
"
,
c
=
m
[
o
].
commentContent
;
"
http://
"
===
m
[
o
].
commentURL
&&
(
l
=
"
<a target='_blank'>
"
),
s
+=
"
<div class='comment-title'><span class='fn__left'>
"
+
l
+
m
[
o
].
commentName
+
"
</a>
"
,
m
[
o
].
commentOriginalCommentName
&&
(
s
+=
"
@
"
+
m
[
o
].
commentOriginalCommentName
),
s
+=
"
</span><a title='
"
+
Label
.
removeLabel
+
"
' class='fn__right fn__pointer' href=
\"
javascript:admin.comment.del('
"
+
m
[
o
].
oId
+
"
', '
"
+
t
+
"
', '
"
+
e
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a><span class='fn__right'>
"
+
$
.
bowknot
.
getDate
(
m
[
o
].
commentTime
)
+
"
</span><div class='fn__clear'></div></div><div class='vditor-reset'>
"
+
c
+
"
</div>
"
}
""
===
s
&&
(
s
=
Label
.
noCommentLabel
),
$
(
"
#
"
+
t
+
"
Comments
"
).
html
(
s
),
Util
.
parseMarkdown
(),
Util
.
parseLanguage
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
del
:
function
(
e
,
t
,
a
){
if
(
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
commentLabel
+
"
?
"
)){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
var
n
=
"
article
"
;
"
page
"
===
t
&&
(
n
=
"
page
"
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/
"
+
n
+
"
/comment/
"
+
e
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
n
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
?(
admin
.
comment
.
getList
(
a
,
t
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}}};
admin
.
articleList
=
{
tablePagination
:
new
TablePaginate
(
"
article
"
),
init
:
function
(
t
){
this
.
tablePagination
.
buildTable
([{
text
:
Label
.
titleLabel
,
index
:
"
title
"
,
minWidth
:
110
,
style
:
"
padding-left: 12px;font-size:14px;
"
},{
text
:
Label
.
authorLabel
,
index
:
"
author
"
,
width
:
150
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
commentLabel
,
index
:
"
comments
"
,
width
:
80
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
viewLabel
,
width
:
60
,
index
:
"
articleViewCount
"
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
dateLabel
,
index
:
"
date
"
,
width
:
90
,
style
:
"
padding-left: 12px;
"
}]),
this
.
tablePagination
.
initPagination
(),
this
.
tablePagination
.
initCommentsDialog
(),
this
.
getList
(
t
);
var
e
=
this
;
$
(
"
#articleListBtn
"
).
click
((
function
(){
e
.
getList
(
t
)})),
$
(
"
#articleListInput
"
).
keypress
((
function
(
a
){
13
===
a
.
keyCode
&&
e
.
getList
(
t
)}))},
syncToHacpai
:
function
(
t
){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/push2rhy?id=
"
+
t
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
$
(
"
#tipMsg
"
).
text
(
Label
.
pushSuccLabel
)}})},
getList
:
function
(
t
){
var
e
=
this
;
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/articles/status/published/
"
+
t
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
+
"
?k=
"
+
$
(
"
#articleListInput
"
).
val
(),
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
a
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
a
.
msg
),
a
.
sc
){
for
(
var
l
=
a
.
articles
,
n
=
[],
c
=
0
;
c
<
l
.
length
;
c
++
){
n
[
c
]
=
{},
n
[
c
].
title
=
'
<a href="
'
+
Label
.
servePath
+
l
[
c
].
articlePermalink
+
"
\"
target='_blank' title='
"
+
l
[
c
].
articleTitle
+
"
' class='no-underline'>
"
+
l
[
c
].
articleTitle
+
"
</a><span class='table-tag'>
"
+
l
[
c
].
articleTags
+
"
</span>
"
,
n
[
c
].
date
=
$
.
bowknot
.
getDate
(
l
[
c
].
articleCreateTime
),
n
[
c
].
comments
=
l
[
c
].
articleCommentCount
,
n
[
c
].
articleViewCount
=
'
<span data-uvstaturl="
'
+
Label
.
servePath
+
l
[
c
].
articlePermalink
+
'
">
'
+
l
[
c
].
articleViewCount
+
"
</span>
"
,
n
[
c
].
author
=
l
[
c
].
authorName
;
var
s
=
l
[
c
].
articlePutTop
?
Label
.
cancelPutTopLabel
:
Label
.
putTopLabel
;
n
[
c
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.article.get('
"
+
l
[
c
].
oId
+
"
', true)
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
l
[
c
].
oId
+
"
', 'article', '
"
+
encodeURIComponent
(
l
[
c
].
articleTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.articleList.syncToHacpai('
"
+
l
[
c
].
oId
+
"
')
\"
>
"
+
Label
.
pushToHacpaiLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.articleList.popTop(this, '
"
+
l
[
c
].
oId
+
"
')
\"
>
"
+
s
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.comment.open('
"
+
l
[
c
].
oId
+
"
', 'article')
\"
>
"
+
Label
.
commentLabel
+
"
</a>
"
}
e
.
tablePagination
.
updateTablePagination
(
n
,
t
,
a
.
pagination
),
Util
.
uvstat
.
renderStat
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
popTop
:
function
(
t
,
e
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
a
=
$
(
t
),
i
=
"
canceltop
"
,
l
=
Label
.
putTopLabel
;
a
.
html
()
===
Label
.
putTopLabel
&&
(
i
=
"
puttop
"
,
l
=
Label
.
cancelPutTopLabel
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
+
i
+
"
/
"
+
e
,
type
:
"
PUT
"
,
cache
:
!
1
,
success
:
function
(
t
,
e
){
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
?(
a
.
html
(
l
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
article-list
"
]
=
{
obj
:
admin
.
articleList
,
init
:
admin
.
articleList
.
init
,
refresh
:
admin
.
articleList
.
getList
};
admin
.
articleList
=
{
tablePagination
:
new
TablePaginate
(
"
article
"
),
init
:
function
(
t
){
this
.
tablePagination
.
buildTable
([{
text
:
Label
.
titleLabel
,
index
:
"
title
"
,
minWidth
:
110
,
style
:
"
padding-left: 12px;font-size:14px;
"
},{
text
:
Label
.
authorLabel
,
index
:
"
author
"
,
width
:
150
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
commentLabel
,
index
:
"
comments
"
,
width
:
80
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
viewLabel
,
width
:
60
,
index
:
"
articleViewCount
"
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
dateLabel
,
index
:
"
date
"
,
width
:
90
,
style
:
"
padding-left: 12px;
"
}]),
this
.
tablePagination
.
initPagination
(),
this
.
tablePagination
.
initCommentsDialog
(),
this
.
getList
(
t
);
var
a
=
this
;
$
(
"
#articleListBtn
"
).
click
((
function
(){
a
.
getList
(
t
)})),
$
(
"
#articleListInput
"
).
keypress
((
function
(
e
){
13
===
e
.
keyCode
&&
a
.
getList
(
t
)}))},
syncToHacpai
:
function
(
t
){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/push2rhy?id=
"
+
t
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
a
){
$
(
"
#tipMsg
"
).
text
(
Label
.
pushSuccLabel
)}})},
getList
:
function
(
t
){
var
a
=
this
;
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/articles/status/published/
"
+
t
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
+
"
?k=
"
+
$
(
"
#articleListInput
"
).
val
(),
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
for
(
var
l
=
e
.
articles
,
n
=
[],
s
=
0
;
s
<
l
.
length
;
s
++
){
n
[
s
]
=
{},
n
[
s
].
title
=
'
<a href="
'
+
Label
.
servePath
+
l
[
s
].
articlePermalink
+
"
\"
target='_blank' title='
"
+
l
[
s
].
articleTitle
+
"
' class='no-underline'>
"
+
l
[
s
].
articleTitle
+
"
</a><span class='table-tag'>
"
+
l
[
s
].
articleTags
+
"
</span>
"
,
n
[
s
].
date
=
$
.
bowknot
.
getDate
(
l
[
s
].
articleCreateTime
),
n
[
s
].
comments
=
`<span data-uvstatcmt="
${
l
[
s
].
oId
}
">
${
l
[
s
].
articleCommentCount
}
</span>`
,
n
[
s
].
articleViewCount
=
'
<span data-uvstaturl="
'
+
Label
.
servePath
+
l
[
s
].
articlePermalink
+
'
">
'
+
l
[
s
].
articleViewCount
+
"
</span>
"
,
n
[
s
].
author
=
l
[
s
].
authorName
;
var
c
=
l
[
s
].
articlePutTop
?
Label
.
cancelPutTopLabel
:
Label
.
putTopLabel
;
n
[
s
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.article.get('
"
+
l
[
s
].
oId
+
"
', true)
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
l
[
s
].
oId
+
"
', 'article', '
"
+
encodeURIComponent
(
l
[
s
].
articleTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.articleList.syncToHacpai('
"
+
l
[
s
].
oId
+
"
')
\"
>
"
+
Label
.
pushToHacpaiLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.articleList.popTop(this, '
"
+
l
[
s
].
oId
+
"
')
\"
>
"
+
c
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.comment.open('
"
+
l
[
s
].
oId
+
"
', 'article')
\"
>
"
+
Label
.
commentLabel
+
"
</a>
"
}
a
.
tablePagination
.
updateTablePagination
(
n
,
t
,
e
.
pagination
),
Util
.
uvstat
.
renderStat
(),
Util
.
uvstat
.
renderCmtStat
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
popTop
:
function
(
t
,
a
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
e
=
$
(
t
),
i
=
"
canceltop
"
,
l
=
Label
.
putTopLabel
;
e
.
html
()
===
Label
.
putTopLabel
&&
(
i
=
"
puttop
"
,
l
=
Label
.
cancelPutTopLabel
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/article/
"
+
i
+
"
/
"
+
a
,
type
:
"
PUT
"
,
cache
:
!
1
,
success
:
function
(
t
,
a
){
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
?(
e
.
html
(
l
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
article-list
"
]
=
{
obj
:
admin
.
articleList
,
init
:
admin
.
articleList
.
init
,
refresh
:
admin
.
articleList
.
getList
};
admin
.
draftList
=
{
tablePagination
:
new
TablePaginate
(
"
draft
"
),
init
:
function
(
t
){
this
.
tablePagination
.
buildTable
([{
text
:
Label
.
titleLabel
,
index
:
"
title
"
,
minWidth
:
110
,
style
:
"
padding-left: 12px;font-size:14px;
"
},{
text
:
Label
.
authorLabel
,
index
:
"
author
"
,
width
:
150
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
commentLabel
,
index
:
"
comments
"
,
width
:
80
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
viewLabel
,
width
:
60
,
index
:
"
articleViewCount
"
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
dateLabel
,
index
:
"
date
"
,
width
:
90
,
style
:
"
padding-left: 12px;
"
}]),
this
.
tablePagination
.
initPagination
(),
this
.
tablePagination
.
initCommentsDialog
(),
this
.
getList
(
t
)},
getList
:
function
(
t
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
var
a
=
this
;
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/articles/status/unpublished/
"
+
t
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
for
(
var
l
=
e
.
articles
,
n
=
[],
s
=
0
;
s
<
l
.
length
;
s
++
)
n
[
s
]
=
{},
n
[
s
].
tags
=
l
[
s
].
articleTags
,
n
[
s
].
date
=
$
.
bowknot
.
getDate
(
l
[
s
].
articleCreateTime
),
n
[
s
].
comments
=
l
[
s
].
articleCommentCount
,
n
[
s
].
articleViewCount
=
'
<span data-uvstaturl="
'
+
Label
.
servePath
+
l
[
s
].
articlePermalink
+
'
">
'
+
l
[
s
].
articleViewCount
+
"
</span>
"
,
n
[
s
].
author
=
l
[
s
].
authorName
,
n
[
s
].
title
=
"
<a class='no-underline' href='
"
+
Label
.
servePath
+
l
[
s
].
articlePermalink
+
"
' target='_blank'>
"
+
l
[
s
].
articleTitle
+
"
</a><span class='table-tag'>
"
+
l
[
s
].
articleTags
+
"
</span>
"
,
n
[
s
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.article.get('
"
+
l
[
s
].
oId
+
"
', false);
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
l
[
s
].
oId
+
"
', 'draft', '
"
+
encodeURIComponent
(
l
[
s
].
articleTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.comment.open('
"
+
l
[
s
].
oId
+
"
', 'draft')
\"
>
"
+
Label
.
commentLabel
+
"
</a>
"
;
a
.
tablePagination
.
updateTablePagination
(
n
,
t
,
e
.
pagination
),
Util
.
uvstat
.
render
Stat
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
draft-list
"
]
=
{
obj
:
admin
.
draftList
,
init
:
admin
.
draftList
.
init
,
refresh
:
admin
.
draftList
.
getList
};
admin
.
draftList
=
{
tablePagination
:
new
TablePaginate
(
"
draft
"
),
init
:
function
(
t
){
this
.
tablePagination
.
buildTable
([{
text
:
Label
.
titleLabel
,
index
:
"
title
"
,
minWidth
:
110
,
style
:
"
padding-left: 12px;font-size:14px;
"
},{
text
:
Label
.
authorLabel
,
index
:
"
author
"
,
width
:
150
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
commentLabel
,
index
:
"
comments
"
,
width
:
80
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
viewLabel
,
width
:
60
,
index
:
"
articleViewCount
"
,
style
:
"
padding-left: 12px;
"
},{
text
:
Label
.
dateLabel
,
index
:
"
date
"
,
width
:
90
,
style
:
"
padding-left: 12px;
"
}]),
this
.
tablePagination
.
initPagination
(),
this
.
tablePagination
.
initCommentsDialog
(),
this
.
getList
(
t
)},
getList
:
function
(
t
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
var
a
=
this
;
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/articles/status/unpublished/
"
+
t
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
for
(
var
l
=
e
.
articles
,
n
=
[],
s
=
0
;
s
<
l
.
length
;
s
++
)
n
[
s
]
=
{},
n
[
s
].
tags
=
l
[
s
].
articleTags
,
n
[
s
].
date
=
$
.
bowknot
.
getDate
(
l
[
s
].
articleCreateTime
),
n
[
s
].
comments
=
`<span data-uvstatcmt="
${
l
[
s
].
oId
}
">
${
l
[
s
].
articleCommentCount
}
</span>`
,
n
[
s
].
articleViewCount
=
'
<span data-uvstaturl="
'
+
Label
.
servePath
+
l
[
s
].
articlePermalink
+
'
">
'
+
l
[
s
].
articleViewCount
+
"
</span>
"
,
n
[
s
].
author
=
l
[
s
].
authorName
,
n
[
s
].
title
=
"
<a class='no-underline' href='
"
+
Label
.
servePath
+
l
[
s
].
articlePermalink
+
"
' target='_blank'>
"
+
l
[
s
].
articleTitle
+
"
</a><span class='table-tag'>
"
+
l
[
s
].
articleTags
+
"
</span>
"
,
n
[
s
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.article.get('
"
+
l
[
s
].
oId
+
"
', false);
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
l
[
s
].
oId
+
"
', 'draft', '
"
+
encodeURIComponent
(
l
[
s
].
articleTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.comment.open('
"
+
l
[
s
].
oId
+
"
', 'draft')
\"
>
"
+
Label
.
commentLabel
+
"
</a>
"
;
a
.
tablePagination
.
updateTablePagination
(
n
,
t
,
e
.
pagination
),
Util
.
uvstat
.
renderStat
(),
Util
.
uvstat
.
renderCmt
Stat
(),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
draft-list
"
]
=
{
obj
:
admin
.
draftList
,
init
:
admin
.
draftList
.
init
,
refresh
:
admin
.
draftList
.
getList
};
admin
.
pageList
=
{
tablePagination
:
new
TablePaginate
(
"
page
"
),
pageInfo
:{
currentCount
:
1
,
pageCount
:
1
,
currentPage
:
1
},
id
:
""
,
init
:
function
(
e
){
this
.
tablePagination
.
buildTable
([{
text
:
""
,
index
:
"
pageOrder
"
,
width
:
60
,
style
:
"
padding-left: 12px;font-size:14px;
"
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
titleLabel
,
index
:
"
pageTitle
"
,
width
:
300
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
permalinkLabel
,
index
:
"
pagePermalink
"
,
minWidth
:
100
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
openMethodLabel
,
index
:
"
pageTarget
"
,
width
:
120
}]),
this
.
tablePagination
.
initPagination
(),
this
.
getList
(
e
)},
getList
:
function
(
e
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
a
=
this
;
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/pages/
"
+
e
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
var
n
=
t
.
pages
,
g
=
[];
admin
.
pageList
.
pageInfo
.
currentCount
=
n
.
length
,
admin
.
pageList
.
pageInfo
.
pageCount
=
0
===
t
.
pagination
.
paginationPageCount
?
1
:
t
.
pagination
.
paginationPageCount
;
for
(
var
p
=
0
;
p
<
n
.
length
;
p
++
){
g
[
p
]
=
{},
0
===
p
?
1
===
n
.
length
?
g
[
p
].
pageOrder
=
""
:
g
[
p
].
pageOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
down
\'
);" class="icon-move-down"></span></div>
'
:
p
===
n
.
length
-
1
?
g
[
p
].
pageOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
up
\'
);" class="icon-move-up"></span> </div>
'
:
g
[
p
].
pageOrder
=
'
<div class="table-center" style="width:38px"> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
up
\'
);" class="icon-move-up"></span> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
down
\'
);" class="icon-move-down"></span> </div>
'
;
var
l
=
""
;
""
!==
n
[
p
].
pageIcon
&&
(
l
=
"
<img class='navigation-icon' src='
"
+
n
[
p
].
pageIcon
+
"
'/>
"
),
g
[
p
].
pageTitle
=
l
+
"
<a class='no-underline' href='
"
+
n
[
p
].
pagePermalink
+
"
' target='_blank'>
"
+
n
[
p
].
pageTitle
+
"
</a>
"
,
g
[
p
].
pagePermalink
=
"
<a class='no-underline' href='
"
+
n
[
p
].
pagePermalink
+
"
' target='_blank'>
"
+
n
[
p
].
pagePermalink
+
"
</a>
"
,
g
[
p
].
pageTarget
=
n
[
p
].
pageOpenTarget
,
g
[
p
].
expendRow
=
"
<span><a href='
"
+
n
[
p
].
pagePermalink
+
"
' target='_blank'>
"
+
Label
.
viewLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.pageList.get('
"
+
n
[
p
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.pageList.del('
"
+
n
[
p
].
oId
+
"
', '
"
+
encodeURIComponent
(
n
[
p
].
pageTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a></span>
"
}
a
.
tablePagination
.
updateTablePagination
(
g
,
e
,
t
.
pagination
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
get
:
function
(
e
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
+
e
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
a
,
t
){
$
(
"
#tipMsg
"
).
text
(
a
.
msg
),
a
.
sc
?(
admin
.
pageList
.
id
=
e
,
$
(
"
#pageTitle
"
).
val
(
a
.
page
.
pageTitle
),
$
(
"
#pagePermalink
"
).
val
(
a
.
page
.
pagePermalink
),
$
(
"
#pageTarget
"
).
val
(
a
.
page
.
pageOpenTarget
),
$
(
"
#pageIcon
"
).
val
(
a
.
page
.
pageIcon
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})},
del
:
function
(
e
,
a
){
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
navLabel
+
'
"
'
+
Util
.
htmlDecode
(
a
)
+
'
"?
'
)
&&
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
+
e
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
a
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
var
t
=
admin
.
pageList
.
pageInfo
.
currentPage
;
1
===
admin
.
pageList
.
pageInfo
.
currentCount
&&
1
!==
admin
.
pageList
.
pageInfo
.
pageCount
&&
admin
.
pageList
.
pageInfo
.
currentPage
===
admin
.
pageList
.
pageInfo
.
pageCount
&&
(
admin
.
pageList
.
pageInfo
.
pageCount
--
,
t
=
admin
.
pageList
.
pageInfo
.
pageCount
);
var
i
=
window
.
location
.
hash
.
split
(
"
/
"
);
t
==
i
[
i
.
length
-
1
]?
admin
.
pageList
.
getList
(
t
):
admin
.
setHashByPage
(
t
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}))},
add
:
function
(){
if
(
this
.
validate
()){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
e
=
$
(
"
#pagePermalink
"
).
val
().
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
),
a
=
{
page
:{
pageTitle
:
$
(
"
#pageTitle
"
).
val
(),
pagePermalink
:
e
,
pageOpenTarget
:
$
(
"
#pageTarget
"
).
val
(),
pageIcon
:
$
(
"
#pageIcon
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
,
type
:
"
POST
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
a
),
success
:
function
(
e
,
a
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
admin
.
pageList
.
id
=
""
,
$
(
"
#pagePermalink
"
).
val
(
""
),
$
(
"
#pageTitle
"
).
val
(
""
),
$
(
"
#pageIcon
"
).
val
(
""
),
$
(
"
#pageTarget
"
).
val
(
"
_self
"
),
admin
.
pageList
.
pageInfo
.
currentCount
===
Label
.
PAGE_SIZE
&&
admin
.
pageList
.
pageInfo
.
currentPage
===
admin
.
pageList
.
pageInfo
.
pageCount
&&
admin
.
pageList
.
pageInfo
.
pageCount
++
;
var
t
=
window
.
location
.
hash
.
split
(
"
/
"
);
admin
.
pageList
.
pageInfo
.
pageCount
==
t
[
t
.
length
-
1
]?
admin
.
pageList
.
getList
(
admin
.
pageList
.
pageInfo
.
pageCount
):
admin
.
setHashByPage
(
admin
.
pageList
.
pageInfo
.
pageCount
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
update
:
function
(){
if
(
this
.
validate
()){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
e
=
$
(
"
#pagePermalink
"
).
val
().
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
),
a
=
{
page
:{
pageTitle
:
$
(
"
#pageTitle
"
).
val
(),
oId
:
this
.
id
,
pagePermalink
:
e
,
pageOpenTarget
:
$
(
"
#pageTarget
"
).
val
(),
pageIcon
:
$
(
"
#pageIcon
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
a
),
success
:
function
(
e
,
a
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
?(
admin
.
pageList
.
id
=
""
,
admin
.
pageList
.
getList
(
admin
.
pageList
.
pageInfo
.
currentPage
),
$
(
"
#pageTitle
"
).
val
(
""
),
$
(
"
#pageIcon
"
).
val
(
""
),
$
(
"
#pagePermalink
"
).
val
(
""
),
$
(
"
#pageTarget
"
).
val
(
"
_self
"
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
validate
:
function
(){
if
(
""
===
$
(
"
#pageTitle
"
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
titleEmptyLabel
),
$
(
"
#pageTitle
"
).
focus
();
else
{
if
(
""
!==
$
(
"
#pagePermalink
"
).
val
().
replace
(
/
\s
/g
,
""
))
return
!
0
;
$
(
"
#tipMsg
"
).
text
(
Label
.
linkEmptyLabel
)}
return
!
1
},
submit
:
function
(){
""
!==
this
.
id
?
this
.
update
():
this
.
add
()},
changeOrder
:
function
(
e
,
a
,
t
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
{
oId
:
e
.
toString
(),
direction
:
t
};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/order/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
i
),
success
:
function
(
e
,
a
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
admin
.
pageList
.
getList
(
admin
.
pageList
.
pageInfo
.
currentPage
),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
page-list
"
]
=
{
obj
:
admin
.
pageList
,
init
:
admin
.
pageList
.
init
,
refresh
:
admin
.
pageList
.
getList
};
admin
.
pageList
=
{
tablePagination
:
new
TablePaginate
(
"
page
"
),
pageInfo
:{
currentCount
:
1
,
pageCount
:
1
,
currentPage
:
1
},
id
:
""
,
init
:
function
(
e
){
this
.
tablePagination
.
buildTable
([{
text
:
""
,
index
:
"
pageOrder
"
,
width
:
60
,
style
:
"
padding-left: 12px;font-size:14px;
"
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
titleLabel
,
index
:
"
pageTitle
"
,
width
:
300
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
permalinkLabel
,
index
:
"
pagePermalink
"
,
minWidth
:
100
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
openMethodLabel
,
index
:
"
pageTarget
"
,
width
:
120
}]),
this
.
tablePagination
.
initPagination
(),
this
.
getList
(
e
)},
getList
:
function
(
e
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
a
=
this
;
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/pages/
"
+
e
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
t
,
i
){
if
(
$
(
"
#tipMsg
"
).
text
(
t
.
msg
),
t
.
sc
){
var
n
=
t
.
pages
,
g
=
[];
admin
.
pageList
.
pageInfo
.
currentCount
=
n
.
length
,
admin
.
pageList
.
pageInfo
.
pageCount
=
0
===
t
.
pagination
.
paginationPageCount
?
1
:
t
.
pagination
.
paginationPageCount
;
for
(
var
p
=
0
;
p
<
n
.
length
;
p
++
){
g
[
p
]
=
{},
0
===
p
?
1
===
n
.
length
?
g
[
p
].
pageOrder
=
""
:
g
[
p
].
pageOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
down
\'
);" class="icon-move-down"></span></div>
'
:
p
===
n
.
length
-
1
?
g
[
p
].
pageOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
up
\'
);" class="icon-move-up"></span> </div>
'
:
g
[
p
].
pageOrder
=
'
<div class="table-center" style="width:38px"> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
up
\'
);" class="icon-move-up"></span> <span onclick="admin.pageList.changeOrder(
'
+
n
[
p
].
oId
+
"
,
"
+
p
+
'
,
\'
down
\'
);" class="icon-move-down"></span> </div>
'
;
var
l
=
""
;
""
!==
n
[
p
].
pageIcon
&&
(
l
=
"
<img class='navigation-icon' src='
"
+
n
[
p
].
pageIcon
+
"
'/>
"
),
g
[
p
].
pageTitle
=
l
+
"
<a class='no-underline' href='
"
+
n
[
p
].
pagePermalink
+
"
' target='_blank'>
"
+
n
[
p
].
pageTitle
+
"
</a>
"
,
g
[
p
].
pagePermalink
=
"
<a class='no-underline' href='
"
+
n
[
p
].
pagePermalink
+
"
' target='_blank'>
"
+
n
[
p
].
pagePermalink
+
"
</a>
"
,
g
[
p
].
pageTarget
=
n
[
p
].
pageOpenTarget
,
g
[
p
].
expendRow
=
"
<span><a href='
"
+
n
[
p
].
pagePermalink
+
"
' target='_blank'>
"
+
Label
.
viewLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.pageList.get('
"
+
n
[
p
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.pageList.del('
"
+
n
[
p
].
oId
+
"
', '
"
+
encodeURIComponent
(
n
[
p
].
pageTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a></span>
"
}
a
.
tablePagination
.
updateTablePagination
(
g
,
e
,
t
.
pagination
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
get
:
function
(
e
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
+
e
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
a
,
t
){
$
(
"
#tipMsg
"
).
text
(
a
.
msg
),
a
.
sc
?(
admin
.
pageList
.
id
=
e
,
$
(
"
#pageTitle
"
).
val
(
a
.
page
.
pageTitle
),
$
(
"
#pagePermalink
"
).
val
(
a
.
page
.
pagePermalink
),
$
(
"
#pageTarget
"
).
val
(
a
.
page
.
pageOpenTarget
),
$
(
"
#pageIcon
"
).
val
(
a
.
page
.
pageIcon
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})},
del
:
function
(
e
,
a
){
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
navLabel
+
'
"
'
+
Util
.
htmlDecode
(
a
)
+
'
"?
'
)
&&
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
+
e
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
a
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
var
t
=
admin
.
pageList
.
pageInfo
.
currentPage
;
1
===
admin
.
pageList
.
pageInfo
.
currentCount
&&
1
!==
admin
.
pageList
.
pageInfo
.
pageCount
&&
admin
.
pageList
.
pageInfo
.
currentPage
===
admin
.
pageList
.
pageInfo
.
pageCount
&&
(
admin
.
pageList
.
pageInfo
.
pageCount
--
,
t
=
admin
.
pageList
.
pageInfo
.
pageCount
);
var
i
=
window
.
location
.
hash
.
split
(
"
/
"
);
t
==
i
[
i
.
length
-
1
]?
admin
.
pageList
.
getList
(
t
):
admin
.
setHashByPage
(
t
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}))},
add
:
function
(){
if
(
this
.
validate
()){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
e
=
$
(
"
#pagePermalink
"
).
val
().
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
),
a
=
{
page
:{
pageTitle
:
$
(
"
#pageTitle
"
).
val
(),
pagePermalink
:
e
,
pageOpenTarget
:
$
(
"
#pageTarget
"
).
val
(),
pageIcon
:
$
(
"
#pageIcon
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
,
type
:
"
POST
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
a
),
success
:
function
(
e
,
a
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
admin
.
pageList
.
id
=
""
,
$
(
"
#pagePermalink
"
).
val
(
""
),
$
(
"
#pageTitle
"
).
val
(
""
),
$
(
"
#pageIcon
"
).
val
(
""
),
$
(
"
#pageTarget
"
).
val
(
"
_self
"
),
admin
.
pageList
.
pageInfo
.
currentCount
===
Label
.
PAGE_SIZE
&&
admin
.
pageList
.
pageInfo
.
currentPage
===
admin
.
pageList
.
pageInfo
.
pageCount
&&
admin
.
pageList
.
pageInfo
.
pageCount
++
;
var
t
=
window
.
location
.
hash
.
split
(
"
/
"
);
admin
.
pageList
.
pageInfo
.
pageCount
==
t
[
t
.
length
-
1
]?
admin
.
pageList
.
getList
(
admin
.
pageList
.
pageInfo
.
pageCount
):
admin
.
setHashByPage
(
admin
.
pageList
.
pageInfo
.
pageCount
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
update
:
function
(){
if
(
this
.
validate
()){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
e
=
$
(
"
#pagePermalink
"
).
val
().
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
),
a
=
{
page
:{
pageTitle
:
$
(
"
#pageTitle
"
).
val
(),
oId
:
this
.
id
,
pagePermalink
:
e
,
pageOpenTarget
:
$
(
"
#pageTarget
"
).
val
(),
pageIcon
:
$
(
"
#pageIcon
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
a
),
success
:
function
(
e
,
a
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
?(
admin
.
pageList
.
id
=
""
,
admin
.
pageList
.
getList
(
admin
.
pageList
.
pageInfo
.
currentPage
),
$
(
"
#pageTitle
"
).
val
(
""
),
$
(
"
#pageIcon
"
).
val
(
""
),
$
(
"
#pagePermalink
"
).
val
(
""
),
$
(
"
#pageTarget
"
).
val
(
"
_self
"
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
validate
:
function
(){
if
(
""
===
$
(
"
#pageTitle
"
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
titleEmptyLabel
),
$
(
"
#pageTitle
"
).
focus
();
else
{
if
(
""
!==
$
(
"
#pagePermalink
"
).
val
().
replace
(
/
\s
/g
,
""
))
return
!
0
;
$
(
"
#tipMsg
"
).
text
(
Label
.
linkEmptyLabel
)}
return
!
1
},
submit
:
function
(){
""
!==
this
.
id
?
this
.
update
():
this
.
add
()},
changeOrder
:
function
(
e
,
a
,
t
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
{
oId
:
e
.
toString
(),
direction
:
t
};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/page/order/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
i
),
success
:
function
(
e
,
a
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
admin
.
pageList
.
getList
(
admin
.
pageList
.
pageInfo
.
currentPage
),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
page-list
"
]
=
{
obj
:
admin
.
pageList
,
init
:
admin
.
pageList
.
init
,
refresh
:
admin
.
pageList
.
getList
};
admin
.
others
=
{
init
:
function
(){
$
(
"
#tabOthers
"
).
tabs
(),
$
(
"
#loadMsg
"
).
text
(
""
)},
removeUnusedArchives
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/archive/unused
"
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
)}})},
removeUnusedTags
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tag/unused
"
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
)}})},
exportSQL
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/export/sql
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
e
.
sc
?
$
(
"
#tipMsg
"
).
text
(
e
.
msg
):
window
.
location
=
Label
.
servePath
+
"
/console/export/sql
"
}})},
exportJSON
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
window
.
open
(
Label
.
servePath
+
"
/console/export/json
"
)},
exportHexo
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
window
.
open
(
Label
.
servePath
+
"
/console/export/hexo
"
)},
getUnusedTags
:
function
(){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tag/unused
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
)?
e
.
unusedTags
.
length
:
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
.
others
=
{
obj
:
admin
.
others
,
init
:
admin
.
others
.
init
,
refresh
:
function
(){
admin
.
clearTip
()}};
admin
.
others
=
{
init
:
function
(){
$
(
"
#tabOthers
"
).
tabs
(),
$
(
"
#loadMsg
"
).
text
(
""
)},
removeUnusedArchives
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/archive/unused
"
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
)}})},
removeUnusedTags
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tag/unused
"
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
$
(
"
#tipMsg
"
).
text
(
e
.
msg
)}})},
exportSQL
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/export/sql
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
e
.
sc
?
$
(
"
#tipMsg
"
).
text
(
e
.
msg
):
window
.
location
=
Label
.
servePath
+
"
/console/export/sql
"
}})},
exportJSON
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
window
.
open
(
Label
.
servePath
+
"
/console/export/json
"
)},
exportHexo
:
function
(){
$
(
"
#tipMsg
"
).
text
(
""
),
window
.
open
(
Label
.
servePath
+
"
/console/export/hexo
"
)},
getUnusedTags
:
function
(){
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/tag/unused
"
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
)?
e
.
unusedTags
.
length
:
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
.
others
=
{
obj
:
admin
.
others
,
init
:
admin
.
others
.
init
,
refresh
:
function
(){
admin
.
clearTip
()}};
admin
.
linkList
=
{
tablePagination
:
new
TablePaginate
(
"
link
"
),
pageInfo
:{
currentCount
:
1
,
pageCount
:
1
,
currentPage
:
1
},
id
:
""
,
init
:
function
(
i
){
this
.
tablePagination
.
buildTable
([{
text
:
""
,
index
:
"
linkOrder
"
,
width
:
60
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
linkTitleLabel
,
index
:
"
linkTitle
"
,
width
:
230
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
urlLabel
,
index
:
"
linkAddress
"
,
minWidth
:
180
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
linkDescriptionLabel
,
index
:
"
linkDescription
"
,
width
:
360
}]),
this
.
tablePagination
.
initPagination
(),
this
.
getList
(
i
),
$
(
"
#updateLink
"
).
dialog
({
title
:
$
(
"
#updateLink
"
).
data
(
"
title
"
),
width
:
700
,
height
:
350
,
modal
:
!
0
,
hideFooter
:
!
0
})},
getList
:
function
(
i
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
0
===
i
&&
(
i
=
1
),
this
.
pageInfo
.
currentPage
=
i
;
var
n
=
this
;
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/links/
"
+
i
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
var
a
=
e
.
links
,
l
=
[];
admin
.
linkList
.
pageInfo
.
currentCount
=
a
.
length
,
admin
.
linkList
.
pageInfo
.
pageCount
=
0
===
e
.
pagination
.
paginationPageCount
?
1
:
e
.
pagination
.
paginationPageCount
;
for
(
var
s
=
0
;
s
<
a
.
length
;
s
++
)
l
[
s
]
=
{},
0
===
s
?
1
===
a
.
length
?
l
[
s
].
linkOrder
=
""
:
l
[
s
].
linkOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
down
\'
);" class="icon-move-down"></span> </div>
'
:
s
===
a
.
length
-
1
?
l
[
s
].
linkOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
up
\'
);" class="icon-move-up"></span> </div>
'
:
l
[
s
].
linkOrder
=
'
<div class="table-center" style="width:38px"> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
up
\'
);" class="icon-move-up"></span> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
down
\'
);" class="icon-move-down"></span> </div>
'
,
l
[
s
].
linkTitle
=
a
[
s
].
linkTitle
,
l
[
s
].
linkAddress
=
"
<a target='_blank' class='no-underline' href='
"
+
a
[
s
].
linkAddress
+
"
'>
"
+
a
[
s
].
linkAddress
+
"
</a>
"
,
l
[
s
].
linkDescription
=
a
[
s
].
linkDescription
,
l
[
s
].
linkIcon
=
a
[
s
].
linkIcon
,
l
[
s
].
expendRow
=
"
<span><a href='
"
+
a
[
s
].
linkAddress
+
"
' target='_blank'>
"
+
Label
.
viewLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.linkList.get('
"
+
a
[
s
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.linkList.del('
"
+
a
[
s
].
oId
+
"
', '
"
+
encodeURIComponent
(
a
[
s
].
linkTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a></span>
"
;
n
.
tablePagination
.
updateTablePagination
(
l
,
i
,
e
.
pagination
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
add
:
function
(){
if
(
this
.
validate
()){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
{
link
:{
linkTitle
:
$
(
"
#linkTitle
"
).
val
(),
linkAddress
:
$
(
"
#linkAddress
"
).
val
(),
linkDescription
:
$
(
"
#linkDescription
"
).
val
(),
linkIcon
:
$
(
"
#linkIcon
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
,
type
:
"
POST
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
i
),
success
:
function
(
i
,
n
){
if
(
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
i
.
sc
){
$
(
"
#linkTitle
"
).
val
(
""
),
$
(
"
#linkAddress
"
).
val
(
""
),
$
(
"
#linkDescription
"
).
val
(
""
),
$
(
"
#linkIcon
"
).
val
(
""
),
admin
.
linkList
.
pageInfo
.
currentCount
===
Label
.
PAGE_SIZE
&&
admin
.
linkList
.
pageInfo
.
currentPage
===
admin
.
linkList
.
pageInfo
.
pageCount
&&
admin
.
linkList
.
pageInfo
.
pageCount
++
;
var
e
=
window
.
location
.
hash
.
split
(
"
/
"
);
admin
.
linkList
.
pageInfo
.
pageCount
!==
parseInt
(
e
[
e
.
length
-
1
])
&&
admin
.
setHashByPage
(
admin
.
linkList
.
pageInfo
.
pageCount
),
admin
.
linkList
.
getList
(
admin
.
linkList
.
pageInfo
.
pageCount
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
get
:
function
(
i
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#updateLink
"
).
dialog
(
"
open
"
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
+
i
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
n
,
e
){
$
(
"
#tipMsg
"
).
text
(
n
.
msg
),
n
.
sc
?(
admin
.
linkList
.
id
=
i
,
$
(
"
#linkTitleUpdate
"
).
val
(
n
.
link
.
linkTitle
),
$
(
"
#linkAddressUpdate
"
).
val
(
n
.
link
.
linkAddress
),
$
(
"
#linkDescriptionUpdate
"
).
val
(
n
.
link
.
linkDescription
),
$
(
"
#linkIconUpdate
"
).
val
(
n
.
link
.
linkIcon
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})},
update
:
function
(){
if
(
this
.
validate
(
"
Update
"
)){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
{
link
:{
linkTitle
:
$
(
"
#linkTitleUpdate
"
).
val
(),
oId
:
this
.
id
,
linkAddress
:
$
(
"
#linkAddressUpdate
"
).
val
(),
linkDescription
:
$
(
"
#linkDescriptionUpdate
"
).
val
(),
linkIcon
:
$
(
"
#linkIconUpdate
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
i
),
success
:
function
(
i
,
n
){
$
(
"
#updateLink
"
).
dialog
(
"
close
"
),
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
i
.
sc
?(
admin
.
linkList
.
getList
(
admin
.
linkList
.
pageInfo
.
currentPage
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
del
:
function
(
i
,
n
){
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
permalinkLabel
+
'
"
'
+
Util
.
htmlDecode
(
n
)
+
'
"?
'
)
&&
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
+
i
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
i
,
n
){
if
(
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
i
.
sc
){
var
e
=
admin
.
linkList
.
pageInfo
.
currentPage
;
1
===
admin
.
linkList
.
pageInfo
.
currentCount
&&
1
!==
admin
.
linkList
.
pageInfo
.
pageCount
&&
admin
.
linkList
.
pageInfo
.
currentPage
===
admin
.
linkList
.
pageInfo
.
pageCount
&&
(
admin
.
linkList
.
pageInfo
.
pageCount
--
,
e
=
admin
.
linkList
.
pageInfo
.
pageCount
);
var
t
=
window
.
location
.
hash
.
split
(
"
/
"
);
e
!==
parseInt
(
t
[
t
.
length
-
1
])
&&
admin
.
setHashByPage
(
e
),
admin
.
linkList
.
getList
(
e
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}))},
validate
:
function
(
i
){
if
(
i
||
(
i
=
""
),
""
===
$
(
"
#linkTitle
"
+
i
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
titleEmptyLabel
),
$
(
"
#linkTitle
"
+
i
).
focus
().
val
(
""
);
else
if
(
""
===
$
(
"
#linkAddress
"
+
i
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
addressEmptyLabel
),
$
(
"
#linkAddress
"
+
i
).
focus
().
val
(
""
);
else
{
if
(
/^
\w
+:
\/\/
/
.
test
(
$
(
"
#linkAddress
"
+
i
).
val
()))
return
!
0
;
$
(
"
#tipMsg
"
).
text
(
Label
.
addressInvalidLabel
),
$
(
"
#linkAddress
"
+
i
).
focus
().
val
(
""
)}
return
!
1
},
changeOrder
:
function
(
i
,
n
,
e
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
t
=
{
oId
:
i
.
toString
(),
direction
:
e
};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/order/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
t
),
success
:
function
(
i
,
n
){
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
admin
.
linkList
.
getList
(
admin
.
linkList
.
pageInfo
.
currentPage
),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
link-list
"
]
=
{
obj
:
admin
.
linkList
,
init
:
admin
.
linkList
.
init
,
refresh
:
admin
.
linkList
.
getList
};
admin
.
linkList
=
{
tablePagination
:
new
TablePaginate
(
"
link
"
),
pageInfo
:{
currentCount
:
1
,
pageCount
:
1
,
currentPage
:
1
},
id
:
""
,
init
:
function
(
i
){
this
.
tablePagination
.
buildTable
([{
text
:
""
,
index
:
"
linkOrder
"
,
width
:
60
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
linkTitleLabel
,
index
:
"
linkTitle
"
,
width
:
230
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
urlLabel
,
index
:
"
linkAddress
"
,
minWidth
:
180
},{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
linkDescriptionLabel
,
index
:
"
linkDescription
"
,
width
:
360
}]),
this
.
tablePagination
.
initPagination
(),
this
.
getList
(
i
),
$
(
"
#updateLink
"
).
dialog
({
title
:
$
(
"
#updateLink
"
).
data
(
"
title
"
),
width
:
700
,
height
:
350
,
modal
:
!
0
,
hideFooter
:
!
0
})},
getList
:
function
(
i
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
0
===
i
&&
(
i
=
1
),
this
.
pageInfo
.
currentPage
=
i
;
var
n
=
this
;
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/links/
"
+
i
+
"
/
"
+
Label
.
PAGE_SIZE
+
"
/
"
+
Label
.
WINDOW_SIZE
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
e
,
t
){
if
(
$
(
"
#tipMsg
"
).
text
(
e
.
msg
),
e
.
sc
){
var
a
=
e
.
links
,
l
=
[];
admin
.
linkList
.
pageInfo
.
currentCount
=
a
.
length
,
admin
.
linkList
.
pageInfo
.
pageCount
=
0
===
e
.
pagination
.
paginationPageCount
?
1
:
e
.
pagination
.
paginationPageCount
;
for
(
var
s
=
0
;
s
<
a
.
length
;
s
++
)
l
[
s
]
=
{},
0
===
s
?
1
===
a
.
length
?
l
[
s
].
linkOrder
=
""
:
l
[
s
].
linkOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
down
\'
);" class="icon-move-down"></span> </div>
'
:
s
===
a
.
length
-
1
?
l
[
s
].
linkOrder
=
'
<div class="table-center" style="width:14px"> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
up
\'
);" class="icon-move-up"></span> </div>
'
:
l
[
s
].
linkOrder
=
'
<div class="table-center" style="width:38px"> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
up
\'
);" class="icon-move-up"></span> <span onclick="admin.linkList.changeOrder(
'
+
a
[
s
].
oId
+
"
,
"
+
s
+
'
,
\'
down
\'
);" class="icon-move-down"></span> </div>
'
,
l
[
s
].
linkTitle
=
a
[
s
].
linkTitle
,
l
[
s
].
linkAddress
=
"
<a target='_blank' class='no-underline' href='
"
+
a
[
s
].
linkAddress
+
"
'>
"
+
a
[
s
].
linkAddress
+
"
</a>
"
,
l
[
s
].
linkDescription
=
a
[
s
].
linkDescription
,
l
[
s
].
linkIcon
=
a
[
s
].
linkIcon
,
l
[
s
].
expendRow
=
"
<span><a href='
"
+
a
[
s
].
linkAddress
+
"
' target='_blank'>
"
+
Label
.
viewLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.linkList.get('
"
+
a
[
s
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a> <a href='javascript:void(0)' onclick=
\"
admin.linkList.del('
"
+
a
[
s
].
oId
+
"
', '
"
+
encodeURIComponent
(
a
[
s
].
linkTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a></span>
"
;
n
.
tablePagination
.
updateTablePagination
(
l
,
i
,
e
.
pagination
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})},
add
:
function
(){
if
(
this
.
validate
()){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
{
link
:{
linkTitle
:
$
(
"
#linkTitle
"
).
val
(),
linkAddress
:
$
(
"
#linkAddress
"
).
val
(),
linkDescription
:
$
(
"
#linkDescription
"
).
val
(),
linkIcon
:
$
(
"
#linkIcon
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
,
type
:
"
POST
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
i
),
success
:
function
(
i
,
n
){
if
(
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
i
.
sc
){
$
(
"
#linkTitle
"
).
val
(
""
),
$
(
"
#linkAddress
"
).
val
(
""
),
$
(
"
#linkDescription
"
).
val
(
""
),
$
(
"
#linkIcon
"
).
val
(
""
),
admin
.
linkList
.
pageInfo
.
currentCount
===
Label
.
PAGE_SIZE
&&
admin
.
linkList
.
pageInfo
.
currentPage
===
admin
.
linkList
.
pageInfo
.
pageCount
&&
admin
.
linkList
.
pageInfo
.
pageCount
++
;
var
e
=
window
.
location
.
hash
.
split
(
"
/
"
);
admin
.
linkList
.
pageInfo
.
pageCount
!==
parseInt
(
e
[
e
.
length
-
1
])
&&
admin
.
setHashByPage
(
admin
.
linkList
.
pageInfo
.
pageCount
),
admin
.
linkList
.
getList
(
admin
.
linkList
.
pageInfo
.
pageCount
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
get
:
function
(
i
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#updateLink
"
).
dialog
(
"
open
"
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
+
i
,
type
:
"
GET
"
,
cache
:
!
1
,
success
:
function
(
n
,
e
){
$
(
"
#tipMsg
"
).
text
(
n
.
msg
),
n
.
sc
?(
admin
.
linkList
.
id
=
i
,
$
(
"
#linkTitleUpdate
"
).
val
(
n
.
link
.
linkTitle
),
$
(
"
#linkAddressUpdate
"
).
val
(
n
.
link
.
linkAddress
),
$
(
"
#linkDescriptionUpdate
"
).
val
(
n
.
link
.
linkDescription
),
$
(
"
#linkIconUpdate
"
).
val
(
n
.
link
.
linkIcon
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})},
update
:
function
(){
if
(
this
.
validate
(
"
Update
"
)){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
i
=
{
link
:{
linkTitle
:
$
(
"
#linkTitleUpdate
"
).
val
(),
oId
:
this
.
id
,
linkAddress
:
$
(
"
#linkAddressUpdate
"
).
val
(),
linkDescription
:
$
(
"
#linkDescriptionUpdate
"
).
val
(),
linkIcon
:
$
(
"
#linkIconUpdate
"
).
val
()}};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
i
),
success
:
function
(
i
,
n
){
$
(
"
#updateLink
"
).
dialog
(
"
close
"
),
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
i
.
sc
?(
admin
.
linkList
.
getList
(
admin
.
linkList
.
pageInfo
.
currentPage
),
$
(
"
#loadMsg
"
).
text
(
""
)):
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
del
:
function
(
i
,
n
){
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
permalinkLabel
+
'
"
'
+
Util
.
htmlDecode
(
n
)
+
'
"?
'
)
&&
(
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
),
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/
"
+
i
,
type
:
"
DELETE
"
,
cache
:
!
1
,
success
:
function
(
i
,
n
){
if
(
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
i
.
sc
){
var
e
=
admin
.
linkList
.
pageInfo
.
currentPage
;
1
===
admin
.
linkList
.
pageInfo
.
currentCount
&&
1
!==
admin
.
linkList
.
pageInfo
.
pageCount
&&
admin
.
linkList
.
pageInfo
.
currentPage
===
admin
.
linkList
.
pageInfo
.
pageCount
&&
(
admin
.
linkList
.
pageInfo
.
pageCount
--
,
e
=
admin
.
linkList
.
pageInfo
.
pageCount
);
var
t
=
window
.
location
.
hash
.
split
(
"
/
"
);
e
!==
parseInt
(
t
[
t
.
length
-
1
])
&&
admin
.
setHashByPage
(
e
),
admin
.
linkList
.
getList
(
e
),
$
(
"
#loadMsg
"
).
text
(
""
)}
else
$
(
"
#loadMsg
"
).
text
(
""
)}}))},
validate
:
function
(
i
){
if
(
i
||
(
i
=
""
),
""
===
$
(
"
#linkTitle
"
+
i
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
titleEmptyLabel
),
$
(
"
#linkTitle
"
+
i
).
focus
().
val
(
""
);
else
if
(
""
===
$
(
"
#linkAddress
"
+
i
).
val
().
replace
(
/
\s
/g
,
""
))
$
(
"
#tipMsg
"
).
text
(
Label
.
addressEmptyLabel
),
$
(
"
#linkAddress
"
+
i
).
focus
().
val
(
""
);
else
{
if
(
/^
\w
+:
\/\/
/
.
test
(
$
(
"
#linkAddress
"
+
i
).
val
()))
return
!
0
;
$
(
"
#tipMsg
"
).
text
(
Label
.
addressInvalidLabel
),
$
(
"
#linkAddress
"
+
i
).
focus
().
val
(
""
)}
return
!
1
},
changeOrder
:
function
(
i
,
n
,
e
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
),
$
(
"
#tipMsg
"
).
text
(
""
);
var
t
=
{
oId
:
i
.
toString
(),
direction
:
e
};
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/link/order/
"
,
type
:
"
PUT
"
,
cache
:
!
1
,
data
:
JSON
.
stringify
(
t
),
success
:
function
(
i
,
n
){
$
(
"
#tipMsg
"
).
text
(
i
.
msg
),
admin
.
linkList
.
getList
(
admin
.
linkList
.
pageInfo
.
currentPage
),
$
(
"
#loadMsg
"
).
text
(
""
)}})}},
admin
.
register
[
"
link-list
"
]
=
{
obj
:
admin
.
linkList
,
init
:
admin
.
linkList
.
init
,
refresh
:
admin
.
linkList
.
getList
};
...
...
src/main/resources/js/common.min.js
View file @
b145ac62
var
Util
=
{
uvstat
:
void
0
,
initViewCnt
:
function
(){
Util
.
uvstat
=
new
Uvstat
,
Util
.
uvstat
.
addStat
(),
Util
.
uvstat
.
renderStat
()},
isArticlePage
:
function
(
e
){
var
t
=!
0
;
return
e
.
indexOf
(
Label
.
servePath
+
"
/tags/
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/tags.html
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/category/
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/archives.html
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/archives/
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/links.html
"
)
>-
1
&&
(
t
=!
1
),
e
===
Label
.
servePath
&&
(
t
=!
1
),
/^
[
0-9
]
*$/
.
test
(
e
.
replace
(
Label
.
servePath
+
"
/
"
,
""
))
&&
(
t
=!
1
),
t
},
initPjax
:
function
(
e
){
1
===
$
(
"
#pjax
"
).
length
&&
(
$
.
pjax
({
selector
:
"
a
"
,
container
:
"
#pjax
"
,
show
:
""
,
cache
:
!
1
,
storage
:
!
0
,
titleSuffix
:
""
,
filter
:
function
(
e
,
t
){
return
!
e
||
(
"
_blank
"
===
t
.
getAttribute
(
"
target
"
)
||
(
e
===
Label
.
servePath
+
"
/rss.xml
"
||
e
.
indexOf
(
Label
.
servePath
+
"
/admin-index.do
"
)
>-
1
||
(
0
===
e
.
indexOf
(
"
#
"
)
||!
(
t
.
href
.
indexOf
(
Label
.
servePath
)
>-
1
))))},
callback
:
function
(){
Util
.
parseMarkdown
(),
Util
.
parseLanguage
(),
Util
.
uvstat
.
addStat
(),
Util
.
uvstat
.
renderStat
(),
e
&&
e
()}}),
NProgress
.
configure
({
showSpinner
:
!
1
}),
$
(
"
#pjax
"
).
bind
(
"
pjax.start
"
,(
function
(){
NProgress
.
start
()})),
$
(
"
#pjax
"
).
bind
(
"
pjax.end
"
,(
function
(){
window
.
scroll
(
window
.
scrollX
,
0
),
NProgress
.
done
()})))},
previewImg
:
function
(){
$
(
"
body
"
).
on
(
"
click
"
,
"
.vditor-reset img
"
,(
function
(){
$
(
this
).
hasClass
(
"
prevent
"
)
||
window
.
open
(
this
.
src
)}))},
addStyle
:
function
(
e
,
t
){
if
(
!
document
.
getElementById
(
t
)){
var
i
=
document
.
createElement
(
"
link
"
);
i
.
id
=
t
,
i
.
setAttribute
(
"
rel
"
,
"
stylesheet
"
),
i
.
setAttribute
(
"
type
"
,
"
text/css
"
),
i
.
setAttribute
(
"
href
"
,
e
),
document
.
getElementsByTagName
(
"
head
"
)[
0
].
appendChild
(
i
)}},
addScript
:
function
(
e
,
t
){
if
(
!
document
.
getElementById
(
t
)){
var
i
=
new
XMLHttpRequest
;
i
.
open
(
"
GET
"
,
e
,
!
1
),
i
.
setRequestHeader
(
"
Accept
"
,
"
text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
"
),
i
.
send
(
""
);
var
a
=
document
.
createElement
(
"
script
"
);
a
.
id
=
t
,
a
.
type
=
"
text/javascript
"
,
a
.
text
=
i
.
responseText
,
document
.
getElementsByTagName
(
"
head
"
)[
0
].
appendChild
(
a
)}},
parseLanguage
:
function
(){
Vditor
.
highlightRender
({
style
:
Label
.
hljsStyle
,
enable
:
!
Label
.
luteAvailable
},
document
)},
parseMarkdown
:
function
(){
"
undefined
"
==
typeof
Vditor
&&
Util
.
addScript
(
"
https://cdn.jsdelivr.net/npm/vditor@2.1.1/dist/method.min.js
"
,
"
vditorPreviewScript
"
),
Vditor
.
codeRender
(
document
.
body
,
Label
.
langLabel
),
Label
.
luteAvailable
?
Vditor
.
mathRenderByLute
(
document
.
body
):
Vditor
.
mathRender
(
document
.
body
),
Vditor
.
abcRender
(),
Vditor
.
chartRender
(),
Vditor
.
mediaRender
(
document
.
body
),
Vditor
.
mermaidRender
(
document
.
body
),
document
.
querySelectorAll
(
"
.vditor-reset
"
).
forEach
(
e
=>
{
Vditor
.
speechRender
(
e
,
Label
.
langLabel
)})},
killIE
:
function
(
e
){
var
t
=
navigator
.
userAgent
.
split
(
"
MSIE
"
)[
1
];
t
&&
(
e
||
(
e
=
7
),
parseFloat
(
t
.
split
(
"
;
"
))
<=
e
&&
function
(){
try
{
var
e
=
'
<div class="killIEIframe" style=
\'
display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110
\'
></div><iframe class="killIEIframe" style=
\'
left:
'
+
(
$
(
window
).
width
()
-
781
)
/
2
+
"
px;z-index:120;top:
"
+
(
$
(
window
).
height
()
-
680
)
/
2
+
"
px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='
"
+
Label
.
servePath
+
"
/kill-browser'></iframe>
"
;
$
(
"
body
"
).
append
(
e
)}
catch
(
t
){
e
=
'
<div class="killIEIframe" style=
\'
display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110
\'
></div><iframe class="killIEIframe" style=
\'
left:
'
+
10
+
"
px;z-index:120;top:
"
+
0
+
"
px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='
"
+
Label
.
servePath
+
"
/kill-browser'></iframe>
"
;
document
.
body
.
innerHTML
=
document
.
body
.
innerHTML
+
e
}}())},
setTopBar
:
function
(){
var
e
=
$
(
"
#top
"
);
if
(
1
===
e
.
length
){
var
t
=
$
(
"
#showTop
"
);
t
.
click
((
function
(){
e
.
slideDown
(),
t
.
hide
()})),
$
(
"
#hideTop
"
).
click
((
function
(){
e
.
slideUp
(),
t
.
show
()}))}},
goTop
:
function
(){
$
(
"
html, body
"
).
animate
({
scrollTop
:
0
},
800
)},
goBottom
:
function
(
e
){
e
||
(
e
=
0
),
$
(
"
html, body
"
).
animate
({
scrollTop
:
$
(
document
).
height
()
-
$
(
window
).
height
()
-
e
},
800
)},
init
:
function
(){
Util
.
killIE
(),
Util
.
parseMarkdown
(),
Util
.
parseLanguage
(),
Util
.
initSW
(),
Util
.
previewImg
(),
Util
.
initDebugInfo
(),
Util
.
initViewCnt
()},
initDebugInfo
:
function
(){
console
.
log
(
"
%cSolo%c
\n
\
ud83c
\
udfb8
\
u4e00
\
u6b3e
\
u5c0f
\
u800c
\
u7f8e
\
u7684
\
u535a
\
u5ba2
\
u7cfb
\
u7edf
\
uff0c
\
u4e13
\
u4e3a
\
u7a0b
\
u5e8f
\
u5458
\
u8bbe
\
u8ba1
\
u3002
\n\n
solo.b3log.org v
"
+
Label
.
version
+
"
\n
Copyright
\
xa9 2010-present
"
,
"
font-size:96px;color:#3b3e43
"
,
"
font-size:12px;color:#4285f4;
"
)},
initSW
:
function
(){
navigator
.
serviceWorker
&&
navigator
.
serviceWorker
.
register
(
"
/sw.js
"
,{
scope
:
"
/
"
})},
buildTags
:
function
(
e
){
e
=
e
||
"
tags
"
;
for
(
var
t
=
[
"
tags1
"
,
"
tags2
"
,
"
tags3
"
,
"
tags4
"
,
"
tags5
"
],
i
=
$
(
"
#
"
+
e
+
"
b
"
).
get
(),
a
=
parseInt
(
$
(
"
#
"
+
e
+
"
b
"
).
last
().
text
()),
n
=
Math
.
ceil
(
a
/
t
.
length
),
r
=
0
;
r
<
i
.
length
;
r
++
)
for
(
var
o
=
parseInt
(
i
[
r
].
innerHTML
),
l
=
0
;
l
<
t
.
length
;
l
++
)
if
(
o
>
l
*
n
&&
o
<=
(
l
+
1
)
*
n
){
i
[
r
].
parentNode
.
className
=
t
[
l
];
break
}
$
(
"
#
"
+
e
).
html
(
$
(
"
#
"
+
e
+
"
li
"
).
get
().
sort
((
function
(
e
,
t
){
var
i
=
$
(
e
).
find
(
"
span
"
).
text
().
toLowerCase
(),
a
=
$
(
t
).
find
(
"
span
"
).
text
().
toLowerCase
();
return
i
.
localeCompare
(
a
)})))}};
var
Util
=
{
uvstat
:
void
0
,
initViewCnt
:
function
(){
Util
.
uvstat
=
new
Uvstat
,
Util
.
uvstat
.
addStat
(),
Util
.
uvstat
.
renderStat
(),
Util
.
uvstat
.
renderCmtStat
()},
isArticlePage
:
function
(
e
){
var
t
=!
0
;
return
e
.
indexOf
(
Label
.
servePath
+
"
/tags/
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/tags.html
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/category/
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/archives.html
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/archives/
"
)
>-
1
&&
(
t
=!
1
),
e
.
indexOf
(
Label
.
servePath
+
"
/links.html
"
)
>-
1
&&
(
t
=!
1
),
e
===
Label
.
servePath
&&
(
t
=!
1
),
/^
[
0-9
]
*$/
.
test
(
e
.
replace
(
Label
.
servePath
+
"
/
"
,
""
))
&&
(
t
=!
1
),
t
},
initPjax
:
function
(
e
){
1
===
$
(
"
#pjax
"
).
length
&&
(
$
.
pjax
({
selector
:
"
a
"
,
container
:
"
#pjax
"
,
show
:
""
,
cache
:
!
1
,
storage
:
!
0
,
titleSuffix
:
""
,
filter
:
function
(
e
,
t
){
return
!
e
||
(
"
_blank
"
===
t
.
getAttribute
(
"
target
"
)
||
(
e
===
Label
.
servePath
+
"
/rss.xml
"
||
e
.
indexOf
(
Label
.
servePath
+
"
/admin-index.do
"
)
>-
1
||
(
0
===
e
.
indexOf
(
"
#
"
)
||!
(
t
.
href
.
indexOf
(
Label
.
servePath
)
>-
1
))))},
callback
:
function
(){
Util
.
parseMarkdown
(),
Util
.
parseLanguage
(),
Util
.
uvstat
.
addStat
(),
Util
.
uvstat
.
renderStat
(),
Util
.
uvstat
.
renderCmtStat
(),
e
&&
e
()}}),
NProgress
.
configure
({
showSpinner
:
!
1
}),
$
(
"
#pjax
"
).
bind
(
"
pjax.start
"
,(
function
(){
NProgress
.
start
()})),
$
(
"
#pjax
"
).
bind
(
"
pjax.end
"
,(
function
(){
window
.
scroll
(
window
.
scrollX
,
0
),
NProgress
.
done
()})))},
previewImg
:
function
(){
$
(
"
body
"
).
on
(
"
click
"
,
"
.vditor-reset img
"
,(
function
(){
$
(
this
).
hasClass
(
"
prevent
"
)
||
window
.
open
(
this
.
src
)}))},
addStyle
:
function
(
e
,
t
){
if
(
!
document
.
getElementById
(
t
)){
var
i
=
document
.
createElement
(
"
link
"
);
i
.
id
=
t
,
i
.
setAttribute
(
"
rel
"
,
"
stylesheet
"
),
i
.
setAttribute
(
"
type
"
,
"
text/css
"
),
i
.
setAttribute
(
"
href
"
,
e
),
document
.
getElementsByTagName
(
"
head
"
)[
0
].
appendChild
(
i
)}},
addScript
:
function
(
e
,
t
){
if
(
!
document
.
getElementById
(
t
)){
var
i
=
new
XMLHttpRequest
;
i
.
open
(
"
GET
"
,
e
,
!
1
),
i
.
setRequestHeader
(
"
Accept
"
,
"
text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
"
),
i
.
send
(
""
);
var
a
=
document
.
createElement
(
"
script
"
);
a
.
id
=
t
,
a
.
type
=
"
text/javascript
"
,
a
.
text
=
i
.
responseText
,
document
.
getElementsByTagName
(
"
head
"
)[
0
].
appendChild
(
a
)}},
parseLanguage
:
function
(){
Vditor
.
highlightRender
({
style
:
Label
.
hljsStyle
,
enable
:
!
Label
.
luteAvailable
},
document
)},
parseMarkdown
:
function
(){
"
undefined
"
==
typeof
Vditor
&&
Util
.
addScript
(
"
https://cdn.jsdelivr.net/npm/vditor@2.1.1/dist/method.min.js
"
,
"
vditorPreviewScript
"
),
Vditor
.
codeRender
(
document
.
body
,
Label
.
langLabel
),
Label
.
luteAvailable
?
Vditor
.
mathRenderByLute
(
document
.
body
):
Vditor
.
mathRender
(
document
.
body
),
Vditor
.
abcRender
(),
Vditor
.
chartRender
(),
Vditor
.
mediaRender
(
document
.
body
),
Vditor
.
mermaidRender
(
document
.
body
),
document
.
querySelectorAll
(
"
.vditor-reset
"
).
forEach
(
e
=>
{
Vditor
.
speechRender
(
e
,
Label
.
langLabel
)})},
killIE
:
function
(
e
){
var
t
=
navigator
.
userAgent
.
split
(
"
MSIE
"
)[
1
];
t
&&
(
e
||
(
e
=
7
),
parseFloat
(
t
.
split
(
"
;
"
))
<=
e
&&
function
(){
try
{
var
e
=
'
<div class="killIEIframe" style=
\'
display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110
\'
></div><iframe class="killIEIframe" style=
\'
left:
'
+
(
$
(
window
).
width
()
-
781
)
/
2
+
"
px;z-index:120;top:
"
+
(
$
(
window
).
height
()
-
680
)
/
2
+
"
px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='
"
+
Label
.
servePath
+
"
/kill-browser'></iframe>
"
;
$
(
"
body
"
).
append
(
e
)}
catch
(
t
){
e
=
'
<div class="killIEIframe" style=
\'
display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110
\'
></div><iframe class="killIEIframe" style=
\'
left:
'
+
10
+
"
px;z-index:120;top:
"
+
0
+
"
px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='
"
+
Label
.
servePath
+
"
/kill-browser'></iframe>
"
;
document
.
body
.
innerHTML
=
document
.
body
.
innerHTML
+
e
}}())},
setTopBar
:
function
(){
var
e
=
$
(
"
#top
"
);
if
(
1
===
e
.
length
){
var
t
=
$
(
"
#showTop
"
);
t
.
click
((
function
(){
e
.
slideDown
(),
t
.
hide
()})),
$
(
"
#hideTop
"
).
click
((
function
(){
e
.
slideUp
(),
t
.
show
()}))}},
goTop
:
function
(){
$
(
"
html, body
"
).
animate
({
scrollTop
:
0
},
800
)},
goBottom
:
function
(
e
){
e
||
(
e
=
0
),
$
(
"
html, body
"
).
animate
({
scrollTop
:
$
(
document
).
height
()
-
$
(
window
).
height
()
-
e
},
800
)},
init
:
function
(){
Util
.
killIE
(),
Util
.
parseMarkdown
(),
Util
.
parseLanguage
(),
Util
.
initSW
(),
Util
.
previewImg
(),
Util
.
initDebugInfo
(),
Util
.
initViewCnt
()},
initDebugInfo
:
function
(){
console
.
log
(
"
%cSolo%c
\n
\
ud83c
\
udfb8
\
u4e00
\
u6b3e
\
u5c0f
\
u800c
\
u7f8e
\
u7684
\
u535a
\
u5ba2
\
u7cfb
\
u7edf
\
uff0c
\
u4e13
\
u4e3a
\
u7a0b
\
u5e8f
\
u5458
\
u8bbe
\
u8ba1
\
u3002
\n\n
solo.b3log.org v
"
+
Label
.
version
+
"
\n
Copyright
\
xa9 2010-present
"
,
"
font-size:96px;color:#3b3e43
"
,
"
font-size:12px;color:#4285f4;
"
)},
initSW
:
function
(){
navigator
.
serviceWorker
&&
navigator
.
serviceWorker
.
register
(
"
/sw.js
"
,{
scope
:
"
/
"
})},
buildTags
:
function
(
e
){
e
=
e
||
"
tags
"
;
for
(
var
t
=
[
"
tags1
"
,
"
tags2
"
,
"
tags3
"
,
"
tags4
"
,
"
tags5
"
],
i
=
$
(
"
#
"
+
e
+
"
b
"
).
get
(),
a
=
parseInt
(
$
(
"
#
"
+
e
+
"
b
"
).
last
().
text
()),
n
=
Math
.
ceil
(
a
/
t
.
length
),
r
=
0
;
r
<
i
.
length
;
r
++
)
for
(
var
o
=
parseInt
(
i
[
r
].
innerHTML
),
l
=
0
;
l
<
t
.
length
;
l
++
)
if
(
o
>
l
*
n
&&
o
<=
(
l
+
1
)
*
n
){
i
[
r
].
parentNode
.
className
=
t
[
l
];
break
}
$
(
"
#
"
+
e
).
html
(
$
(
"
#
"
+
e
+
"
li
"
).
get
().
sort
((
function
(
e
,
t
){
var
i
=
$
(
e
).
find
(
"
span
"
).
text
().
toLowerCase
(),
a
=
$
(
t
).
find
(
"
span
"
).
text
().
toLowerCase
();
return
i
.
localeCompare
(
a
)})))}};
\ No newline at end of file
\ No newline at end of file
src/main/resources/skins/9IPHP/article-list.ftl
View file @
b145ac62
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<span class="vditor-tooltipped vditor-tooltipped__n" aria-label="${commentCountLabel}">
<span class="vditor-tooltipped vditor-tooltipped__n" aria-label="${commentCountLabel}">
<i class="icon-comments"></i>
<i class="icon-comments"></i>
<a href="${servePath}${article.articlePermalink}#comments">
<a href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}
${commentLabel}</a>
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${commentLabel}</a>
</span>
</span>
</#if>
</#if>
|
|
...
...
src/main/resources/skins/9IPHP/article.ftl
View file @
b145ac62
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<span
class=
"vditor-tooltipped vditor-tooltipped__n"
aria-label=
"${commentCountLabel}"
>
<span
class=
"vditor-tooltipped vditor-tooltipped__n"
aria-label=
"${commentCountLabel}"
>
<i
class=
"icon-comments"
></i>
<i
class=
"icon-comments"
></i>
<a
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
href=
"${servePath}${article.articlePermalink}#comments"
>
${article.articleCommentCount}
${commentLabel}
</a>
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${commentLabel}
</a>
</span>
</span>
</
#
if>
</
#
if>
|
|
...
...
src/main/resources/skins/9IPHP/side.ftl
View file @
b145ac62
...
@@ -88,9 +88,7 @@
...
@@ -88,9 +88,7 @@
<ul>
<ul>
<#list mostCommentArticles as article>
<#list mostCommentArticles as article>
<li>
<li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}"
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
class="vditor-tooltipped vditor-tooltipped__e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle}
${article.articleTitle}
</a>
</a>
</li>
</li>
...
@@ -107,9 +105,7 @@
...
@@ -107,9 +105,7 @@
<ul>
<ul>
<#list mostViewCountArticles as article>
<#list mostViewCountArticles as article>
<li>
<li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}"
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
class="vditor-tooltipped vditor-tooltipped__e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle}
${article.articleTitle}
</a>
</a>
</li>
</li>
...
...
src/main/resources/skins/Andrea/article-list.ftl
View file @
b145ac62
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<#if commentable>
<#if commentable>
|
|
<a rel="nofollow" class="underline" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" class="underline" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}
${commentLabel}
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${commentLabel}
</a>
</a>
</#if>
</#if>
</div>
</div>
...
...
src/main/resources/skins/Andrea/article.ftl
View file @
b145ac62
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<
#if
commentable
>
<
#if
commentable
>
|
|
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
${article.articleCommentCount}
${commentLabel}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${commentLabel}
</a>
</a>
</
#
if>
</
#
if>
</div>
</div>
...
...
src/main/resources/skins/Andrea/side.ftl
View file @
b145ac62
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<li>
<li>
<a rel="nofollow" title="${article.articleTitle}"
<a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}">
href="${servePath}${article.articlePermalink}">
<sup>[
${article.articleCommentCount}
]</sup>
<sup>[
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
]</sup>
${article.articleTitle}
${article.articleTitle}
</a>
</a>
</li>
</li>
...
...
src/main/resources/skins/Bubble/article-list.ftl
View file @
b145ac62
...
@@ -54,10 +54,10 @@
...
@@ -54,10 +54,10 @@
${articleTag}
${articleTag}
</a>
</a>
</#list>
</#list>
<#if
article.articleCommentCount != 0 &&
commentable>
<#if commentable>
·
·
<a class="item__tag" href="${servePath}${article.articlePermalink}#comments">
<a class="item__tag" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}
${commentLabel}
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${commentLabel}
</a>
</a>
</#if>
</#if>
·
·
...
...
src/main/resources/skins/Casper/article-list.ftl
View file @
b145ac62
...
@@ -68,9 +68,9 @@
...
@@ -68,9 +68,9 @@
class="vditor-tooltipped vditor-tooltipped__n item__avatar">
class="vditor-tooltipped vditor-tooltipped__n item__avatar">
<img src="${article.authorThumbnailURL}" />
<img src="${article.authorThumbnailURL}" />
</a>
</a>
<#if
article.articleCommentCount != 0 &&
commentable>
<#if commentable>
<a class="item__meta" href="${servePath}${article.articlePermalink}#comments">
<a class="item__meta" href="${servePath}${article.articlePermalink}#comments">
<span data-uvstatcmt="${article.oId}">
${article.articleCommentCount}
</span> ${commentLabel}
<span data-uvstatcmt="${article.oId}">
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</span> ${commentLabel}
</a>
</a>
<#else>
<#else>
<a class="item__meta" href="${servePath}${article.articlePermalink}">
<a class="item__meta" href="${servePath}${article.articlePermalink}">
...
...
src/main/resources/skins/Community/article-list.ftl
View file @
b145ac62
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<#if commentable>
<#if commentable>
<li>
<li>
<a rel="nofollow" title="${commentLabel}" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" title="${commentLabel}" href="${servePath}${article.articlePermalink}#comments">
${commentLabel} (
${article.articleCommentCount}
)
${commentLabel} (
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
)
</a>
</a>
</li>
</li>
</#if>
</#if>
...
...
src/main/resources/skins/Community/article.ftl
View file @
b145ac62
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<
#if
commentable
>
<
#if
commentable
>
<li>
<li>
<a
rel=
"nofollow"
title=
"${commentLabel}"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
title=
"${commentLabel}"
href=
"${servePath}${article.articlePermalink}#comments"
>
${commentLabel} (
${article.articleCommentCount}
)
${commentLabel} (
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
)
</a>
</a>
</li>
</li>
</
#
if>
</
#
if>
...
...
src/main/resources/skins/Community/side.ftl
View file @
b145ac62
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<#list mostCommentArticles as article>
<#list mostCommentArticles as article>
<li>
<li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<sup>[
${article.articleCommentCount}
]</sup>${article.articleTitle}
<sup>[
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
]</sup>${article.articleTitle}
</a>
</a>
</li>
</li>
</#list>
</#list>
...
...
src/main/resources/skins/Finding/css/base.css
View file @
b145ac62
.article__toc
{
overflow
:
auto
}
.article__toc
::-webkit-scrollbar
{
display
:
none
}
.article__toc
li
{
list-style-type
:
none
}
.article__toc
li
a
{
padding-left
:
10px
;
display
:
block
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
}
.article__toc
li
a
:hover
{
text-decoration
:
none
}
.article__toc
li
.toc__h3
a
{
padding-left
:
20px
}
.article__toc
li
.toc__h4
a
{
padding-left
:
30px
}
.article__toc
li
.toc__h5
a
{
padding-left
:
40px
}
.user__site
:hover
{
text-decoration
:
none
}
@-webkit-keyframes
tooltip-appear
{
from
{
opacity
:
0
}
to
{
opacity
:
1
}}
@keyframes
tooltip-appear
{
from
{
opacity
:
0
}
to
{
opacity
:
1
}}
.vditor-tooltipped
{
position
:
relative
;
cursor
:
pointer
}
.vditor-tooltipped
::after
{
position
:
absolute
;
z-index
:
1000000
;
display
:
none
;
padding
:
5px
8px
;
font-size
:
11px
;
font-weight
:
normal
;
-webkit-font-smoothing
:
subpixel-antialiased
;
color
:
#fff
;
text-align
:
center
;
text-decoration
:
none
;
text-shadow
:
none
;
text-transform
:
none
;
letter-spacing
:
normal
;
word-wrap
:
break-word
;
white-space
:
pre
;
pointer-events
:
none
;
content
:
attr
(
aria-label
);
background
:
rgba
(
0
,
0
,
0
,
0.8
);
border-radius
:
3px
;
line-height
:
16px
;
opacity
:
0
}
.vditor-tooltipped
::before
{
position
:
absolute
;
z-index
:
1000001
;
display
:
none
;
width
:
0
;
height
:
0
;
color
:
rgba
(
0
,
0
,
0
,
0.8
);
pointer-events
:
none
;
content
:
""
;
border
:
5px
solid
transparent
;
opacity
:
0
}
.vditor-tooltipped--hover
::before
,
.vditor-tooltipped--hover
::after
,
.vditor-tooltipped
:hover::before
,
.vditor-tooltipped
:hover::after
,
.vditor-tooltipped
:active::before
,
.vditor-tooltipped
:active::after
,
.vditor-tooltipped
:focus::before
,
.vditor-tooltipped
:focus::after
{
display
:
inline-block
;
text-decoration
:
none
;
-webkit-animation-name
:
tooltip-appear
;
animation-name
:
tooltip-appear
;
-webkit-animation-duration
:
0.15s
;
animation-duration
:
0.15s
;
-webkit-animation-fill-mode
:
forwards
;
animation-fill-mode
:
forwards
;
-webkit-animation-timing-function
:
ease-in
;
animation-timing-function
:
ease-in
}
.vditor-tooltipped__s
::after
,
.vditor-tooltipped__se
::after
,
.vditor-tooltipped__sw
::after
{
top
:
100%
;
right
:
50%
;
margin-top
:
5px
}
.vditor-tooltipped__s
::before
,
.vditor-tooltipped__se
::before
,
.vditor-tooltipped__sw
::before
{
top
:
auto
;
right
:
50%
;
bottom
:
-5px
;
margin-right
:
-5px
;
border-bottom-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
.vditor-tooltipped__se
::after
{
right
:
auto
;
left
:
50%
;
margin-left
:
-15px
}
.vditor-tooltipped__sw
::after
{
margin-right
:
-15px
}
.vditor-tooltipped__n
::after
,
.vditor-tooltipped__ne
::after
,
.vditor-tooltipped__nw
::after
{
right
:
50%
;
bottom
:
100%
;
margin-bottom
:
5px
}
.vditor-tooltipped__n
::before
,
.vditor-tooltipped__ne
::before
,
.vditor-tooltipped__nw
::before
{
top
:
-5px
;
right
:
50%
;
bottom
:
auto
;
margin-right
:
-5px
;
border-top-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
.vditor-tooltipped__ne
::after
{
right
:
auto
;
left
:
50%
;
margin-left
:
-15px
}
.vditor-tooltipped__nw
::after
{
margin-right
:
-15px
}
.vditor-tooltipped__s
::after
,
.vditor-tooltipped__n
::after
{
-webkit-transform
:
translateX
(
50%
);
transform
:
translateX
(
50%
)}
.vditor-tooltipped__w
::after
{
right
:
100%
;
bottom
:
50%
;
margin-right
:
5px
;
-webkit-transform
:
translateY
(
50%
);
transform
:
translateY
(
50%
)}
.vditor-tooltipped__w
::before
{
top
:
50%
;
bottom
:
50%
;
left
:
-5px
;
margin-top
:
-5px
;
border-left-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
.vditor-tooltipped__e
::after
{
bottom
:
50%
;
left
:
100%
;
margin-left
:
5px
;
-webkit-transform
:
translateY
(
50%
);
transform
:
translateY
(
50%
)}
.vditor-tooltipped__e
::before
{
top
:
50%
;
right
:
-5px
;
bottom
:
50%
;
margin-top
:
-5px
;
border-right-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
@-webkit-keyframes
scale-in
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
scale-in
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.vditor-panel
{
background-color
:
#fff
;
position
:
absolute
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
3px
;
padding
:
5px
;
z-index
:
3
;
font-size
:
14px
;
display
:
none
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
max-width
:
320px
;
min-width
:
80px
;
-webkit-animation-duration
:
.15s
;
animation-duration
:
.15s
;
-webkit-animation-name
:
scale-in
;
animation-name
:
scale-in
;
-webkit-animation-timing-function
:
cubic-bezier
(
0.2
,
0
,
0.13
,
1.5
);
animation-timing-function
:
cubic-bezier
(
0.2
,
0
,
0.13
,
1.5
)}
.vditor-panel--none
{
color
:
#4285f4
;
padding
:
0
;
-webkit-animation
:
none
;
animation
:
none
;
background-color
:
#f6f8fa
;
min-width
:
auto
;
max-width
:
none
}
.vditor-panel
h1
,
.vditor-panel
h2
,
.vditor-panel
h3
,
.vditor-panel
h4
,
.vditor-panel
h5
,
.vditor-panel
h6
{
margin
:
0
;
cursor
:
pointer
;
padding
:
3px
10px
;
border-radius
:
3px
;
line-height
:
normal
}
.vditor-panel
h1
:hover
,
.vditor-panel
h2
:hover
,
.vditor-panel
h3
:hover
,
.vditor-panel
h4
:hover
,
.vditor-panel
h5
:hover
,
.vditor-panel
h6
:hover
{
background-color
:
#4285f4
;
color
:
#fff
}
.vditor-input
{
border
:
0
;
padding
:
3px
5px
;
background-color
:
#f6f8fa
}
.vditor-input
:focus
{
background-color
:
#fff
;
outline
:
none
}
.vditor-icon
{
color
:
#586069
;
cursor
:
pointer
;
float
:
left
;
padding
:
2px
5px
;
height
:
19px
;
width
:
25px
;
background-color
:
transparent
;
border
:
0
;
box-sizing
:
border-box
}
.vditor-icon
:hover
,
.vditor-icon--current
{
color
:
#4285f4
;
background-color
:
transparent
}
.vditor-icon
:focus
{
outline
:
none
}
.vditor-icon
svg
{
height
:
15px
!important
;
width
:
15px
!important
;
float
:
left
;
fill
:
currentColor
}
.vditor-toolbar
{
background-color
:
#f6f8fa
;
border-bottom
:
1px
solid
#d1d5da
;
padding
:
0
5px
;
border-radius
:
3px
3px
0
0
}
.vditor-toolbar
>
div
{
float
:
left
}
.vditor-toolbar
>
div
>
.vditor-tooltipped
{
border
:
0
;
margin
:
0
;
padding
:
10px
5px
;
background-color
:
transparent
;
height
:
35px
;
width
:
25px
;
box-sizing
:
border-box
}
.vditor-toolbar
>
div
>
.vditor-tooltipped
:focus
{
outline
:
none
}
.vditor-toolbar
.vditor-tooltipped
{
color
:
#586069
}
.vditor-toolbar
.vditor-tooltipped
:hover
{
color
:
#4285f4
}
.vditor-toolbar
svg
{
fill
:
currentColor
;
display
:
inline-block
;
stroke-width
:
0
;
stroke
:
currentColor
;
width
:
15px
;
height
:
15px
}
.vditor-toolbar
input
{
position
:
absolute
;
width
:
25px
;
height
:
35px
;
top
:
0
;
left
:
0
;
cursor
:
pointer
;
opacity
:
.001
;
overflow
:
hidden
}
.vditor-menu--current
svg
{
color
:
#4285f4
}
.vditor-menu__divider
{
width
:
10px
;
height
:
35px
}
.vditor-menu__br
{
width
:
100%
;
padding
:
0
!important
;
height
:
0
!important
}
.vditor-menu--disabled
svg
{
color
:
rgba
(
88
,
96
,
105
,
0.6
);
cursor
:
not-allowed
}
.vditor-emojis
{
display
:
inline-block
;
overflow
:
auto
}
.vditor-emojis
::-webkit-scrollbar
{
display
:
none
}
.vditor-emojis__tip
{
-webkit-box-flex
:
1
;
flex
:
1
;
width
:
200px
;
margin-right
:
10px
;
color
:
#586069
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
}
.vditor-emojis__tail
{
margin-top
:
5px
;
font-size
:
12px
;
color
:
#586069
;
display
:
-webkit-box
;
display
:
flex
}
.vditor-emojis__tail
a
{
text-decoration
:
none
;
color
:
#586069
}
.vditor-emojis__tail
a
:hover
{
color
:
#4285f4
}
.vditor-emojis
button
{
cursor
:
pointer
;
border-radius
:
3px
;
float
:
left
;
height
:
30px
;
width
:
30px
;
text-align
:
center
;
line-height
:
26px
;
padding
:
3px
;
box-sizing
:
border-box
;
font-size
:
16px
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
;
border
:
0
;
margin
:
0
;
background-color
:
transparent
;
overflow
:
hidden
}
.vditor-emojis
button
:focus
{
outline
:
none
}
.vditor-emojis
button
:hover
.vditor-emojis__icon
{
display
:
inline-block
;
-webkit-transform
:
scale
(
1.2
);
transform
:
scale
(
1.2
)}
.vditor-emojis
img
{
height
:
20px
;
width
:
20px
;
float
:
left
;
margin
:
3px
0
0
3px
}
@-webkit-keyframes
slideInDown
{
from
{
-webkit-transform
:
translate3d
(
0
,
-100%
,
0
);
transform
:
translate3d
(
0
,
-100%
,
0
);
visibility
:
visible
}
to
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)}}
@keyframes
slideInDown
{
from
{
-webkit-transform
:
translate3d
(
0
,
-100%
,
0
);
transform
:
translate3d
(
0
,
-100%
,
0
);
visibility
:
visible
}
to
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)}}
.vditor
{
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-orient
:
vertical
;
-webkit-box-direction
:
normal
;
flex-direction
:
column
;
border
:
1px
solid
#d1d5da
;
border-radius
:
3px
;
box-sizing
:
border-box
;
font-family
:
"Helvetica Neue"
,
"Luxi Sans"
,
"DejaVu Sans"
,
Tahoma
,
"Hiragino Sans GB"
,
"Microsoft Yahei"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
}
.vditor--fullscreen
{
position
:
fixed
;
top
:
0
;
width
:
100%
!important
;
left
:
0
;
height
:
100vh
!important
;
z-index
:
90
;
background-color
:
#fff
}
.vditor-content
{
display
:
-webkit-box
;
display
:
flex
;
min-height
:
60px
;
-webkit-box-flex
:
1
;
flex
:
1
;
position
:
relative
}
.vditor-textarea
{
font-family
:
"Helvetica Neue"
,
"Luxi Sans"
,
"DejaVu Sans"
,
Tahoma
,
"Hiragino Sans GB"
,
"Microsoft Yahei"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
margin
:
0
1px
0
0
;
height
:
100%
;
overflow
:
auto
;
width
:
100%
;
-webkit-box-flex
:
1
;
flex
:
1
;
border
:
0
;
resize
:
none
;
padding
:
10px
9px
10px
10px
;
box-sizing
:
border-box
;
background-color
:
#fafbfc
;
outline
:
0
none
;
font-size
:
16px
;
line-height
:
22px
;
color
:
#24292e
;
border-radius
:
0
0
3px
3px
;
font-variant-ligatures
:
no-common-ligatures
;
white-space
:
pre-wrap
;
word-break
:
break-word
;
word-wrap
:
break-word
}
.vditor-textarea
[
contenteditable
=
"false"
]
{
opacity
:
0.3
;
cursor
:
not-allowed
}
.vditor-textarea
:focus
{
background-color
:
#fff
}
.vditor-textarea
:empty::before
{
content
:
attr
(
placeholder
);
color
:
rgba
(
36
,
41
,
46
,
0.68
)}
.vditor-preview
{
-webkit-box-flex
:
1
;
flex
:
1
;
background-color
:
#fff
;
overflow
:
auto
;
margin-left
:
-1px
;
padding
:
10px
;
box-shadow
:
inset
1px
0
#d1d5da
;
box-sizing
:
border-box
;
border-radius
:
0
0
3px
0
}
.vditor-preview
>
div
::-webkit-scrollbar
{
display
:
none
}
.vditor-preview
>
.vditor-reset
{
margin
:
0
auto
}
.vditor-devtools
{
display
:
none
;
background-color
:
#fff
;
overflow
:
auto
;
-webkit-box-flex
:
1
;
flex
:
1
;
box-shadow
:
inset
1px
0
#d1d5da
;
box-sizing
:
border-box
;
border-radius
:
0
0
3px
0
;
padding
:
10px
}
.vditor-counter
{
padding
:
0
3px
;
position
:
absolute
;
bottom
:
10px
;
right
:
20px
;
color
:
#24292e
;
background-color
:
rgba
(
255
,
255
,
255
,
0.6
);
border-radius
:
3px
;
font-size
:
12px
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
z-index
:
2
}
.vditor-counter--error
{
color
:
#d23f31
;
background-color
:
rgba
(
210
,
63
,
49
,
0.1
)}
.vditor-resize
{
padding
:
3px
0
;
cursor
:
row-resize
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
position
:
absolute
;
width
:
100%
;
z-index
:
2
}
.vditor-resize--top
{
top
:
-3px
}
.vditor-resize--bottom
{
bottom
:
-3px
}
.vditor-resize
>
div
{
height
:
3px
;
background-color
:
#f6f8fa
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
}
.vditor-resize
:hover
>
div
,
.vditor-resize--selected
>
div
{
background-color
:
#4285f4
}
.vditor-resize
:hover
svg
,
.vditor-resize--selected
svg
{
color
:
#fff
}
.vditor-resize
svg
{
fill
:
currentColor
;
stroke-width
:
0
;
stroke
:
currentColor
;
width
:
13px
;
height
:
3px
;
display
:
block
;
margin
:
0
auto
;
color
:
#586069
}
.vditor-upload
{
position
:
absolute
;
height
:
3px
;
left
:
0
;
top
:
-2px
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
;
background-color
:
rgba
(
66
,
133
,
244
,
0.8
)}
.vditor-tip
{
position
:
absolute
;
font-size
:
12px
;
top
:
10px
;
color
:
#fff
;
-webkit-animation-duration
:
.15s
;
animation-duration
:
.15s
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
left
:
50%
}
.vditor-tip--show
{
display
:
block
;
-webkit-animation-name
:
slideInDown
;
animation-name
:
slideInDown
}
.vditor-tip__content
{
text-align
:
left
;
display
:
inline-block
;
line-height
:
16px
;
padding
:
3px
10px
;
border-radius
:
3px
;
background
:
rgba
(
66
,
133
,
244
,
0.8
);
position
:
relative
;
margin-left
:
-50%
}
.vditor-tip__content
ul
{
margin
:
2px
0
;
padding
:
0
0
0
18px
}
.vditor-tip__close
{
position
:
absolute
;
color
:
#586069
;
top
:
-7px
;
right
:
-15px
;
font-weight
:
bold
;
cursor
:
pointer
}
.vditor-tip__close
:hover
{
color
:
#4285f4
}
.vditor-hint
{
background-color
:
#fff
;
position
:
absolute
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
3px
;
padding
:
5px
0
;
z-index
:
4
;
line-height
:
20px
;
list-style
:
none
;
color
:
#24292e
;
font-size
:
12px
;
margin
:
0
;
max-width
:
250px
;
min-width
:
80px
;
display
:
none
}
.vditor-hint
button
{
display
:
block
;
padding
:
3px
10px
;
border
:
0
;
border-bottom
:
1px
solid
#d1d5da
;
line-height
:
20px
;
width
:
100%
;
box-sizing
:
border-box
;
text-align
:
left
;
margin
:
0
;
background-color
:
transparent
}
.vditor-hint
button
:last-child
{
border-bottom
:
0
}
.vditor-hint--current
,
.vditor-hint
button
:hover
{
background-color
:
#4285f4
!important
;
color
:
#fff
}
.vditor-hint__emoji
{
font-size
:
16px
;
float
:
left
;
margin-right
:
3px
}
.vditor-hint
img
{
height
:
20px
;
width
:
20px
;
float
:
left
;
margin-right
:
3px
}
.vditor-reset
{
font-variant-ligatures
:
no-common-ligatures
;
font-family
:
"Helvetica Neue"
,
"Luxi Sans"
,
"DejaVu Sans"
,
Tahoma
,
"Hiragino Sans GB"
,
"Microsoft Yahei"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
word-wrap
:
break-word
;
overflow
:
auto
;
line-height
:
1.5
;
font-size
:
16px
;
word-break
:
break-word
}
.vditor-reset--anchor
{
padding-left
:
20px
}
.vditor-reset--error
{
color
:
#d23f31
;
font-size
:
12px
;
display
:
block
;
line-height
:
16px
}
.vditor-reset
ul
ul
ul
{
list-style-type
:
square
}
.vditor-reset
ul
ul
{
list-style-type
:
circle
}
.vditor-reset
ul
{
list-style-type
:
disc
}
.vditor-reset
ul
,
.vditor-reset
ol
{
padding-left
:
2em
;
margin-top
:
0
;
margin-bottom
:
16px
}
.vditor-reset
li
+
li
{
margin-top
:
0.25em
}
.vditor-reset
audio
{
max-width
:
100%
}
.vditor-reset
audio
:focus
{
outline
:
none
}
.vditor-reset
video
{
max-height
:
90vh
;
max-width
:
100%
}
.vditor-reset
img
{
max-width
:
100%
}
.vditor-reset
img
.emoji
{
cursor
:
auto
;
max-width
:
20px
;
vertical-align
:
sub
}
.vditor-reset
h1
,
.vditor-reset
h2
,
.vditor-reset
h3
,
.vditor-reset
h4
,
.vditor-reset
h5
,
.vditor-reset
h6
{
margin-top
:
24px
;
margin-bottom
:
16px
;
font-weight
:
600
;
line-height
:
1.25
}
.vditor-reset
h1
:hover
.vditor-anchor
svg
,
.vditor-reset
h2
:hover
.vditor-anchor
svg
,
.vditor-reset
h3
:hover
.vditor-anchor
svg
,
.vditor-reset
h4
:hover
.vditor-anchor
svg
,
.vditor-reset
h5
:hover
.vditor-anchor
svg
,
.vditor-reset
h6
:hover
.vditor-anchor
svg
{
visibility
:
visible
}
.vditor-reset
h1
{
padding-bottom
:
0.3em
;
font-size
:
1.7em
;
border-bottom
:
1px
solid
#eee
}
.vditor-reset
h2
{
padding-bottom
:
0.3em
;
font-size
:
1.5em
;
border-bottom
:
1px
solid
#eee
}
.vditor-reset
h3
{
font-size
:
1.25em
}
.vditor-reset
h4
{
font-size
:
1em
}
.vditor-reset
h5
{
font-size
:
0.875em
}
.vditor-reset
h6
{
font-size
:
0.85em
}
.vditor-reset
hr
{
height
:
2px
;
padding
:
0
;
margin
:
24px
0
;
background-color
:
#e7e7e7
;
border
:
0
}
.vditor-reset
p
{
margin-top
:
0
;
margin-bottom
:
16px
}
.vditor-reset
blockquote
{
padding
:
0
1em
;
color
:
#777
;
border-left
:
0.25em
solid
#ddd
;
margin
:
0
0
16px
0
}
.vditor-reset
blockquote
p
{
margin
:
0
}
.vditor-reset
ins
>
iframe
{
border
:
0
}
.vditor-reset
iframe
{
border
:
1px
solid
#d1d5da
;
max-width
:
100%
;
box-sizing
:
border-box
}
.vditor-reset
iframe
.iframe__video
{
min-width
:
80%
;
min-height
:
36vh
}
.vditor-reset
table
{
width
:
100%
;
border-collapse
:
collapse
;
empty-cells
:
show
;
margin-bottom
:
16px
;
display
:
block
;
overflow
:
auto
;
border-spacing
:
0
}
.vditor-reset
table
tr
{
background-color
:
#fff
;
border-top
:
1px
solid
#c6cbd1
}
.vditor-reset
table
td
,
.vditor-reset
table
th
{
padding
:
6px
13px
;
border
:
1px
solid
#dfe2e5
;
word-break
:
normal
}
.vditor-reset
table
th
{
font-weight
:
600
}
.vditor-reset
table
tbody
tr
:nth-child
(
2n
)
{
background-color
:
#f6f8fa
}
.vditor-reset
code
:not
(
.hljs
)
:not
(
.highlight-chroma
)
{
padding
:
0.2em
0.4em
;
margin
:
0
;
font-size
:
85%
;
border-radius
:
3px
;
font-family
:
mononoki
,
Consolas
,
"Liberation Mono"
,
Menlo
,
Courier
,
monospace
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
word-break
:
break-word
;
background-size
:
20px
20px
;
white-space
:
pre-wrap
;
background-color
:
rgba
(
27
,
31
,
35
,
0.05
)}
.vditor-reset
pre
>
code
{
margin
:
0
;
font-size
:
85%
;
padding
:
0.5em
;
border-radius
:
5px
;
display
:
block
;
overflow
:
auto
;
white-space
:
pre
;
font-family
:
mononoki
,
Consolas
,
"Liberation Mono"
,
Menlo
,
Courier
,
monospace
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
background-size
:
20px
20px
;
background-image
:
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==)
;
word-break
:
initial
;
word-wrap
:
normal
}
.vditor-reset
pre
:hover
div
.vditor-copy
{
display
:
block
}
.vditor-reset
kbd
{
display
:
inline-block
;
padding
:
3px
5px
;
font
:
11px
Consolas
,
"Liberation Mono"
,
Menlo
,
Courier
,
monospace
;
line-height
:
10px
;
color
:
#555
;
vertical-align
:
middle
;
background-color
:
#fcfcfc
;
border
:
solid
1px
#d1d5da
;
border-bottom-color
:
#bbb
;
border-radius
:
3px
;
box-shadow
:
inset
0
-1px
0
#bbb
}
.vditor-reset
summary
{
cursor
:
pointer
}
.vditor-reset
summary
:focus
{
outline
:
none
}
.vditor-reset
svg
{
height
:
auto
;
width
:
auto
}
.vditor-reset
p
:last-child
,
.vditor-reset
blockquote
:last-child
,
.vditor-reset
pre
:last-child
,
.vditor-reset
ul
:last-child
,
.vditor-reset
ol
:last-child
,
.vditor-reset
hr
:last-child
{
margin-bottom
:
0
}
.vditor-reset
.language-echarts
{
overflow
:
hidden
;
height
:
420px
}
.vditor-task
{
list-style
:
none
}
.vditor-task
input
{
margin
:
0
.2em
.25em
-1.6em
;
font-size
:
12px
;
vertical-align
:
middle
}
.vditor-copy
{
position
:
relative
;
display
:
none
;
z-index
:
1
}
.vditor-copy
textarea
{
position
:
absolute
;
left
:
-100000px
;
height
:
10px
}
.vditor-copy
span
{
cursor
:
pointer
;
position
:
absolute
;
right
:
0.5em
;
top
:
0.5em
;
height
:
14px
;
width
:
14px
;
display
:
block
;
background-color
:
#f6f8fa
;
border-radius
:
3px
;
padding
:
3px
}
.vditor-copy
svg
{
color
:
#586069
;
height
:
14px
;
width
:
14px
!important
;
display
:
block
;
fill
:
currentColor
}
.vditor-linenumber
{
padding-left
:
4em
!important
;
position
:
relative
}
.vditor-linenumber__rows
{
position
:
absolute
;
pointer-events
:
none
;
top
:
0.5em
;
left
:
0
;
width
:
3em
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
counter-reset
:
linenumber
}
.vditor-linenumber__rows
>
span
{
pointer-events
:
none
;
display
:
block
}
.vditor-linenumber__rows
>
span
::before
{
counter-increment
:
linenumber
;
content
:
counter
(
linenumber
);
color
:
rgba
(
158
,
150
,
150
,
0.38
);
display
:
block
;
padding-right
:
1em
;
text-align
:
right
}
.vditor-speech
{
position
:
absolute
;
display
:
none
;
background-color
:
#f6f8fa
;
border
:
1px
solid
#d1d5da
;
border-radius
:
3px
;
padding
:
3px
;
cursor
:
pointer
;
color
:
#586069
}
.vditor-speech
:hover
,
.vditor-speech--current
{
color
:
#4285f4
}
.vditor-speech
svg
{
height
:
14px
;
width
:
14px
;
fill
:
currentColor
;
display
:
block
;
stroke-width
:
0
;
stroke
:
currentColor
}
.vditor-anchor
{
float
:
left
;
padding-right
:
4px
;
margin-left
:
-20px
}
.vditor-anchor
svg
{
visibility
:
hidden
}
.vditor-anchor
:hover
svg
{
visibility
:
visible
}
.vditor-anchor
:focus
{
outline
:
none
}
.vditor-linkcard
{
margin
:
31px
auto
16px
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
;
cursor
:
pointer
;
max-width
:
768px
;
padding
:
0
10px
}
.vditor-linkcard
a
{
border-radius
:
3px
;
background-color
:
#f6f8fa
;
overflow
:
hidden
;
max-height
:
250px
;
display
:
-webkit-box
;
display
:
flex
;
text-decoration
:
none
;
flex-wrap
:
wrap-reverse
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.2
)}
.vditor-linkcard
a
:hover
{
box-shadow
:
0
0
3px
rgba
(
0
,
0
,
0
,
0.13
),
0
3px
6px
rgba
(
0
,
0
,
0
,
0.26
);
text-decoration
:
none
}
.vditor-linkcard
a
:visited
.vditor-linkcard__abstract
{
color
:
rgba
(
88
,
96
,
105
,
0.6
)}
.vditor-linkcard__info
{
padding
:
10px
;
min-width
:
200px
;
box-sizing
:
border-box
;
-webkit-box-flex
:
1
;
flex
:
1
}
.vditor-linkcard__title
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#24292e
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-align
:
center
;
align-items
:
center
}
.vditor-linkcard__title
img
{
cursor
:
pointer
;
height
:
20px
;
width
:
20px
;
border-radius
:
3px
;
flex-shrink
:
0
;
margin-right
:
5px
}
.vditor-linkcard__abstract
{
word-wrap
:
break-word
;
word-break
:
break-all
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-box-orient
:
vertical
;
display
:
-webkit-box
;
font-size
:
13px
;
color
:
#586069
;
margin
:
5px
0
}
.vditor-linkcard__site
{
font-size
:
12px
;
color
:
#4285f4
}
.vditor-linkcard__image
{
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-position
:
center
center
;
max-width
:
250px
;
min-width
:
126px
;
cursor
:
pointer
;
background-color
:
#fff
}
.vditor-wysiwyg
{
background-color
:
#fafbfc
;
box-sizing
:
border-box
;
-webkit-box-flex
:
1
;
flex
:
1
;
margin
:
0
;
white-space
:
pre-wrap
;
position
:
relative
}
.vditor-wysiwyg
[
contenteditable
=
"false"
]
{
opacity
:
0.3
;
cursor
:
not-allowed
}
.vditor-wysiwyg
:focus
{
outline
:
none
;
background-color
:
#fff
}
.vditor-wysiwyg
blockquote
:empty::before
,
.vditor-wysiwyg
pre
>
code
:empty::before
{
content
:
' '
}
.vditor-wysiwyg__block
[
data-type
=
"html-block"
]>
pre
,
.vditor-wysiwyg__block
[
data-type
=
"math-block"
]>
pre
{
margin-bottom
:
0
}
.vditor-wysiwyg__block
>
pre
{
margin-bottom
:
-1em
}
.vditor-wysiwyg__block
>
pre
>
code
{
background-color
:
#fff
!important
;
border
:
1px
solid
#d1d5da
;
overflow
:
auto
!important
}
.vditor-wysiwyg__block
[
data-type
=
html-inline
]
.vditor-wysiwyg__preview
svg
{
fill
:
rgba
(
88
,
96
,
105
,
0.36
);
height
:
12px
;
cursor
:
pointer
;
width
:
12px
}
.vditor-wysiwyg__preview
{
cursor
:
pointer
;
white-space
:
initial
;
min-height
:
27px
}
.vditor-wysiwyg__preview
pre
{
margin-bottom
:
1em
!important
}
.vditor-wysiwyg
h1
:before
,
.vditor-wysiwyg
h2
:before
,
.vditor-wysiwyg
h3
:before
,
.vditor-wysiwyg
h4
:before
,
.vditor-wysiwyg
h5
:before
,
.vditor-wysiwyg
h6
:before
,
.vditor-wysiwyg
div
.vditor-wysiwyg__block
:before
{
float
:
left
;
padding-right
:
4px
;
margin-left
:
-29px
;
content
:
'h1'
;
font-size
:
0.85rem
;
font-weight
:
normal
;
text-transform
:
uppercase
;
color
:
rgba
(
88
,
96
,
105
,
0.36
)}
.vditor-wysiwyg
h2
:before
{
content
:
'h2'
}
.vditor-wysiwyg
h3
:before
{
content
:
'h3'
}
.vditor-wysiwyg
h4
:before
{
content
:
'h4'
}
.vditor-wysiwyg
h5
:before
{
content
:
'h5'
}
.vditor-wysiwyg
h6
:before
{
content
:
'h6'
}
.vditor-wysiwyg
div
.vditor-wysiwyg__block
:before
{
content
:
"</>"
}
.vditor-wysiwyg
details
{
white-space
:
initial
}
.vditor-wysiwyg
span
[
data-type
=
"backslash"
]>
span
{
display
:
none
;
color
:
rgba
(
88
,
96
,
105
,
0.36
)}
.user__site
{
float
:
left
;
margin-left
:
10px
}
.user__site
svg
{
height
:
20px
;
width
:
20px
;
fill
:
currentColor
}
html
{
height
:
100%
;
max-height
:
100%
;
font-size
:
62.5%
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
)}
body
{
height
:
100%
;
max-height
:
100%
;
font-family
:
"Merriweather"
,
"Microsoft Yahei"
,
'Helvetica'
;
letter-spacing
:
0.01rem
;
font-size
:
1.8rem
;
line-height
:
1.75em
;
color
:
#3A4145
;
-webkit-font-feature-settings
:
'kern'
1
;
-moz-font-feature-settings
:
'kern'
1
;
-o-font-feature-settings
:
'kern'
1
;
text-rendering
:
geometricPrecision
;
margin
:
0
}
::-moz-selection
{
background
:
#D6EDFF
}
::selection
{
background
:
#D6EDFF
}
a
{
color
:
#4A4A4A
;
-webkit-transition
:
color
0.3s
ease
;
transition
:
color
0.3s
ease
}
a
:hover
{
color
:
#111
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
-webkit-font-feature-settings
:
'dlig'
1
,
'liga'
1
,
'lnum'
1
,
'kern'
1
;
-moz-font-feature-settings
:
'dlig'
1
,
'liga'
1
,
'lnum'
1
,
'kern'
1
;
-o-font-feature-settings
:
'dlig'
1
,
'liga'
1
,
'lnum'
1
,
'kern'
1
;
color
:
#2E2E2E
;
line-height
:
1.15em
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
text-rendering
:
geometricPrecision
}
h1
{
font-size
:
5rem
}
h2
{
font-size
:
3.6rem
}
h3
{
font-size
:
3rem
}
h4
{
font-size
:
2.5rem
}
h5
{
font-size
:
2rem
}
h6
{
font-size
:
2rem
}
img
{
max-width
:
100%
;
height
:
auto
}
p
,
ul
,
ol
,
dl
{
-webkit-font-feature-settings
:
'liga'
1
,
'onum'
1
,
'kern'
1
;
-moz-font-feature-settings
:
'liga'
1
,
'onum'
1
,
'kern'
1
;
-o-font-feature-settings
:
'liga'
1
,
'onum'
1
,
'kern'
1
;
margin
:
0
0
1.75em
0
;
text-rendering
:
geometricPrecision
}
ol
,
ul
{
padding-left
:
3rem
}
ol
ol
,
ul
ul
,
ul
ol
,
ol
ul
{
padding-left
:
2em
;
margin-bottom
:
0
}
dl
dt
{
float
:
left
;
width
:
180px
;
overflow
:
hidden
;
clear
:
left
;
text-align
:
right
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
font-weight
:
700
;
margin-bottom
:
1em
}
dl
dd
{
margin-left
:
200px
;
margin-bottom
:
1em
}
li
li
{
margin
:
0
}
hr
{
display
:
block
;
height
:
1px
;
border
:
0
;
border-top
:
#EFEFEF
1px
solid
;
margin
:
3.2em
0
;
padding
:
0
}
blockquote
{
box-sizing
:
border-box
;
margin
:
1.75em
0
1.75em
0
;
padding
:
0
0
0
1.75em
;
border-left
:
#4A4A4A
0.4em
solid
}
blockquote
p
{
margin
:
0.8em
0
;
font-style
:
italic
}
blockquote
small
{
display
:
inline-block
;
margin
:
0.8em
0
0.8em
1.5em
;
font-size
:
0.9em
;
color
:
#CCC
}
blockquote
small
:before
{
content
:
"\2014 \00A0"
}
blockquote
cite
{
font-weight
:
700
}
blockquote
cite
a
{
font-weight
:
normal
}
mark
{
background-color
:
#fdffb6
}
code
,
tt
{
padding
:
1px
3px
;
font-family
:
Inconsolata
,
monospace
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
0.85em
;
white-space
:
pre-wrap
;
border
:
#E3EDF3
1px
solid
;
background
:
#F7FAFB
;
border-radius
:
2px
}
pre
code
,
pre
tt
{
font-size
:
inherit
;
white-space
:
pre-wrap
;
background
:
transparent
;
border
:
none
;
padding
:
0
}
.fn-clear
:before
,
.fn-clear
:after
{
display
:
table
;
content
:
""
}
.fn-clear
:after
{
clear
:
both
}
.fn-left
{
float
:
left
}
.fn-right
{
float
:
right
}
.fn-none
{
display
:
none
}
.fn-vertical
{
display
:
table-cell
;
vertical-align
:
middle
}
.fn-wrap
{
width
:
80%
;
max-width
:
768px
;
margin
:
0
auto
}
@-webkit-keyframes
fade-in-down
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@keyframes
fade-in-down
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@-webkit-keyframes
bounce
{
0
%,
10
%,
25
%,
40
%,
50
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
20
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
30
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@keyframes
bounce
{
0
%,
20
%,
50
%,
80
%,
100
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
40
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
60
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@-webkit-keyframes
upbounce
{
0
%,
10
%,
25
%,
40
%,
50
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
20
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
30
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@keyframes
upbounce
{
0
%,
20
%,
50
%,
80
%,
100
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
40
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
60
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@font-face
{
font-family
:
'icomoon'
;
src
:
url("fonts/icomoon.eot?hvf32e")
;
src
:
url("fonts/icomoon.eot?hvf32e#iefix")
format
(
"embedded-opentype"
),
url("fonts/icomoon.ttf?hvf32e")
format
(
"truetype"
),
url("fonts/icomoon.woff?hvf32e")
format
(
"woff"
),
url("fonts/icomoon.svg?hvf32e#icomoon")
format
(
"svg"
);
font-weight
:
normal
;
font-style
:
normal
}
[
class
^=
"icon-"
],[
class
*=
" icon-"
]
{
font-size
:
2rem
;
font-family
:
'icomoon'
!important
;
speak
:
none
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
text-transform
:
none
;
line-height
:
1
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
}
.icon-qqz
:before
{
content
:
"\e902"
}
.icon-register
:before
{
content
:
"\e600"
}
.icon-logout
:before
{
content
:
"\e601"
}
.icon-setting
:before
{
content
:
"\e602"
}
.icon-gotop
:before
{
content
:
"\e60a"
}
.icon-twitter
:before
{
content
:
"\e60b"
}
.icon-login
:before
{
content
:
"\e611"
}
.icon-arrow-left
:before
{
content
:
"\f605"
}
.icon-menu
:before
{
line-height
:
38px
;
content
:
"\f609"
;
font-size
:
20px
}
.icon-wechat
:before
{
content
:
"\e903"
}
.icon-sitemap
:before
{
content
:
"\e900"
}
.icon-list
:before
{
content
:
"\e901"
}
.avatar
{
border-radius
:
100%
;
float
:
left
;
height
:
24px
;
margin-right
:
9px
;
width
:
24px
}
.avatar-warp
{
width
:
10%
;
padding-right
:
10px
;
box-sizing
:
border-box
}
.avatar-48
{
box-shadow
:
0
0
2px
#ddd
;
height
:
auto
;
width
:
48px
;
margin-right
:
10px
;
border-radius
:
24px
}
.form
{
width
:
100%
;
margin-top
:
50px
}
.form
input
,
.form
textarea
,
.form
button
{
border
:
1px
solid
#CCCCCC
;
background-color
:
#FAFAFA
;
border-radius
:
3px
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.075
)
inset
;
padding
:
7px
8px
;
width
:
100%
;
box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
font-family
:
"Microsoft Yahei"
,
'Helvetica'
;
outline
:
none
}
.form
button
{
width
:
auto
;
vertical-align
:
bottom
}
.form
input
:focus
,
.form
textarea
:focus
{
background-color
:
#FFF
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.075
)
inset
,
0
0
5px
rgba
(
81
,
167
,
232
,
0.5
);
border
:
1px
solid
#51A7E8
}
.error-msg
{
font-size
:
1.5rem
;
color
:
#9EABB3
}
.cmtFromSym
{
font-size
:
1rem
;
color
:
#9EABB3
}
.main-header
{
position
:
relative
;
display
:
table
;
width
:
100%
;
height
:
100vh
;
margin-bottom
:
5rem
;
text-align
:
center
;
background
:
#222
no-repeat
center
center
;
background-size
:
cover
;
overflow
:
hidden
;
background-image
:
url("../images/header-bg.jpg")
;
min-height
:
50vh
}
.site-wrapper
{
position
:
relative
;
z-index
:
10
;
min-height
:
100%
;
background
:
#fff
;
-webkit-transition
:
-webkit-transform
0.5s
ease
;
transition
:
-webkit-transform
0.5s
ease
;
transition
:
transform
0.5s
ease
;
transition
:
transform
0.5s
ease
,
-webkit-transform
0.5s
ease
}
.nav-opened
.site-wrapper
{
overflow-x
:
hidden
;
margin-right
:
240px
;
-webkit-transition
:
margin
0.3s
ease
;
transition
:
margin
0.3s
ease
}
.page-title
a
{
-webkit-animation
:
fade-in-down
0.6s
;
animation
:
fade-in-down
0.6s
;
-webkit-animation-delay
:
0.2s
;
animation-delay
:
0.2s
;
margin
:
10px
0
10px
0
;
font-size
:
5rem
;
letter-spacing
:
-1px
;
font-weight
:
700
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
color
:
#fff
;
text-shadow
:
0px
0px
3px
rgba
(
0
,
0
,
0
,
0.9
);
text-decoration
:
none
}
.page-description
,
.page-description
a
{
-webkit-animation
:
fade-in-down
0.9s
;
animation
:
fade-in-down
0.9s
;
-webkit-animation-delay
:
0.1s
;
animation-delay
:
0.1s
;
margin
:
0
;
font-size
:
2rem
;
line-height
:
1.5em
;
font-weight
:
400
;
letter-spacing
:
0.01rem
;
color
:
rgba
(
255
,
255
,
255
,
0.8
)}
.scroll-down
{
display
:
block
;
position
:
absolute
;
z-index
:
100
;
bottom
:
45px
;
left
:
50%
;
margin-left
:
-16px
;
width
:
34px
;
height
:
34px
;
font-size
:
34px
;
text-align
:
center
;
text-decoration
:
none
;
color
:
rgba
(
255
,
255
,
255
,
0.7
);
-webkit-animation
:
bounce
4s
2s
infinite
;
animation
:
bounce
4s
2s
infinite
}
.scroll-down
:hover
{
color
:
#fff
;
-webkit-animation
:
none
;
animation
:
none
}
.menu-button
{
position
:
fixed
;
box-sizing
:
border-box
;
display
:
inline-block
;
float
:
right
;
height
:
38px
;
padding
:
0
15px
;
opacity
:
1
;
font-size
:
12px
;
text-transform
:
uppercase
;
line-height
:
46px
;
border-radius
:
3px
;
-webkit-transition
:
all
0.5s
ease
;
transition
:
all
0.5s
ease
;
right
:
20px
;
top
:
40px
;
text-decoration
:
none
;
font-family
:
'Open Sans'
,
"Microsoft Yahei"
,
'Helvetica'
;
z-index
:
30
;
overflow
:
hidden
;
background-color
:
#111
;
border
:
1px
solid
#111
;
color
:
#fff
;
cursor
:
pointer
}
.menu-button
:hover
{
background
:
#fff
}
.menu-button
:focus
{
outline
:
0
}
.nav-closed
.menu-button
:hover
{
color
:
#222
}
.nav-opened
.menu-button
{
padding
:
0
12px
;
background
:
#111
;
border-color
:
#111
;
color
:
#fff
;
-webkit-transform
:
translate3D
(
50px
,
0
,
0
);
transform
:
translate3D
(
50px
,
0
,
0
);
-webkit-transition
:
all
0.3s
ease
;
transition
:
all
0.3s
ease
;
right
:
287px
;
z-index
:
10
;
width
:
46px
;
border-radius
:
3px
0
0
3px
}
.menu-button
.word
{
float
:
right
;
margin
:
-4px
0
0
10px
}
.nav
{
position
:
fixed
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-orient
:
vertical
;
-webkit-box-direction
:
normal
;
flex-direction
:
column
;
top
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
5
;
width
:
220px
;
padding
:
10px
10px
0
10px
;
opacity
:
0
;
background
:
#111
;
margin-bottom
:
0
;
text-align
:
left
;
overflow-y
:
auto
;
color
:
#FFF
;
-webkit-transition
:
-webkit-transform
0.5s
ease
,
opacity
0.3s
ease
0.7s
;
-webkit-transition
:
opacity
0.3s
ease
0.7s
,
-webkit-transform
0.5s
ease
;
transition
:
opacity
0.3s
ease
0.7s
,
-webkit-transform
0.5s
ease
;
transition
:
transform
0.5s
ease
,
opacity
0.3s
ease
0.7s
;
transition
:
transform
0.5s
ease
,
opacity
0.3s
ease
0.7s
,
-webkit-transform
0.5s
ease
;
overflow-x
:
hidden
}
.nav
::-webkit-scrollbar
{
display
:
none
}
.nav
ul
{
-webkit-box-flex
:
1
;
flex
:
1
;
margin
:
0
;
padding
:
0px
0
5%
;
list-style
:
none
;
counter-reset
:
item
}
.nav
li
{
height
:
30px
;
line-height
:
1.4rem
}
.nav
li
:before
{
display
:
block
;
float
:
right
;
padding-right
:
4%
;
padding-left
:
5px
;
text-align
:
right
;
font-size
:
1.2rem
;
vertical-align
:
bottom
;
color
:
#B8B8B8
;
content
:
counter
(
item
,
lower-roman
);
counter-increment
:
item
;
line-height
:
2.5rem
}
.nav
a
{
color
:
#989898
;
text-decoration
:
none
;
line-height
:
1.4
;
font-size
:
1.4rem
}
.nav
a
:hover
,
.nav
a
.current
{
color
:
#FFF
}
.nav
li
a
{
display
:
block
;
padding
:
0.6rem
4%
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
}
.nav
li
a
:after
{
display
:
inline-block
;
content
:
" ......................................................."
;
color
:
rgba
(
255
,
255
,
255
,
0.2
);
margin-left
:
5px
}
.nav
.count
{
font-size
:
1rem
;
word-wrap
:
normal
;
word-break
:
break-all
;
white-space
:
nowrap
}
.nav
.page-icon
{
float
:
left
;
height
:
14px
;
width
:
14px
;
margin
:
3px
4px
0
0
}
body
.nav-closed
.nav
{
-webkit-transform
:
translate3D
(
240px
,
0
,
0
);
transform
:
translate3D
(
240px
,
0
,
0
)}
body
.nav-opened
.nav
{
opacity
:
1
;
-webkit-transition
:
-webkit-transform
0.3s
ease
,
opacity
0s
ease
0s
;
-webkit-transition
:
opacity
0s
ease
0s
,
-webkit-transform
0.3s
ease
;
transition
:
opacity
0s
ease
0s
,
-webkit-transform
0.3s
ease
;
transition
:
transform
0.3s
ease
,
opacity
0s
ease
0s
;
transition
:
transform
0.3s
ease
,
opacity
0s
ease
0s
,
-webkit-transform
0.3s
ease
;
-webkit-transform
:
translate3D
(
0
,
0
,
0
);
transform
:
translate3D
(
0
,
0
,
0
)}
article
.post
{
position
:
relative
;
margin
:
4rem
auto
;
padding-bottom
:
4rem
;
border-bottom
:
#EBF2F6
1px
solid
;
word-wrap
:
break-word
;
width
:
80%
}
article
.post
.share
{
position
:
relative
}
article
.post
.share
canvas
{
position
:
absolute
;
left
:
0
;
top
:
36px
}
.post-content--article
{
padding-bottom
:
10px
}
.post-content--article
::-webkit-scrollbar
{
display
:
none
}
article
.post
:after
{
display
:
block
;
content
:
""
;
width
:
7px
;
height
:
7px
;
border
:
#E7EEF2
1px
solid
;
position
:
absolute
;
bottom
:
-5px
;
left
:
50%
;
margin-left
:
-5px
;
background
:
#FFF
;
border-radius
:
100%
;
box-shadow
:
#FFF
0
0
0
5px
}
.post-title
a
{
text-decoration
:
none
}
.post-tip
{
display
:
inline-block
;
text-transform
:
uppercase
;
font-size
:
1.3rem
;
white-space
:
nowrap
;
color
:
#9EABB3
;
cursor
:
text
}
.post-tip
:hover
{
color
:
#9EABB3
}
.post-tip
:visited
{
color
:
#fff
}
.post-excerpt
p
{
margin
:
0
;
font-size
:
0.9em
;
line-height
:
1.7em
}
.post-meta
{
color
:
#9eabb3
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
1.5rem
;
line-height
:
2.2rem
;
margin
:
1.75rem
0
0
0
}
.post-meta
a
{
color
:
#9EABB3
;
text-decoration
:
none
}
.post-meta
a
:hover
{
text-decoration
:
underline
}
.post-meta
time
{
border-left
:
1px
solid
#d5dbde
;
display
:
inline-block
;
font-size
:
1.3rem
;
margin-left
:
8px
;
padding-left
:
12px
;
text-transform
:
uppercase
;
white-space
:
nowrap
}
.post-author
{
box-sizing
:
border-box
;
display
:
block
;
position
:
absolute
;
bottom
:
-57px
;
left
:
50%
;
margin-left
:
-40px
;
width
:
80px
;
height
:
80px
;
border-radius
:
100%
;
overflow
:
hidden
;
padding
:
6px
;
background
:
#fff
;
z-index
:
2
;
box-shadow
:
#E7EEF2
0
0
0
1px
}
.post-author
a
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
68px
;
height
:
68px
;
display
:
block
;
border-radius
:
35px
}
.share
.icon
{
cursor
:
pointer
;
-webkit-transition
:
all
0.2s
ease-out
0s
;
transition
:
all
0.2s
ease-out
0s
;
display
:
inline-block
;
font-size
:
16px
;
margin-top
:
15px
}
.share
.icon
:hover
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
color
:
#9EABB3
}
.icon-weibo
:before
{
content
:
"\e605"
}
.icon-twitter
:before
{
content
:
"\e60b"
}
.icon-tencent
:before
{
content
:
"\e60d"
}
.icon-google
:before
{
content
:
"\e603"
}
.icon-gotop
:before
{
content
:
"\E60A"
;
font-weight
:
bold
}
.icon-gotop
{
cursor
:
pointer
;
position
:
fixed
;
bottom
:
30px
;
right
:
30px
;
-webkit-animation
:
upbounce
4s
2s
infinite
;
animation
:
upbounce
4s
2s
infinite
;
text-decoration
:
none
;
z-index
:
12
}
.icon-gotop
:hover
{
color
:
#B8B8B8
;
-webkit-animation
:
none
;
animation
:
none
}
.pagination
{
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
1.3rem
;
color
:
#9eabb3
;
text-align
:
center
}
.pagination
a
{
color
:
#9EABB3
;
-webkit-transition
:
all
0.2s
ease
;
transition
:
all
0.2s
ease
;
padding
:
0
15px
;
border
:
#bfc8cd
1px
solid
;
text-decoration
:
none
;
display
:
inline-block
;
border-radius
:
4px
}
.pagination
a
:hover
{
border-color
:
#98a0a4
;
color
:
#889093
}
ul
.comments
{
padding
:
0
;
list-style
:
none
;
margin-top
:
100px
;
position
:
relative
}
.comments
li
{
padding
:
10px
;
white-space
:
normal
;
word-wrap
:
break-word
;
position
:
relative
;
border-bottom
:
#EBF2F6
1px
solid
}
.comments
li
:hover
{
background-color
:
#F7F7F7
}
.comments
li
img
{
vertical-align
:
sub
}
.comments
.comment-content
{
margin
:
8px
0
0
}
.comments
li
.comment-body-ref
{
position
:
absolute
;
z-index
:
10
;
background-color
:
#EBF2F6
;
border
:
#d5dbde
1px
solid
;
width
:
86%
;
left
:
69px
}
.comments
.post-meta
{
margin-top
:
0
}
#captcha
,
#captchaReply
{
height
:
27px
;
display
:
inline-block
;
vertical-align
:
inherit
}
.read-next
{
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-align
:
stretch
;
align-items
:
stretch
;
margin-top
:
10rem
}
.read-next-story
{
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-flex
:
1
;
flex-grow
:
1
;
min-width
:
50%
;
text-decoration
:
none
;
position
:
relative
;
text-align
:
center
;
color
:
#fff
;
background
:
#222
no-repeat
center
center
;
background-size
:
cover
;
overflow
:
hidden
}
.read-next-story
a
{
color
:
#BBB
}
.read-next-story
a
:hover
{
color
:
#FFF
}
.read-next-story
:hover:before
{
background
:
rgba
(
0
,
0
,
0
,
0.8
);
-webkit-transition
:
all
0.2s
ease
;
transition
:
all
0.2s
ease
}
.read-next-story
:hover
.post
:before
{
color
:
#222
;
background
:
#fff
;
-webkit-transition
:
all
0.2s
ease
;
transition
:
all
0.2s
ease
}
.read-next-story
:before
{
content
:
""
;
display
:
block
;
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.7
);
-webkit-transition
:
all
0.5s
ease
;
transition
:
all
0.5s
ease
}
.read-next-story
.post
{
padding-top
:
6rem
;
padding-bottom
:
6rem
;
width
:
80%
;
position
:
relative
;
margin
:
0
auto
}
.read-next-story
.post
:before
{
content
:
"Read This Next"
;
padding
:
4px
10px
5px
;
text-transform
:
uppercase
;
font-size
:
1.1rem
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
color
:
rgba
(
255
,
255
,
255
,
0.8
);
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0.5
);
border-radius
:
4px
;
-webkit-transition
:
all
0.5s
ease
;
transition
:
all
0.5s
ease
}
.read-next-story.prev
.post
:before
{
content
:
"Read This Before"
}
.read-next-story
h2
{
margin-top
:
1rem
;
color
:
#fff
}
.read-next-story
p
{
margin
:
0
;
color
:
rgba
(
255
,
255
,
255
,
0.8
)}
.read-next
+
.site-footer
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
margin
:
0
}
#tags
{
padding
:
0
}
#tags
li
{
list-style
:
none
;
float
:
left
}
#tags
li
a
{
border
:
1px
solid
#4A4A4A
;
display
:
inline-block
;
padding
:
10px
;
margin
:
1rem
;
border-radius
:
5px
;
text-decoration
:
none
}
#tags
li
a
:hover
{
border
:
1px
solid
#FFF
;
color
:
#FFF
;
background-color
:
#4A4A4A
}
.dynamic
.read-next-story
>
div
{
position
:
relative
;
width
:
60%
;
margin
:
50px
auto
;
text-align
:
left
}
.dynamic
a
{
text-decoration
:
none
;
margin
:
0
;
color
:
rgba
(
255
,
255
,
255
,
0.8
)}
.dynamic
a
:hover
{
color
:
rgba
(
255
,
255
,
255
,
0.5
)}
.site-footer
{
position
:
relative
;
margin
:
8rem
0
0
0
;
padding
:
1rem
15px
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
1rem
;
line-height
:
1.75em
;
color
:
#BBC7CC
}
.site-footer
a
{
color
:
#BBC7CC
;
font-weight
:
bold
;
text-decoration
:
none
}
.site-footer
a
:hover
{
text-decoration
:
underline
}
@media
only
screen
and
(
max-width
:
900px
){
blockquote
{
margin-left
:
0
}
.main-header
{
box-sizing
:
border-box
;
height
:
auto
;
min-height
:
240px
;
height
:
60vh
;
padding
:
15%
0
}
.scroll-down
{
display
:
none
}
.page-title
,
.page-title
a
{
font-size
:
4rem
;
letter-spacing
:
-1px
}
.page-description
,
.page-description
a
{
font-size
:
1.8rem
;
line-height
:
1.5em
}
.post
{
font-size
:
0.95em
}
hr
{
margin
:
2.4em
0
}
ol
,
ul
{
padding-left
:
2em
}
h1
{
font-size
:
4.5rem
}
h2
{
font-size
:
3.6rem
}
h3
{
font-size
:
3.1rem
}
h4
{
font-size
:
2.5rem
}
h5
{
font-size
:
2.2rem
}
h6
{
font-size
:
1.8rem
}
.read-next
{
-webkit-box-orient
:
vertical
;
-webkit-box-direction
:
normal
;
flex-direction
:
column
;
margin-top
:
4rem
}}
@media
only
screen
and
(
max-width
:
500px
){
.main-header
{
margin-bottom
:
15px
;
height
:
40vh
}
.pagination
{
width
:
auto
;
margin
:
2rem
auto
}
.post
{
width
:
auto
;
margin-top
:
2rem
;
margin-bottom
:
2rem
;
margin-left
:
16px
;
margin-right
:
16px
;
padding-bottom
:
2rem
;
line-height
:
1.65em
}
hr
{
margin
:
1.75em
0
}
p
,
ul
,
ol
,
dl
{
font-size
:
0.95em
;
margin
:
0
0
2.5rem
0
}
.page-title
,
.page-title
a
{
font-size
:
3rem
}
.post-excerpt
p
{
font-size
:
0.85em
}
.page-description
,
.page-description
a
{
font-size
:
1.6rem
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
margin
:
0
0
0.3em
0
}
h1
{
font-size
:
2.8rem
;
letter-spacing
:
-1px
}
h2
{
font-size
:
2.4rem
;
letter-spacing
:
0
}
h3
{
font-size
:
2.1rem
}
h4
{
font-size
:
1.9rem
}
h5
{
font-size
:
1.8rem
}
h6
{
font-size
:
1.8rem
}
.post-content
img
{
padding
:
0
;
width
:
calc
(
100%
+
32px
);
min-width
:
0
;
max-width
:
112%
}
.post-meta
{
font-size
:
1.3rem
;
margin-top
:
1rem
}
.site-footer
{
margin-top
:
3rem
}
.read-next
{
margin-top
:
2rem
;
margin-bottom
:
-37px
}
.read-next
.post
{
width
:
100%
}
.menu-button
{
border
:
0
;
top
:
0
;
right
:
0
}
.nav-opened
.site-wrapper
{
margin-right
:
0
}
.nav
{
z-index
:
11
}
.nav-closed
.menu-button
:hover
{
color
:
#FFF
;
background-color
:
transparent
}
.post-author
{
width
:
40px
;
height
:
40px
;
bottom
:
-37px
;
padding
:
3px
;
margin-left
:
-20px
}
.post-author
a
{
width
:
34px
;
height
:
34px
;
display
:
block
;
border-radius
:
17px
}
.nav
.count
{
line-height
:
1.5rem
}
#tags
li
a
{
padding
:
0
5px
}}
.article__toc
{
overflow
:
auto
}
.article__toc
::-webkit-scrollbar
{
display
:
none
}
.article__toc
li
{
list-style-type
:
none
}
.article__toc
li
a
{
padding-left
:
10px
;
display
:
block
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
}
.article__toc
li
a
:hover
{
text-decoration
:
none
}
.article__toc
li
.toc__h3
a
{
padding-left
:
20px
}
.article__toc
li
.toc__h4
a
{
padding-left
:
30px
}
.article__toc
li
.toc__h5
a
{
padding-left
:
40px
}
.user__site
:hover
{
text-decoration
:
none
}
@-webkit-keyframes
tooltip-appear
{
from
{
opacity
:
0
}
to
{
opacity
:
1
}}
@keyframes
tooltip-appear
{
from
{
opacity
:
0
}
to
{
opacity
:
1
}}
.vditor-tooltipped
{
position
:
relative
;
cursor
:
pointer
}
.vditor-tooltipped
::after
{
position
:
absolute
;
z-index
:
1000000
;
display
:
none
;
padding
:
5px
8px
;
font-size
:
11px
;
font-weight
:
normal
;
-webkit-font-smoothing
:
subpixel-antialiased
;
color
:
#fff
;
text-align
:
center
;
text-decoration
:
none
;
text-shadow
:
none
;
text-transform
:
none
;
letter-spacing
:
normal
;
word-wrap
:
break-word
;
white-space
:
pre
;
pointer-events
:
none
;
content
:
attr
(
aria-label
);
background
:
rgba
(
0
,
0
,
0
,
0.8
);
border-radius
:
3px
;
line-height
:
16px
;
opacity
:
0
}
.vditor-tooltipped
::before
{
position
:
absolute
;
z-index
:
1000001
;
display
:
none
;
width
:
0
;
height
:
0
;
color
:
rgba
(
0
,
0
,
0
,
0.8
);
pointer-events
:
none
;
content
:
""
;
border
:
5px
solid
transparent
;
opacity
:
0
}
.vditor-tooltipped--hover
::before
,
.vditor-tooltipped--hover
::after
,
.vditor-tooltipped
:hover::before
,
.vditor-tooltipped
:hover::after
,
.vditor-tooltipped
:active::before
,
.vditor-tooltipped
:active::after
,
.vditor-tooltipped
:focus::before
,
.vditor-tooltipped
:focus::after
{
display
:
inline-block
;
text-decoration
:
none
;
-webkit-animation-name
:
tooltip-appear
;
animation-name
:
tooltip-appear
;
-webkit-animation-duration
:
0.15s
;
animation-duration
:
0.15s
;
-webkit-animation-fill-mode
:
forwards
;
animation-fill-mode
:
forwards
;
-webkit-animation-timing-function
:
ease-in
;
animation-timing-function
:
ease-in
}
.vditor-tooltipped__s
::after
,
.vditor-tooltipped__se
::after
,
.vditor-tooltipped__sw
::after
{
top
:
100%
;
right
:
50%
;
margin-top
:
5px
}
.vditor-tooltipped__s
::before
,
.vditor-tooltipped__se
::before
,
.vditor-tooltipped__sw
::before
{
top
:
auto
;
right
:
50%
;
bottom
:
-5px
;
margin-right
:
-5px
;
border-bottom-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
.vditor-tooltipped__se
::after
{
right
:
auto
;
left
:
50%
;
margin-left
:
-15px
}
.vditor-tooltipped__sw
::after
{
margin-right
:
-15px
}
.vditor-tooltipped__n
::after
,
.vditor-tooltipped__ne
::after
,
.vditor-tooltipped__nw
::after
{
right
:
50%
;
bottom
:
100%
;
margin-bottom
:
5px
}
.vditor-tooltipped__n
::before
,
.vditor-tooltipped__ne
::before
,
.vditor-tooltipped__nw
::before
{
top
:
-5px
;
right
:
50%
;
bottom
:
auto
;
margin-right
:
-5px
;
border-top-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
.vditor-tooltipped__ne
::after
{
right
:
auto
;
left
:
50%
;
margin-left
:
-15px
}
.vditor-tooltipped__nw
::after
{
margin-right
:
-15px
}
.vditor-tooltipped__s
::after
,
.vditor-tooltipped__n
::after
{
-webkit-transform
:
translateX
(
50%
);
transform
:
translateX
(
50%
)}
.vditor-tooltipped__w
::after
{
right
:
100%
;
bottom
:
50%
;
margin-right
:
5px
;
-webkit-transform
:
translateY
(
50%
);
transform
:
translateY
(
50%
)}
.vditor-tooltipped__w
::before
{
top
:
50%
;
bottom
:
50%
;
left
:
-5px
;
margin-top
:
-5px
;
border-left-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
.vditor-tooltipped__e
::after
{
bottom
:
50%
;
left
:
100%
;
margin-left
:
5px
;
-webkit-transform
:
translateY
(
50%
);
transform
:
translateY
(
50%
)}
.vditor-tooltipped__e
::before
{
top
:
50%
;
right
:
-5px
;
bottom
:
50%
;
margin-top
:
-5px
;
border-right-color
:
rgba
(
0
,
0
,
0
,
0.8
)}
@-webkit-keyframes
scale-in
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
scale-in
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.vditor-panel
{
background-color
:
#fff
;
position
:
absolute
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
3px
;
padding
:
5px
;
z-index
:
3
;
font-size
:
14px
;
display
:
none
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
max-width
:
320px
;
min-width
:
80px
;
-webkit-animation-duration
:
.15s
;
animation-duration
:
.15s
;
-webkit-animation-name
:
scale-in
;
animation-name
:
scale-in
;
-webkit-animation-timing-function
:
cubic-bezier
(
0.2
,
0
,
0.13
,
1.5
);
animation-timing-function
:
cubic-bezier
(
0.2
,
0
,
0.13
,
1.5
)}
.vditor-panel--none
{
color
:
#4285f4
;
padding
:
0
;
-webkit-animation
:
none
;
animation
:
none
;
background-color
:
#f6f8fa
;
min-width
:
auto
;
max-width
:
none
}
.vditor-panel
h1
,
.vditor-panel
h2
,
.vditor-panel
h3
,
.vditor-panel
h4
,
.vditor-panel
h5
,
.vditor-panel
h6
{
margin
:
0
;
cursor
:
pointer
;
padding
:
3px
10px
;
border-radius
:
3px
;
line-height
:
normal
}
.vditor-panel
h1
:hover
,
.vditor-panel
h2
:hover
,
.vditor-panel
h3
:hover
,
.vditor-panel
h4
:hover
,
.vditor-panel
h5
:hover
,
.vditor-panel
h6
:hover
{
background-color
:
#4285f4
;
color
:
#fff
}
.vditor-input
{
border
:
0
;
padding
:
3px
5px
;
background-color
:
#f6f8fa
}
.vditor-input
:focus
{
background-color
:
#fff
;
outline
:
none
}
.vditor-icon
{
color
:
#586069
;
cursor
:
pointer
;
float
:
left
;
padding
:
2px
5px
;
height
:
19px
;
width
:
25px
;
background-color
:
transparent
;
border
:
0
;
box-sizing
:
border-box
}
.vditor-icon
:hover
,
.vditor-icon--current
{
color
:
#4285f4
;
background-color
:
transparent
}
.vditor-icon
:focus
{
outline
:
none
}
.vditor-icon
svg
{
height
:
15px
!important
;
width
:
15px
!important
;
float
:
left
;
fill
:
currentColor
}
.vditor-toolbar
{
background-color
:
#f6f8fa
;
border-bottom
:
1px
solid
#d1d5da
;
padding
:
0
5px
;
border-radius
:
3px
3px
0
0
}
.vditor-toolbar
>
div
{
float
:
left
}
.vditor-toolbar
>
div
>
.vditor-tooltipped
{
border
:
0
;
margin
:
0
;
padding
:
10px
5px
;
background-color
:
transparent
;
height
:
35px
;
width
:
25px
;
box-sizing
:
border-box
}
.vditor-toolbar
>
div
>
.vditor-tooltipped
:focus
{
outline
:
none
}
.vditor-toolbar
.vditor-tooltipped
{
color
:
#586069
}
.vditor-toolbar
.vditor-tooltipped
:hover
{
color
:
#4285f4
}
.vditor-toolbar
svg
{
fill
:
currentColor
;
display
:
inline-block
;
stroke-width
:
0
;
stroke
:
currentColor
;
width
:
15px
;
height
:
15px
}
.vditor-toolbar
input
{
position
:
absolute
;
width
:
25px
;
height
:
35px
;
top
:
0
;
left
:
0
;
cursor
:
pointer
;
opacity
:
.001
;
overflow
:
hidden
}
.vditor-menu--current
svg
{
color
:
#4285f4
}
.vditor-menu__divider
{
width
:
10px
;
height
:
35px
}
.vditor-menu__br
{
width
:
100%
;
padding
:
0
!important
;
height
:
0
!important
}
.vditor-menu--disabled
svg
{
color
:
rgba
(
88
,
96
,
105
,
0.6
);
cursor
:
not-allowed
}
.vditor-emojis
{
display
:
inline-block
;
overflow
:
auto
}
.vditor-emojis
::-webkit-scrollbar
{
display
:
none
}
.vditor-emojis__tip
{
-webkit-box-flex
:
1
;
flex
:
1
;
width
:
200px
;
margin-right
:
10px
;
color
:
#586069
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
}
.vditor-emojis__tail
{
margin-top
:
5px
;
font-size
:
12px
;
color
:
#586069
;
display
:
-webkit-box
;
display
:
flex
}
.vditor-emojis__tail
a
{
text-decoration
:
none
;
color
:
#586069
}
.vditor-emojis__tail
a
:hover
{
color
:
#4285f4
}
.vditor-emojis
button
{
cursor
:
pointer
;
border-radius
:
3px
;
float
:
left
;
height
:
30px
;
width
:
30px
;
text-align
:
center
;
line-height
:
26px
;
padding
:
3px
;
box-sizing
:
border-box
;
font-size
:
16px
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
;
border
:
0
;
margin
:
0
;
background-color
:
transparent
;
overflow
:
hidden
}
.vditor-emojis
button
:focus
{
outline
:
none
}
.vditor-emojis
button
:hover
.vditor-emojis__icon
{
display
:
inline-block
;
-webkit-transform
:
scale
(
1.2
);
transform
:
scale
(
1.2
)}
.vditor-emojis
img
{
height
:
20px
;
width
:
20px
;
float
:
left
;
margin
:
3px
0
0
3px
}
@-webkit-keyframes
slideInDown
{
from
{
-webkit-transform
:
translate3d
(
0
,
-100%
,
0
);
transform
:
translate3d
(
0
,
-100%
,
0
);
visibility
:
visible
}
to
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)}}
@keyframes
slideInDown
{
from
{
-webkit-transform
:
translate3d
(
0
,
-100%
,
0
);
transform
:
translate3d
(
0
,
-100%
,
0
);
visibility
:
visible
}
to
{
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
)}}
.vditor
{
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-orient
:
vertical
;
-webkit-box-direction
:
normal
;
flex-direction
:
column
;
border
:
1px
solid
#d1d5da
;
border-radius
:
3px
;
box-sizing
:
border-box
;
font-family
:
"Helvetica Neue"
,
"Luxi Sans"
,
"DejaVu Sans"
,
Tahoma
,
"Hiragino Sans GB"
,
"Microsoft Yahei"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
}
.vditor--fullscreen
{
position
:
fixed
;
top
:
0
;
width
:
100%
!important
;
left
:
0
;
height
:
100vh
!important
;
z-index
:
90
;
background-color
:
#fff
}
.vditor-content
{
display
:
-webkit-box
;
display
:
flex
;
min-height
:
60px
;
-webkit-box-flex
:
1
;
flex
:
1
;
position
:
relative
}
.vditor-textarea
{
font-family
:
"Helvetica Neue"
,
"Luxi Sans"
,
"DejaVu Sans"
,
Tahoma
,
"Hiragino Sans GB"
,
"Microsoft Yahei"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
margin
:
0
1px
0
0
;
height
:
100%
;
overflow
:
auto
;
width
:
100%
;
-webkit-box-flex
:
1
;
flex
:
1
;
border
:
0
;
resize
:
none
;
padding
:
10px
9px
10px
10px
;
box-sizing
:
border-box
;
background-color
:
#fafbfc
;
outline
:
0
none
;
font-size
:
16px
;
line-height
:
22px
;
color
:
#24292e
;
border-radius
:
0
0
3px
3px
;
font-variant-ligatures
:
no-common-ligatures
;
white-space
:
pre-wrap
;
word-break
:
break-word
;
word-wrap
:
break-word
}
.vditor-textarea
[
contenteditable
=
"false"
]
{
opacity
:
0.3
;
cursor
:
not-allowed
}
.vditor-textarea
:focus
{
background-color
:
#fff
}
.vditor-textarea
:empty::before
{
content
:
attr
(
placeholder
);
color
:
rgba
(
36
,
41
,
46
,
0.68
)}
.vditor-preview
{
-webkit-box-flex
:
1
;
flex
:
1
;
background-color
:
#fff
;
overflow
:
auto
;
margin-left
:
-1px
;
padding
:
10px
;
box-shadow
:
inset
1px
0
#d1d5da
;
box-sizing
:
border-box
;
border-radius
:
0
0
3px
0
}
.vditor-preview
>
div
::-webkit-scrollbar
{
display
:
none
}
.vditor-preview
>
.vditor-reset
{
margin
:
0
auto
}
.vditor-devtools
{
display
:
none
;
background-color
:
#fff
;
overflow
:
auto
;
-webkit-box-flex
:
1
;
flex
:
1
;
box-shadow
:
inset
1px
0
#d1d5da
;
box-sizing
:
border-box
;
border-radius
:
0
0
3px
0
;
padding
:
10px
}
.vditor-counter
{
padding
:
0
3px
;
position
:
absolute
;
bottom
:
10px
;
right
:
20px
;
color
:
#24292e
;
background-color
:
rgba
(
255
,
255
,
255
,
0.6
);
border-radius
:
3px
;
font-size
:
12px
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
z-index
:
2
}
.vditor-counter--error
{
color
:
#d23f31
;
background-color
:
rgba
(
210
,
63
,
49
,
0.1
)}
.vditor-resize
{
padding
:
3px
0
;
cursor
:
row-resize
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
position
:
absolute
;
width
:
100%
;
z-index
:
2
}
.vditor-resize--top
{
top
:
-3px
}
.vditor-resize--bottom
{
bottom
:
-3px
}
.vditor-resize
>
div
{
height
:
3px
;
background-color
:
#f6f8fa
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
}
.vditor-resize
:hover
>
div
,
.vditor-resize--selected
>
div
{
background-color
:
#4285f4
}
.vditor-resize
:hover
svg
,
.vditor-resize--selected
svg
{
color
:
#fff
}
.vditor-resize
svg
{
fill
:
currentColor
;
stroke-width
:
0
;
stroke
:
currentColor
;
width
:
13px
;
height
:
3px
;
display
:
block
;
margin
:
0
auto
;
color
:
#586069
}
.vditor-upload
{
position
:
absolute
;
height
:
3px
;
left
:
0
;
top
:
-2px
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
;
background-color
:
rgba
(
66
,
133
,
244
,
0.8
)}
.vditor-tip
{
position
:
absolute
;
font-size
:
12px
;
top
:
10px
;
color
:
#fff
;
-webkit-animation-duration
:
.15s
;
animation-duration
:
.15s
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
left
:
50%
}
.vditor-tip--show
{
display
:
block
;
-webkit-animation-name
:
slideInDown
;
animation-name
:
slideInDown
}
.vditor-tip__content
{
text-align
:
left
;
display
:
inline-block
;
line-height
:
16px
;
padding
:
3px
10px
;
border-radius
:
3px
;
background
:
rgba
(
66
,
133
,
244
,
0.8
);
position
:
relative
;
margin-left
:
-50%
}
.vditor-tip__content
ul
{
margin
:
2px
0
;
padding
:
0
0
0
18px
}
.vditor-tip__close
{
position
:
absolute
;
color
:
#586069
;
top
:
-7px
;
right
:
-15px
;
font-weight
:
bold
;
cursor
:
pointer
}
.vditor-tip__close
:hover
{
color
:
#4285f4
}
.vditor-hint
{
background-color
:
#fff
;
position
:
absolute
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
3px
;
padding
:
5px
0
;
z-index
:
4
;
line-height
:
20px
;
list-style
:
none
;
color
:
#24292e
;
font-size
:
12px
;
margin
:
0
;
max-width
:
250px
;
min-width
:
80px
;
display
:
none
}
.vditor-hint
button
{
display
:
block
;
padding
:
3px
10px
;
border
:
0
;
border-bottom
:
1px
solid
#d1d5da
;
line-height
:
20px
;
width
:
100%
;
box-sizing
:
border-box
;
text-align
:
left
;
margin
:
0
;
background-color
:
transparent
}
.vditor-hint
button
:last-child
{
border-bottom
:
0
}
.vditor-hint--current
,
.vditor-hint
button
:hover
{
background-color
:
#4285f4
!important
;
color
:
#fff
}
.vditor-hint__emoji
{
font-size
:
16px
;
float
:
left
;
margin-right
:
3px
}
.vditor-hint
img
{
height
:
20px
;
width
:
20px
;
float
:
left
;
margin-right
:
3px
}
.vditor-reset
{
font-variant-ligatures
:
no-common-ligatures
;
font-family
:
"Helvetica Neue"
,
"Luxi Sans"
,
"DejaVu Sans"
,
Tahoma
,
"Hiragino Sans GB"
,
"Microsoft Yahei"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
word-wrap
:
break-word
;
overflow
:
auto
;
line-height
:
1.5
;
font-size
:
16px
;
word-break
:
break-word
}
.vditor-reset--anchor
{
padding-left
:
20px
}
.vditor-reset--error
{
color
:
#d23f31
;
font-size
:
12px
;
display
:
block
;
line-height
:
16px
}
.vditor-reset
ul
ul
ul
{
list-style-type
:
square
}
.vditor-reset
ul
ul
{
list-style-type
:
circle
}
.vditor-reset
ul
{
list-style-type
:
disc
}
.vditor-reset
ul
,
.vditor-reset
ol
{
padding-left
:
2em
;
margin-top
:
0
;
margin-bottom
:
16px
}
.vditor-reset
li
+
li
{
margin-top
:
0.25em
}
.vditor-reset
audio
{
max-width
:
100%
}
.vditor-reset
audio
:focus
{
outline
:
none
}
.vditor-reset
video
{
max-height
:
90vh
;
max-width
:
100%
}
.vditor-reset
img
{
max-width
:
100%
}
.vditor-reset
img
.emoji
{
cursor
:
auto
;
max-width
:
20px
;
vertical-align
:
sub
}
.vditor-reset
h1
,
.vditor-reset
h2
,
.vditor-reset
h3
,
.vditor-reset
h4
,
.vditor-reset
h5
,
.vditor-reset
h6
{
margin-top
:
24px
;
margin-bottom
:
16px
;
font-weight
:
600
;
line-height
:
1.25
}
.vditor-reset
h1
:hover
.vditor-anchor
svg
,
.vditor-reset
h2
:hover
.vditor-anchor
svg
,
.vditor-reset
h3
:hover
.vditor-anchor
svg
,
.vditor-reset
h4
:hover
.vditor-anchor
svg
,
.vditor-reset
h5
:hover
.vditor-anchor
svg
,
.vditor-reset
h6
:hover
.vditor-anchor
svg
{
visibility
:
visible
}
.vditor-reset
h1
{
padding-bottom
:
0.3em
;
font-size
:
1.7em
;
border-bottom
:
1px
solid
#eee
}
.vditor-reset
h2
{
padding-bottom
:
0.3em
;
font-size
:
1.5em
;
border-bottom
:
1px
solid
#eee
}
.vditor-reset
h3
{
font-size
:
1.25em
}
.vditor-reset
h4
{
font-size
:
1em
}
.vditor-reset
h5
{
font-size
:
0.875em
}
.vditor-reset
h6
{
font-size
:
0.85em
}
.vditor-reset
hr
{
height
:
2px
;
padding
:
0
;
margin
:
24px
0
;
background-color
:
#e7e7e7
;
border
:
0
}
.vditor-reset
p
{
margin-top
:
0
;
margin-bottom
:
16px
}
.vditor-reset
blockquote
{
padding
:
0
1em
;
color
:
#777
;
border-left
:
0.25em
solid
#ddd
;
margin
:
0
0
16px
0
}
.vditor-reset
blockquote
p
{
margin
:
0
}
.vditor-reset
ins
>
iframe
{
border
:
0
}
.vditor-reset
iframe
{
border
:
1px
solid
#d1d5da
;
max-width
:
100%
;
box-sizing
:
border-box
}
.vditor-reset
iframe
.iframe__video
{
min-width
:
80%
;
min-height
:
36vh
}
.vditor-reset
table
{
width
:
100%
;
border-collapse
:
collapse
;
empty-cells
:
show
;
margin-bottom
:
16px
;
display
:
block
;
overflow
:
auto
;
border-spacing
:
0
}
.vditor-reset
table
tr
{
background-color
:
#fff
;
border-top
:
1px
solid
#c6cbd1
}
.vditor-reset
table
td
,
.vditor-reset
table
th
{
padding
:
6px
13px
;
border
:
1px
solid
#dfe2e5
;
word-break
:
normal
}
.vditor-reset
table
th
{
font-weight
:
600
}
.vditor-reset
table
tbody
tr
:nth-child
(
2n
)
{
background-color
:
#f6f8fa
}
.vditor-reset
code
:not
(
.hljs
)
:not
(
.highlight-chroma
)
{
padding
:
0.2em
0.4em
;
margin
:
0
;
font-size
:
85%
;
border-radius
:
3px
;
font-family
:
mononoki
,
Consolas
,
"Liberation Mono"
,
Menlo
,
Courier
,
monospace
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
word-break
:
break-word
;
background-size
:
20px
20px
;
white-space
:
pre-wrap
;
background-color
:
rgba
(
27
,
31
,
35
,
0.05
)}
.vditor-reset
pre
>
code
{
margin
:
0
;
font-size
:
85%
;
padding
:
0.5em
;
border-radius
:
5px
;
display
:
block
;
overflow
:
auto
;
white-space
:
pre
;
font-family
:
mononoki
,
Consolas
,
"Liberation Mono"
,
Menlo
,
Courier
,
monospace
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Noto Color Emoji"
,
"Segoe UI Symbol"
,
"Android Emoji"
,
"EmojiSymbols"
;
background-size
:
20px
20px
;
background-image
:
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==)
;
word-break
:
initial
;
word-wrap
:
normal
}
.vditor-reset
pre
:hover
div
.vditor-copy
{
display
:
block
}
.vditor-reset
kbd
{
display
:
inline-block
;
padding
:
3px
5px
;
font
:
11px
Consolas
,
"Liberation Mono"
,
Menlo
,
Courier
,
monospace
;
line-height
:
10px
;
color
:
#555
;
vertical-align
:
middle
;
background-color
:
#fcfcfc
;
border
:
solid
1px
#d1d5da
;
border-bottom-color
:
#bbb
;
border-radius
:
3px
;
box-shadow
:
inset
0
-1px
0
#bbb
}
.vditor-reset
summary
{
cursor
:
pointer
}
.vditor-reset
summary
:focus
{
outline
:
none
}
.vditor-reset
svg
{
height
:
auto
;
width
:
auto
}
.vditor-reset
p
:last-child
,
.vditor-reset
blockquote
:last-child
,
.vditor-reset
pre
:last-child
,
.vditor-reset
ul
:last-child
,
.vditor-reset
ol
:last-child
,
.vditor-reset
hr
:last-child
{
margin-bottom
:
0
}
.vditor-reset
.language-echarts
{
overflow
:
hidden
;
height
:
420px
}
.vditor-task
{
list-style
:
none
}
.vditor-task
input
{
margin
:
0
.2em
.25em
-1.6em
;
font-size
:
12px
;
vertical-align
:
middle
}
.vditor-copy
{
position
:
relative
;
display
:
none
;
z-index
:
1
}
.vditor-copy
textarea
{
position
:
absolute
;
left
:
-100000px
;
height
:
10px
}
.vditor-copy
span
{
cursor
:
pointer
;
position
:
absolute
;
right
:
0.5em
;
top
:
0.5em
;
height
:
14px
;
width
:
14px
;
display
:
block
;
background-color
:
#f6f8fa
;
border-radius
:
3px
;
padding
:
3px
}
.vditor-copy
svg
{
color
:
#586069
;
height
:
14px
;
width
:
14px
!important
;
display
:
block
;
fill
:
currentColor
}
.vditor-linenumber
{
padding-left
:
4em
!important
;
position
:
relative
}
.vditor-linenumber__rows
{
position
:
absolute
;
pointer-events
:
none
;
top
:
0.5em
;
left
:
0
;
width
:
3em
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
counter-reset
:
linenumber
}
.vditor-linenumber__rows
>
span
{
pointer-events
:
none
;
display
:
block
}
.vditor-linenumber__rows
>
span
::before
{
counter-increment
:
linenumber
;
content
:
counter
(
linenumber
);
color
:
rgba
(
158
,
150
,
150
,
0.38
);
display
:
block
;
padding-right
:
1em
;
text-align
:
right
}
.vditor-speech
{
position
:
absolute
;
display
:
none
;
background-color
:
#f6f8fa
;
border
:
1px
solid
#d1d5da
;
border-radius
:
3px
;
padding
:
3px
;
cursor
:
pointer
;
color
:
#586069
}
.vditor-speech
:hover
,
.vditor-speech--current
{
color
:
#4285f4
}
.vditor-speech
svg
{
height
:
14px
;
width
:
14px
;
fill
:
currentColor
;
display
:
block
;
stroke-width
:
0
;
stroke
:
currentColor
}
.vditor-anchor
{
float
:
left
;
padding-right
:
4px
;
margin-left
:
-20px
}
.vditor-anchor
svg
{
visibility
:
hidden
}
.vditor-anchor
:hover
svg
{
visibility
:
visible
}
.vditor-anchor
:focus
{
outline
:
none
}
.vditor-linkcard
{
margin
:
31px
auto
16px
;
-webkit-transition
:
all
0.15s
ease-in-out
;
transition
:
all
0.15s
ease-in-out
;
cursor
:
pointer
;
max-width
:
768px
;
padding
:
0
10px
}
.vditor-linkcard
a
{
border-radius
:
3px
;
background-color
:
#f6f8fa
;
overflow
:
hidden
;
max-height
:
250px
;
display
:
-webkit-box
;
display
:
flex
;
text-decoration
:
none
;
flex-wrap
:
wrap-reverse
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.2
)}
.vditor-linkcard
a
:hover
{
box-shadow
:
0
0
3px
rgba
(
0
,
0
,
0
,
0.13
),
0
3px
6px
rgba
(
0
,
0
,
0
,
0.26
);
text-decoration
:
none
}
.vditor-linkcard
a
:visited
.vditor-linkcard__abstract
{
color
:
rgba
(
88
,
96
,
105
,
0.6
)}
.vditor-linkcard__info
{
padding
:
10px
;
min-width
:
200px
;
box-sizing
:
border-box
;
-webkit-box-flex
:
1
;
flex
:
1
}
.vditor-linkcard__title
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#24292e
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-align
:
center
;
align-items
:
center
}
.vditor-linkcard__title
img
{
cursor
:
pointer
;
height
:
20px
;
width
:
20px
;
border-radius
:
3px
;
flex-shrink
:
0
;
margin-right
:
5px
}
.vditor-linkcard__abstract
{
word-wrap
:
break-word
;
word-break
:
break-all
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-box-orient
:
vertical
;
display
:
-webkit-box
;
font-size
:
13px
;
color
:
#586069
;
margin
:
5px
0
}
.vditor-linkcard__site
{
font-size
:
12px
;
color
:
#4285f4
}
.vditor-linkcard__image
{
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-position
:
center
center
;
max-width
:
250px
;
min-width
:
126px
;
cursor
:
pointer
;
background-color
:
#fff
}
.vditor-wysiwyg
{
background-color
:
#fafbfc
;
box-sizing
:
border-box
;
-webkit-box-flex
:
1
;
flex
:
1
;
margin
:
0
;
white-space
:
pre-wrap
;
position
:
relative
}
.vditor-wysiwyg
[
contenteditable
=
"false"
]
{
opacity
:
0.3
;
cursor
:
not-allowed
}
.vditor-wysiwyg
:focus
{
outline
:
none
;
background-color
:
#fff
}
.vditor-wysiwyg
blockquote
:empty::before
,
.vditor-wysiwyg
pre
>
code
:empty::before
{
content
:
' '
}
.vditor-wysiwyg__block
[
data-type
=
"html-block"
]>
pre
,
.vditor-wysiwyg__block
[
data-type
=
"math-block"
]>
pre
{
margin-bottom
:
0
}
.vditor-wysiwyg__block
>
pre
{
margin-bottom
:
-1em
}
.vditor-wysiwyg__block
>
pre
>
code
{
background-color
:
#fff
!important
;
border
:
1px
solid
#d1d5da
;
overflow
:
auto
!important
}
.vditor-wysiwyg__block
[
data-type
=
html-inline
]
.vditor-wysiwyg__preview
svg
{
fill
:
rgba
(
88
,
96
,
105
,
0.36
);
height
:
12px
;
cursor
:
pointer
;
width
:
12px
}
.vditor-wysiwyg__preview
{
cursor
:
pointer
;
white-space
:
initial
;
min-height
:
27px
}
.vditor-wysiwyg__preview
pre
{
margin-bottom
:
1em
!important
}
.vditor-wysiwyg
h1
:before
,
.vditor-wysiwyg
h2
:before
,
.vditor-wysiwyg
h3
:before
,
.vditor-wysiwyg
h4
:before
,
.vditor-wysiwyg
h5
:before
,
.vditor-wysiwyg
h6
:before
,
.vditor-wysiwyg
div
.vditor-wysiwyg__block
:before
{
float
:
left
;
padding-right
:
4px
;
margin-left
:
-29px
;
content
:
'h1'
;
font-size
:
0.85rem
;
font-weight
:
normal
;
text-transform
:
uppercase
;
color
:
rgba
(
88
,
96
,
105
,
0.36
)}
.vditor-wysiwyg
h2
:before
{
content
:
'h2'
}
.vditor-wysiwyg
h3
:before
{
content
:
'h3'
}
.vditor-wysiwyg
h4
:before
{
content
:
'h4'
}
.vditor-wysiwyg
h5
:before
{
content
:
'h5'
}
.vditor-wysiwyg
h6
:before
{
content
:
'h6'
}
.vditor-wysiwyg
div
.vditor-wysiwyg__block
:before
{
content
:
"</>"
}
.vditor-wysiwyg
details
{
white-space
:
initial
}
.vditor-wysiwyg
span
[
data-type
=
"backslash"
]>
span
{
display
:
none
;
color
:
rgba
(
88
,
96
,
105
,
0.36
)}
.user__site
{
float
:
left
;
margin-left
:
10px
}
.user__site
svg
{
height
:
20px
;
width
:
20px
;
fill
:
currentColor
}
html
{
height
:
100%
;
max-height
:
100%
;
font-size
:
62.5%
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
)}
body
{
height
:
100%
;
max-height
:
100%
;
font-family
:
"Merriweather"
,
"Microsoft Yahei"
,
'Helvetica'
;
letter-spacing
:
0.01rem
;
font-size
:
1.8rem
;
line-height
:
1.75em
;
color
:
#3A4145
;
-webkit-font-feature-settings
:
'kern'
1
;
-moz-font-feature-settings
:
'kern'
1
;
-o-font-feature-settings
:
'kern'
1
;
text-rendering
:
geometricPrecision
;
margin
:
0
}
::-moz-selection
{
background
:
#D6EDFF
}
::selection
{
background
:
#D6EDFF
}
a
{
color
:
#4A4A4A
;
-webkit-transition
:
color
0.3s
ease
;
transition
:
color
0.3s
ease
}
a
:hover
{
color
:
#111
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
-webkit-font-feature-settings
:
'dlig'
1
,
'liga'
1
,
'lnum'
1
,
'kern'
1
;
-moz-font-feature-settings
:
'dlig'
1
,
'liga'
1
,
'lnum'
1
,
'kern'
1
;
-o-font-feature-settings
:
'dlig'
1
,
'liga'
1
,
'lnum'
1
,
'kern'
1
;
color
:
#2E2E2E
;
line-height
:
1.15em
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
text-rendering
:
geometricPrecision
}
h1
{
font-size
:
5rem
}
h2
{
font-size
:
3.6rem
}
h3
{
font-size
:
3rem
}
h4
{
font-size
:
2.5rem
}
h5
{
font-size
:
2rem
}
h6
{
font-size
:
2rem
}
img
{
max-width
:
100%
;
height
:
auto
}
p
,
ul
,
ol
,
dl
{
-webkit-font-feature-settings
:
'liga'
1
,
'onum'
1
,
'kern'
1
;
-moz-font-feature-settings
:
'liga'
1
,
'onum'
1
,
'kern'
1
;
-o-font-feature-settings
:
'liga'
1
,
'onum'
1
,
'kern'
1
;
margin
:
0
0
1.75em
0
;
text-rendering
:
geometricPrecision
}
ol
,
ul
{
padding-left
:
3rem
}
ol
ol
,
ul
ul
,
ul
ol
,
ol
ul
{
padding-left
:
2em
;
margin-bottom
:
0
}
dl
dt
{
float
:
left
;
width
:
180px
;
overflow
:
hidden
;
clear
:
left
;
text-align
:
right
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
font-weight
:
700
;
margin-bottom
:
1em
}
dl
dd
{
margin-left
:
200px
;
margin-bottom
:
1em
}
li
li
{
margin
:
0
}
hr
{
display
:
block
;
height
:
1px
;
border
:
0
;
border-top
:
#EFEFEF
1px
solid
;
margin
:
3.2em
0
;
padding
:
0
}
blockquote
{
box-sizing
:
border-box
;
margin
:
1.75em
0
1.75em
0
;
padding
:
0
0
0
1.75em
;
border-left
:
#4A4A4A
0.4em
solid
}
blockquote
p
{
margin
:
0.8em
0
;
font-style
:
italic
}
blockquote
small
{
display
:
inline-block
;
margin
:
0.8em
0
0.8em
1.5em
;
font-size
:
0.9em
;
color
:
#CCC
}
blockquote
small
:before
{
content
:
"\2014 \00A0"
}
blockquote
cite
{
font-weight
:
700
}
blockquote
cite
a
{
font-weight
:
normal
}
mark
{
background-color
:
#fdffb6
}
code
,
tt
{
padding
:
1px
3px
;
font-family
:
Inconsolata
,
monospace
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
0.85em
;
white-space
:
pre-wrap
;
border
:
#E3EDF3
1px
solid
;
background
:
#F7FAFB
;
border-radius
:
2px
}
pre
code
,
pre
tt
{
font-size
:
inherit
;
white-space
:
pre-wrap
;
background
:
transparent
;
border
:
none
;
padding
:
0
}
.fn-clear
:before
,
.fn-clear
:after
{
display
:
table
;
content
:
""
}
.fn-clear
:after
{
clear
:
both
}
.fn-left
{
float
:
left
}
.fn-right
{
float
:
right
}
.fn-none
{
display
:
none
}
.fn-vertical
{
display
:
table-cell
;
vertical-align
:
middle
}
.fn-wrap
{
width
:
80%
;
max-width
:
768px
;
margin
:
0
auto
}
@-webkit-keyframes
fade-in-down
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@keyframes
fade-in-down
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@-webkit-keyframes
bounce
{
0
%,
10
%,
25
%,
40
%,
50
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
20
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
30
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@keyframes
bounce
{
0
%,
20
%,
50
%,
80
%,
100
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
40
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
60
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@-webkit-keyframes
upbounce
{
0
%,
10
%,
25
%,
40
%,
50
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
20
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
30
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@keyframes
upbounce
{
0
%,
20
%,
50
%,
80
%,
100
%
{
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}
40
%
{
-webkit-transform
:
translateY
(
-10px
);
transform
:
translateY
(
-10px
)}
60
%
{
-webkit-transform
:
translateY
(
-5px
);
transform
:
translateY
(
-5px
)}}
@font-face
{
font-family
:
'icomoon'
;
src
:
url("fonts/icomoon.eot?hvf32e")
;
src
:
url("fonts/icomoon.eot?hvf32e#iefix")
format
(
"embedded-opentype"
),
url("fonts/icomoon.ttf?hvf32e")
format
(
"truetype"
),
url("fonts/icomoon.woff?hvf32e")
format
(
"woff"
),
url("fonts/icomoon.svg?hvf32e#icomoon")
format
(
"svg"
);
font-weight
:
normal
;
font-style
:
normal
}
[
class
^=
"icon-"
],[
class
*=
" icon-"
]
{
font-size
:
2rem
;
font-family
:
'icomoon'
!important
;
speak
:
none
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
text-transform
:
none
;
line-height
:
1
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
}
.icon-qqz
:before
{
content
:
"\e902"
}
.icon-register
:before
{
content
:
"\e600"
}
.icon-logout
:before
{
content
:
"\e601"
}
.icon-setting
:before
{
content
:
"\e602"
}
.icon-gotop
:before
{
content
:
"\e60a"
}
.icon-twitter
:before
{
content
:
"\e60b"
}
.icon-login
:before
{
content
:
"\e611"
}
.icon-arrow-left
:before
{
content
:
"\f605"
}
.icon-menu
:before
{
line-height
:
38px
;
content
:
"\f609"
;
font-size
:
20px
}
.icon-wechat
:before
{
content
:
"\e903"
}
.icon-sitemap
:before
{
content
:
"\e900"
}
.icon-list
:before
{
content
:
"\e901"
}
.avatar
{
border-radius
:
100%
;
float
:
left
;
height
:
24px
;
margin-right
:
9px
;
width
:
24px
}
.avatar-warp
{
width
:
10%
;
padding-right
:
10px
;
box-sizing
:
border-box
}
.avatar-48
{
box-shadow
:
0
0
2px
#ddd
;
height
:
auto
;
width
:
48px
;
margin-right
:
10px
;
border-radius
:
24px
}
.form
{
width
:
100%
;
margin-top
:
50px
}
.form
input
,
.form
textarea
,
.form
button
{
border
:
1px
solid
#CCCCCC
;
background-color
:
#FAFAFA
;
border-radius
:
3px
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.075
)
inset
;
padding
:
7px
8px
;
width
:
100%
;
box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
font-family
:
"Microsoft Yahei"
,
'Helvetica'
;
outline
:
none
}
.form
button
{
width
:
auto
;
vertical-align
:
bottom
}
.form
input
:focus
,
.form
textarea
:focus
{
background-color
:
#FFF
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0.075
)
inset
,
0
0
5px
rgba
(
81
,
167
,
232
,
0.5
);
border
:
1px
solid
#51A7E8
}
.error-msg
{
font-size
:
1.5rem
;
color
:
#9EABB3
}
.cmtFromSym
{
font-size
:
1rem
;
color
:
#9EABB3
}
.main-header
{
position
:
relative
;
display
:
table
;
width
:
100%
;
height
:
100vh
;
margin-bottom
:
5rem
;
text-align
:
center
;
background
:
#222
no-repeat
center
center
;
background-size
:
cover
;
overflow
:
hidden
;
background-image
:
url("../images/header-bg.jpg")
;
min-height
:
50vh
}
.site-wrapper
{
position
:
relative
;
z-index
:
10
;
min-height
:
100%
;
background
:
#fff
;
-webkit-transition
:
-webkit-transform
0.5s
ease
;
transition
:
-webkit-transform
0.5s
ease
;
transition
:
transform
0.5s
ease
;
transition
:
transform
0.5s
ease
,
-webkit-transform
0.5s
ease
}
.nav-opened
.site-wrapper
{
overflow-x
:
hidden
;
margin-right
:
240px
;
-webkit-transition
:
margin
0.3s
ease
;
transition
:
margin
0.3s
ease
}
.page-title
a
{
-webkit-animation
:
fade-in-down
0.6s
;
animation
:
fade-in-down
0.6s
;
-webkit-animation-delay
:
0.2s
;
animation-delay
:
0.2s
;
margin
:
10px
0
10px
0
;
font-size
:
5rem
;
letter-spacing
:
-1px
;
font-weight
:
700
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
color
:
#fff
;
text-shadow
:
0px
0px
3px
rgba
(
0
,
0
,
0
,
0.9
);
text-decoration
:
none
}
.page-description
,
.page-description
a
{
-webkit-animation
:
fade-in-down
0.9s
;
animation
:
fade-in-down
0.9s
;
-webkit-animation-delay
:
0.1s
;
animation-delay
:
0.1s
;
margin
:
0
;
font-size
:
2rem
;
line-height
:
1.5em
;
font-weight
:
400
;
letter-spacing
:
0.01rem
;
color
:
rgba
(
255
,
255
,
255
,
0.8
)}
.scroll-down
{
display
:
block
;
position
:
absolute
;
z-index
:
100
;
bottom
:
45px
;
left
:
50%
;
margin-left
:
-16px
;
width
:
34px
;
height
:
34px
;
font-size
:
34px
;
text-align
:
center
;
text-decoration
:
none
;
color
:
rgba
(
255
,
255
,
255
,
0.7
);
-webkit-animation
:
bounce
4s
2s
infinite
;
animation
:
bounce
4s
2s
infinite
}
.scroll-down
:hover
{
color
:
#fff
;
-webkit-animation
:
none
;
animation
:
none
}
.menu-button
{
position
:
fixed
;
box-sizing
:
border-box
;
display
:
inline-block
;
float
:
right
;
height
:
38px
;
padding
:
0
15px
;
opacity
:
1
;
font-size
:
12px
;
text-transform
:
uppercase
;
line-height
:
46px
;
border-radius
:
3px
;
-webkit-transition
:
all
0.5s
ease
;
transition
:
all
0.5s
ease
;
right
:
20px
;
top
:
40px
;
text-decoration
:
none
;
font-family
:
'Open Sans'
,
"Microsoft Yahei"
,
'Helvetica'
;
z-index
:
30
;
overflow
:
hidden
;
background-color
:
#111
;
border
:
1px
solid
#111
;
color
:
#fff
;
cursor
:
pointer
}
.menu-button
:hover
{
background
:
#fff
}
.menu-button
:focus
{
outline
:
0
}
.nav-closed
.menu-button
:hover
{
color
:
#222
}
.nav-opened
.menu-button
{
padding
:
0
12px
;
background
:
#111
;
border-color
:
#111
;
color
:
#fff
;
-webkit-transform
:
translate3D
(
50px
,
0
,
0
);
transform
:
translate3D
(
50px
,
0
,
0
);
-webkit-transition
:
all
0.3s
ease
;
transition
:
all
0.3s
ease
;
right
:
287px
;
z-index
:
10
;
width
:
46px
;
border-radius
:
3px
0
0
3px
}
.menu-button
.word
{
float
:
right
;
margin
:
-4px
0
0
10px
}
.nav
{
position
:
fixed
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-orient
:
vertical
;
-webkit-box-direction
:
normal
;
flex-direction
:
column
;
top
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
5
;
width
:
220px
;
padding
:
10px
10px
0
10px
;
opacity
:
0
;
background
:
#111
;
margin-bottom
:
0
;
text-align
:
left
;
overflow-y
:
auto
;
color
:
#FFF
;
-webkit-transition
:
-webkit-transform
0.5s
ease
,
opacity
0.3s
ease
0.7s
;
-webkit-transition
:
opacity
0.3s
ease
0.7s
,
-webkit-transform
0.5s
ease
;
transition
:
opacity
0.3s
ease
0.7s
,
-webkit-transform
0.5s
ease
;
transition
:
transform
0.5s
ease
,
opacity
0.3s
ease
0.7s
;
transition
:
transform
0.5s
ease
,
opacity
0.3s
ease
0.7s
,
-webkit-transform
0.5s
ease
;
overflow-x
:
hidden
}
.nav
::-webkit-scrollbar
{
display
:
none
}
.nav
ul
{
-webkit-box-flex
:
1
;
flex
:
1
;
margin
:
0
;
padding
:
0px
0
5%
;
list-style
:
none
;
counter-reset
:
item
}
.nav
li
{
height
:
30px
;
line-height
:
1.4rem
}
.nav
li
:before
{
display
:
block
;
float
:
right
;
padding-right
:
4%
;
padding-left
:
5px
;
text-align
:
right
;
font-size
:
1.2rem
;
vertical-align
:
bottom
;
color
:
#B8B8B8
;
content
:
counter
(
item
,
lower-roman
);
counter-increment
:
item
;
line-height
:
2.5rem
}
.nav
a
{
color
:
#989898
;
text-decoration
:
none
;
line-height
:
1.4
;
font-size
:
1.4rem
}
.nav
a
:hover
,
.nav
a
.current
{
color
:
#FFF
}
.nav
li
a
{
display
:
-webkit-box
;
display
:
flex
;
padding
:
0.6rem
4%
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
}
.nav
li
a
:after
{
display
:
inline-block
;
content
:
" ......................................................."
;
color
:
rgba
(
255
,
255
,
255
,
0.2
);
margin-left
:
5px
}
.nav
.count
{
font-size
:
1rem
;
word-wrap
:
normal
;
word-break
:
break-all
;
white-space
:
nowrap
}
.nav
.page-icon
{
float
:
left
;
height
:
14px
;
width
:
14px
;
margin
:
3px
4px
0
0
}
body
.nav-closed
.nav
{
-webkit-transform
:
translate3D
(
240px
,
0
,
0
);
transform
:
translate3D
(
240px
,
0
,
0
)}
body
.nav-opened
.nav
{
opacity
:
1
;
-webkit-transition
:
-webkit-transform
0.3s
ease
,
opacity
0s
ease
0s
;
-webkit-transition
:
opacity
0s
ease
0s
,
-webkit-transform
0.3s
ease
;
transition
:
opacity
0s
ease
0s
,
-webkit-transform
0.3s
ease
;
transition
:
transform
0.3s
ease
,
opacity
0s
ease
0s
;
transition
:
transform
0.3s
ease
,
opacity
0s
ease
0s
,
-webkit-transform
0.3s
ease
;
-webkit-transform
:
translate3D
(
0
,
0
,
0
);
transform
:
translate3D
(
0
,
0
,
0
)}
article
.post
{
position
:
relative
;
margin
:
4rem
auto
;
padding-bottom
:
4rem
;
border-bottom
:
#EBF2F6
1px
solid
;
word-wrap
:
break-word
;
width
:
80%
}
article
.post
.share
{
position
:
relative
}
article
.post
.share
canvas
{
position
:
absolute
;
left
:
0
;
top
:
36px
}
.post-content--article
{
padding-bottom
:
10px
}
.post-content--article
::-webkit-scrollbar
{
display
:
none
}
article
.post
:after
{
display
:
block
;
content
:
""
;
width
:
7px
;
height
:
7px
;
border
:
#E7EEF2
1px
solid
;
position
:
absolute
;
bottom
:
-5px
;
left
:
50%
;
margin-left
:
-5px
;
background
:
#FFF
;
border-radius
:
100%
;
box-shadow
:
#FFF
0
0
0
5px
}
.post-title
a
{
text-decoration
:
none
}
.post-tip
{
display
:
inline-block
;
text-transform
:
uppercase
;
font-size
:
1.3rem
;
white-space
:
nowrap
;
color
:
#9EABB3
;
cursor
:
text
}
.post-tip
:hover
{
color
:
#9EABB3
}
.post-tip
:visited
{
color
:
#fff
}
.post-excerpt
p
{
margin
:
0
;
font-size
:
0.9em
;
line-height
:
1.7em
}
.post-meta
{
color
:
#9eabb3
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
1.5rem
;
line-height
:
2.2rem
;
margin
:
1.75rem
0
0
0
}
.post-meta
a
{
color
:
#9EABB3
;
text-decoration
:
none
}
.post-meta
a
:hover
{
text-decoration
:
underline
}
.post-meta
time
{
border-left
:
1px
solid
#d5dbde
;
display
:
inline-block
;
font-size
:
1.3rem
;
margin-left
:
8px
;
padding-left
:
12px
;
text-transform
:
uppercase
;
white-space
:
nowrap
}
.post-author
{
box-sizing
:
border-box
;
display
:
block
;
position
:
absolute
;
bottom
:
-57px
;
left
:
50%
;
margin-left
:
-40px
;
width
:
80px
;
height
:
80px
;
border-radius
:
100%
;
overflow
:
hidden
;
padding
:
6px
;
background
:
#fff
;
z-index
:
2
;
box-shadow
:
#E7EEF2
0
0
0
1px
}
.post-author
a
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
68px
;
height
:
68px
;
display
:
block
;
border-radius
:
35px
}
.share
.icon
{
cursor
:
pointer
;
-webkit-transition
:
all
0.2s
ease-out
0s
;
transition
:
all
0.2s
ease-out
0s
;
display
:
inline-block
;
font-size
:
16px
;
margin-top
:
15px
}
.share
.icon
:hover
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
color
:
#9EABB3
}
.icon-weibo
:before
{
content
:
"\e605"
}
.icon-twitter
:before
{
content
:
"\e60b"
}
.icon-tencent
:before
{
content
:
"\e60d"
}
.icon-google
:before
{
content
:
"\e603"
}
.icon-gotop
:before
{
content
:
"\E60A"
;
font-weight
:
bold
}
.icon-gotop
{
cursor
:
pointer
;
position
:
fixed
;
bottom
:
30px
;
right
:
30px
;
-webkit-animation
:
upbounce
4s
2s
infinite
;
animation
:
upbounce
4s
2s
infinite
;
text-decoration
:
none
;
z-index
:
12
}
.icon-gotop
:hover
{
color
:
#B8B8B8
;
-webkit-animation
:
none
;
animation
:
none
}
.pagination
{
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
1.3rem
;
color
:
#9eabb3
;
text-align
:
center
}
.pagination
a
{
color
:
#9EABB3
;
-webkit-transition
:
all
0.2s
ease
;
transition
:
all
0.2s
ease
;
padding
:
0
15px
;
border
:
#bfc8cd
1px
solid
;
text-decoration
:
none
;
display
:
inline-block
;
border-radius
:
4px
}
.pagination
a
:hover
{
border-color
:
#98a0a4
;
color
:
#889093
}
ul
.comments
{
padding
:
0
;
list-style
:
none
;
margin-top
:
100px
;
position
:
relative
}
.comments
li
{
padding
:
10px
;
white-space
:
normal
;
word-wrap
:
break-word
;
position
:
relative
;
border-bottom
:
#EBF2F6
1px
solid
}
.comments
li
:hover
{
background-color
:
#F7F7F7
}
.comments
li
img
{
vertical-align
:
sub
}
.comments
.comment-content
{
margin
:
8px
0
0
}
.comments
li
.comment-body-ref
{
position
:
absolute
;
z-index
:
10
;
background-color
:
#EBF2F6
;
border
:
#d5dbde
1px
solid
;
width
:
86%
;
left
:
69px
}
.comments
.post-meta
{
margin-top
:
0
}
#captcha
,
#captchaReply
{
height
:
27px
;
display
:
inline-block
;
vertical-align
:
inherit
}
.read-next
{
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-align
:
stretch
;
align-items
:
stretch
;
margin-top
:
10rem
}
.read-next-story
{
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-flex
:
1
;
flex-grow
:
1
;
min-width
:
50%
;
text-decoration
:
none
;
position
:
relative
;
text-align
:
center
;
color
:
#fff
;
background
:
#222
no-repeat
center
center
;
background-size
:
cover
;
overflow
:
hidden
}
.read-next-story
a
{
color
:
#BBB
}
.read-next-story
a
:hover
{
color
:
#FFF
}
.read-next-story
:hover:before
{
background
:
rgba
(
0
,
0
,
0
,
0.8
);
-webkit-transition
:
all
0.2s
ease
;
transition
:
all
0.2s
ease
}
.read-next-story
:hover
.post
:before
{
color
:
#222
;
background
:
#fff
;
-webkit-transition
:
all
0.2s
ease
;
transition
:
all
0.2s
ease
}
.read-next-story
:before
{
content
:
""
;
display
:
block
;
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.7
);
-webkit-transition
:
all
0.5s
ease
;
transition
:
all
0.5s
ease
}
.read-next-story
.post
{
padding-top
:
6rem
;
padding-bottom
:
6rem
;
width
:
80%
;
position
:
relative
;
margin
:
0
auto
}
.read-next-story
.post
:before
{
content
:
"Read This Next"
;
padding
:
4px
10px
5px
;
text-transform
:
uppercase
;
font-size
:
1.1rem
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
color
:
rgba
(
255
,
255
,
255
,
0.8
);
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0.5
);
border-radius
:
4px
;
-webkit-transition
:
all
0.5s
ease
;
transition
:
all
0.5s
ease
}
.read-next-story.prev
.post
:before
{
content
:
"Read This Before"
}
.read-next-story
h2
{
margin-top
:
1rem
;
color
:
#fff
}
.read-next-story
p
{
margin
:
0
;
color
:
rgba
(
255
,
255
,
255
,
0.8
)}
.read-next
+
.site-footer
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
margin
:
0
}
#tags
{
padding
:
0
}
#tags
li
{
list-style
:
none
;
float
:
left
}
#tags
li
a
{
border
:
1px
solid
#4A4A4A
;
display
:
inline-block
;
padding
:
10px
;
margin
:
1rem
;
border-radius
:
5px
;
text-decoration
:
none
}
#tags
li
a
:hover
{
border
:
1px
solid
#FFF
;
color
:
#FFF
;
background-color
:
#4A4A4A
}
.dynamic
.read-next-story
>
div
{
position
:
relative
;
width
:
60%
;
margin
:
50px
auto
;
text-align
:
left
}
.dynamic
a
{
text-decoration
:
none
;
margin
:
0
;
color
:
rgba
(
255
,
255
,
255
,
0.8
)}
.dynamic
a
:hover
{
color
:
rgba
(
255
,
255
,
255
,
0.5
)}
.site-footer
{
position
:
relative
;
margin
:
8rem
0
0
0
;
padding
:
1rem
15px
;
font-family
:
"Open Sans"
,
"Microsoft Yahei"
,
'Helvetica'
;
font-size
:
1rem
;
line-height
:
1.75em
;
color
:
#BBC7CC
}
.site-footer
a
{
color
:
#BBC7CC
;
font-weight
:
bold
;
text-decoration
:
none
}
.site-footer
a
:hover
{
text-decoration
:
underline
}
@media
only
screen
and
(
max-width
:
900px
){
blockquote
{
margin-left
:
0
}
.main-header
{
box-sizing
:
border-box
;
height
:
auto
;
min-height
:
240px
;
height
:
60vh
;
padding
:
15%
0
}
.scroll-down
{
display
:
none
}
.page-title
,
.page-title
a
{
font-size
:
4rem
;
letter-spacing
:
-1px
}
.page-description
,
.page-description
a
{
font-size
:
1.8rem
;
line-height
:
1.5em
}
.post
{
font-size
:
0.95em
}
hr
{
margin
:
2.4em
0
}
ol
,
ul
{
padding-left
:
2em
}
h1
{
font-size
:
4.5rem
}
h2
{
font-size
:
3.6rem
}
h3
{
font-size
:
3.1rem
}
h4
{
font-size
:
2.5rem
}
h5
{
font-size
:
2.2rem
}
h6
{
font-size
:
1.8rem
}
.read-next
{
-webkit-box-orient
:
vertical
;
-webkit-box-direction
:
normal
;
flex-direction
:
column
;
margin-top
:
4rem
}}
@media
only
screen
and
(
max-width
:
500px
){
.main-header
{
margin-bottom
:
15px
;
height
:
40vh
}
.pagination
{
width
:
auto
;
margin
:
2rem
auto
}
.post
{
width
:
auto
;
margin-top
:
2rem
;
margin-bottom
:
2rem
;
margin-left
:
16px
;
margin-right
:
16px
;
padding-bottom
:
2rem
;
line-height
:
1.65em
}
hr
{
margin
:
1.75em
0
}
p
,
ul
,
ol
,
dl
{
font-size
:
0.95em
;
margin
:
0
0
2.5rem
0
}
.page-title
,
.page-title
a
{
font-size
:
3rem
}
.post-excerpt
p
{
font-size
:
0.85em
}
.page-description
,
.page-description
a
{
font-size
:
1.6rem
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
margin
:
0
0
0.3em
0
}
h1
{
font-size
:
2.8rem
;
letter-spacing
:
-1px
}
h2
{
font-size
:
2.4rem
;
letter-spacing
:
0
}
h3
{
font-size
:
2.1rem
}
h4
{
font-size
:
1.9rem
}
h5
{
font-size
:
1.8rem
}
h6
{
font-size
:
1.8rem
}
.post-content
img
{
padding
:
0
;
width
:
calc
(
100%
+
32px
);
min-width
:
0
;
max-width
:
112%
}
.post-meta
{
font-size
:
1.3rem
;
margin-top
:
1rem
}
.site-footer
{
margin-top
:
3rem
}
.read-next
{
margin-top
:
2rem
;
margin-bottom
:
-37px
}
.read-next
.post
{
width
:
100%
}
.menu-button
{
border
:
0
;
top
:
0
;
right
:
0
}
.nav-opened
.site-wrapper
{
margin-right
:
0
}
.nav
{
z-index
:
11
}
.nav-closed
.menu-button
:hover
{
color
:
#FFF
;
background-color
:
transparent
}
.post-author
{
width
:
40px
;
height
:
40px
;
bottom
:
-37px
;
padding
:
3px
;
margin-left
:
-20px
}
.post-author
a
{
width
:
34px
;
height
:
34px
;
display
:
block
;
border-radius
:
17px
}
.nav
.count
{
line-height
:
1.5rem
}
#tags
li
a
{
padding
:
0
5px
}}
src/main/resources/skins/Finding/css/base.scss
View file @
b145ac62
...
@@ -698,7 +698,7 @@ pre code, pre tt {
...
@@ -698,7 +698,7 @@ pre code, pre tt {
}
}
.nav
li
a
{
.nav
li
a
{
display
:
block
;
display
:
flex
;
padding
:
0
.6rem
4%
;
padding
:
0
.6rem
4%
;
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
...
...
src/main/resources/skins/Finding/dynamic.ftl
View file @
b145ac62
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<a
href=
"${servePath}${article.articlePermalink}"
title=
"${article.articleTitle}"
rel=
"nofollow"
>
<a
href=
"${servePath}${article.articlePermalink}"
title=
"${article.articleTitle}"
rel=
"nofollow"
>
${article.articleTitle}
${article.articleTitle}
</a>
</a>
<span
data-ico=
""
>
<span
data-ico=
""
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
${article.articleCommentCount}
</span>
</span>
</li>
</li>
...
...
src/main/resources/skins/Jane/article-list.ftl
View file @
b145ac62
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</span>
</span>
<div class="fn__right">
<div class="fn__right">
<#if commentable>
<#if commentable>
<a class="ft__red" href="${servePath}${article.articlePermalink}#comments"><
#if article.articleCommentCount gt 0>${article.articleCommentCount} </#if>
${commentLabel}</a>
<a class="ft__red" href="${servePath}${article.articlePermalink}#comments"><
span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${commentLabel}</a>
•
•
</#if>
</#if>
<a class="ft__red" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}</a>
<a class="ft__red" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}</a>
...
...
src/main/resources/skins/Jane/article.ftl
View file @
b145ac62
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</span>
</span>
<div
class=
"fn__right"
>
<div
class=
"fn__right"
>
<
#if
commentable
>
<
#if
commentable
>
<a
class=
"ft__red"
href=
"${servePath}${article.articlePermalink}#comments"
><
#if
article
.
articleCommentCount
gt
0
>
${article.articleCommentCount}
</
#
if>
${commentLabel}
</a>
<a
class=
"ft__red"
href=
"${servePath}${article.articlePermalink}#comments"
><
span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${commentLabel}
</a>
•
•
</
#
if>
</
#
if>
<span
data-uvstaturl=
"${servePath}${article.articlePermalink}"
>
${article.articleViewCount}
</span>
${viewLabel}
<span
data-uvstaturl=
"${servePath}${article.articlePermalink}"
>
${article.articleViewCount}
</span>
${viewLabel}
...
...
src/main/resources/skins/Medium/article-list.ftl
View file @
b145ac62
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</time> •
</time> •
<#if commentable>
<#if commentable>
<a href="${servePath}${article.articlePermalink}#comments" class="ft-gray">
<a href="${servePath}${article.articlePermalink}#comments" class="ft-gray">
${article.articleCommentCount}
${commentLabel}
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${commentLabel}
</a> •
</a> •
</#if>
</#if>
<a href="${servePath}${article.articlePermalink}" class="ft-gray">
<a href="${servePath}${article.articlePermalink}" class="ft-gray">
...
...
src/main/resources/skins/Medium/article.ftl
View file @
b145ac62
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
<svg>
<svg>
<use
xlink:href=
"#icon-comment"
></use>
<use
xlink:href=
"#icon-comment"
></use>
</svg>
</svg>
${article.articleCommentCount}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
</span>
</span>
<span
id=
"articleShare"
>
<span
id=
"articleShare"
>
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
<svg>
<svg>
<use
xlink:href=
"#icon-comment"
></use>
<use
xlink:href=
"#icon-comment"
></use>
</svg>
</svg>
${article.articleCommentCount}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
</span>
</span>
<span
id=
"articleBottomShare"
>
<span
id=
"articleBottomShare"
>
<span
class=
"post__share-icon"
data-type=
"wechat"
>
<span
class=
"post__share-icon"
data-type=
"wechat"
>
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
<span
class=
"vditor-tooltipped vditor-tooltipped__e post__share-icon ft-green"
<span
class=
"vditor-tooltipped vditor-tooltipped__e post__share-icon ft-green"
onclick=
"$('#comment').focus()"
onclick=
"$('#comment').focus()"
aria-label=
"${commentLabel}"
>
aria-label=
"${commentLabel}"
>
<span
class=
"ft-gray"
>
${article.articleCommentCount}
</span>
<span
class=
"ft-gray"
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
<svg>
<svg>
<use
xlink:href=
"#icon-comment"
></use>
<use
xlink:href=
"#icon-comment"
></use>
</svg>
</svg>
...
...
src/main/resources/skins/NeoEase/article-list.ftl
View file @
b145ac62
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<div class="right article-element">
<div class="right article-element">
<#if commentable>
<#if commentable>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}
${commentLabel}
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${commentLabel}
</a>
</a>
</#if>
</#if>
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
...
...
src/main/resources/skins/NeoEase/article.ftl
View file @
b145ac62
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<div
class=
"right article-element"
>
<div
class=
"right article-element"
>
<
#if
commentable
>
<
#if
commentable
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
${article.articleCommentCount}
${commentLabel}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${commentLabel}
</a>
</a>
</
#
if>
</
#
if>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}"
>
...
...
src/main/resources/skins/NeoEase/side.ftl
View file @
b145ac62
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<ul class="side-li">
<ul class="side-li">
<#list mostCommentArticles as article>
<#list mostCommentArticles as article>
<li>
<li>
<sup>[
${article.articleCommentCount}
]</sup>
<sup>[
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
]</sup>
<a title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<a title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
${article.articleTitle}
</a>
</a>
...
...
src/main/resources/skins/Pinghsu/article.ftl
View file @
b145ac62
...
@@ -64,9 +64,7 @@
...
@@ -64,9 +64,7 @@
</
#
if>
</
#
if>
with
<span
data-uvstaturl=
"${servePath}${article.articlePermalink}"
>
${article.articleViewCount}
</span>
views
with
<span
data-uvstaturl=
"${servePath}${article.articlePermalink}"
>
${article.articleViewCount}
</span>
views
<
#if
commentable
>
<
#if
commentable
>
<
#if
article
.
articleCommentCount
!=
0
>
and
<a
href=
"#comments"
><span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
comments
</a>
and
<a
href=
"#comments"
>
${article.articleCommentCount} comments
</a>
</
#
if>
</
#
if>
</
#
if>
</div>
</div>
<div
class=
"item__tags"
>
<div
class=
"item__tags"
>
...
...
src/main/resources/skins/favourite/article-list.ftl
View file @
b145ac62
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<#if commentable>
<#if commentable>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<span class="left articles-commentIcon" title="${commentLabel}"></span>
<span class="left articles-commentIcon" title="${commentLabel}"></span>
<span class="count">${article.articleCommentCount}</span>
<span class="count"
data-uvstatcmt="${article.oId}"
>${article.articleCommentCount}</span>
</a>
</a>
</#if>
</#if>
<div class="right more">
<div class="right more">
...
...
src/main/resources/skins/favourite/article.ftl
View file @
b145ac62
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
</div>
</div>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
class=
"left"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
class=
"left"
>
<span
class=
"left articles-commentIcon"
title=
"${commentLabel}"
></span>
<span
class=
"left articles-commentIcon"
title=
"${commentLabel}"
></span>
<span
class=
"count"
>
${article.articleCommentCount}
</span>
<span
class=
"count"
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
</a>
</a>
<div
class=
"right"
>
<div
class=
"right"
>
<a
rel=
"nofollow"
href=
"#comments"
class=
"right"
>
<a
rel=
"nofollow"
href=
"#comments"
class=
"right"
>
...
...
src/main/resources/skins/favourite/side.ftl
View file @
b145ac62
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
<li>
<li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
${article.articleTitle}
</a>(
${article.articleCommentCount}
)
</a>(
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
)
</li>
</li>
</#list>
</#list>
</ul>
</ul>
...
...
src/main/resources/skins/i-nove/article-list.ftl
View file @
b145ac62
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<div class="right">
<div class="right">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<span class="left articles-commentIcon" title="${commentLabel}"></span>
<span class="left articles-commentIcon" title="${commentLabel}"></span>
${article.articleCommentCount}
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a>
</a>
</div>
</div>
</#if>
</#if>
...
...
src/main/resources/skins/i-nove/article.ftl
View file @
b145ac62
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<div
class=
"right"
>
<div
class=
"right"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
class=
"left"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
class=
"left"
>
<span
class=
"left articles-commentIcon"
title=
"${commentLabel}"
></span>
<span
class=
"left articles-commentIcon"
title=
"${commentLabel}"
></span>
${article.articleCommentCount}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
</a>
</a>
</div>
</div>
</
#
if>
</
#
if>
...
...
src/main/resources/skins/i-nove/side.ftl
View file @
b145ac62
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<li>
<li>
<a rel="nofollow" title="${article.articleTitle}"
<a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}">
href="${servePath}${article.articlePermalink}">
<sup>[
${article.articleCommentCount}
]</sup>
<sup>[
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
]</sup>
${article.articleTitle}
${article.articleTitle}
</a>
</a>
</li>
</li>
...
...
src/main/resources/skins/metro-hot/article-list.ftl
View file @
b145ac62
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</div>
</div>
<div class="fn-right">
<div class="fn-right">
<#if commentable>
<#if commentable>
<a rel="nofollow" data-ico="" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" data-ico=""
data-uvstatcmt="${article.oId}"
href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}
${article.articleCommentCount}
</a>
</a>
</#if>
</#if>
...
...
src/main/resources/skins/metro-hot/article.ftl
View file @
b145ac62
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<div
class=
"article-info"
>
<div
class=
"article-info"
>
<
#if
commentable
>
<
#if
commentable
>
<a
rel=
"nofollow"
data-ico=
""
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
data-ico=
""
href=
"${servePath}${article.articlePermalink}#comments"
>
${article.articleCommentCount}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
</a>
</a>
</
#
if>
</
#
if>
<a
rel=
"nofollow"
data-ico=
""
href=
"${servePath}${article.articlePermalink}"
>
<a
rel=
"nofollow"
data-ico=
""
href=
"${servePath}${article.articlePermalink}"
>
...
...
src/main/resources/skins/metro-hot/dynamic.ftl
View file @
b145ac62
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
<a
href=
"${servePath}${article.articlePermalink}"
title=
"${article.articleTitle}"
rel=
"nofollow"
>
<a
href=
"${servePath}${article.articlePermalink}"
title=
"${article.articleTitle}"
rel=
"nofollow"
>
${article.articleTitle}
${article.articleTitle}
</a>
</a>
<span
data-ico=
""
>
<span
data-ico=
""
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
${article.articleCommentCount}
</span>
</span>
</li>
</li>
...
...
src/main/resources/skins/next/article-list.ftl
View file @
b145ac62
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<span>
<span>
|
|
<a href="${servePath}${article.articlePermalink}#comments">
<a href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}
${cmtLabel}</a>
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${cmtLabel}</a>
</span>
</span>
</#if>
</#if>
| ${viewsLabel} <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>°C
| ${viewsLabel} <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>°C
...
...
src/main/resources/skins/next/article.ftl
View file @
b145ac62
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<span
class=
"post-comments-count"
>
<span
class=
"post-comments-count"
>
|
|
<a
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
href=
"${servePath}${article.articlePermalink}#comments"
>
${article.articleCommentCount}
${cmtLabel}
</a>
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${cmtLabel}
</a>
</span>
</span>
</
#
if>
</
#
if>
|
${viewsLabel}
|
${viewsLabel}
...
...
src/main/resources/skins/nijigen/article-list.ftl
View file @
b145ac62
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</span>
</span>
<#if commentable>
<#if commentable>
<a class="tag" href="${servePath}${article.articlePermalink}#comments">
<a class="tag" href="${servePath}${article.articlePermalink}#comments">
<i class="icon__comments"></i>
${article.articleCommentCount}
${commentLabel}
<i class="icon__comments"></i>
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${commentLabel}
</a>
</a>
</#if>
</#if>
<span class="tag">
<span class="tag">
...
...
src/main/resources/skins/nijigen/article.ftl
View file @
b145ac62
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</span>
</span>
<
#if
commentable
>
<
#if
commentable
>
<a
class=
"tag"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
class=
"tag"
href=
"${servePath}${article.articlePermalink}#comments"
>
<i
class=
"icon__comments"
></i>
${article.articleCommentCount}
${commentLabel}
<i
class=
"icon__comments"
></i>
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${commentLabel}
</a>
</a>
</
#
if>
</
#
if>
<span
class=
"tag"
>
<span
class=
"tag"
>
...
...
src/main/resources/skins/owmx-3.0/article-list.ftl
View file @
b145ac62
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</a><#if commentable> | ${commentCount1Label}
</a><#if commentable> | ${commentCount1Label}
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<span class="left articles-commentIcon" title="${commentLabel}"></span>
<span class="left articles-commentIcon" title="${commentLabel}"></span>
${article.articleCommentCount}
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a>
</a>
</#if>
</#if>
</p>
</p>
...
...
src/main/resources/skins/owmx-3.0/article.ftl
View file @
b145ac62
...
@@ -64,7 +64,7 @@ ${topBarReplacement}
...
@@ -64,7 +64,7 @@ ${topBarReplacement}
<
#if
commentable
>
| ${commentCount1Label}
<
#if
commentable
>
| ${commentCount1Label}
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<span
class=
"left articles-commentIcon"
title=
"${commentLabel}"
></span>
<span
class=
"left articles-commentIcon"
title=
"${commentLabel}"
></span>
${article.articleCommentCount}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
</a>
</a>
</
#
if>
</
#
if>
</p>
</p>
...
...
src/main/resources/skins/owmx-3.0/side.ftl
View file @
b145ac62
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<li>
<li>
<a rel="nofollow" title="${article.articleTitle}"
<a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}">
href="${servePath}${article.articlePermalink}">
<sup>[
${article.articleCommentCount}
]</sup>
<sup>[
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
]</sup>
${article.articleTitle}
${article.articleTitle}
</a>
</a>
</li>
</li>
...
...
src/main/resources/skins/timeline/article-list.ftl
View file @
b145ac62
...
@@ -58,11 +58,7 @@
...
@@ -58,11 +58,7 @@
</span>
</span>
<span class="ico-comment ico" title="${commentLabel}">
<span class="ico-comment ico" title="${commentLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<#if article.articleCommentCount == 0>
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${noCommentLabel}
<#else>
${article.articleCommentCount}
</#if>
</a>
</a>
</span>
</span>
<span class="ico-view ico" title="${viewLabel}">
<span class="ico-view ico" title="${viewLabel}">
...
...
src/main/resources/skins/timeline/article.ftl
View file @
b145ac62
...
@@ -80,11 +80,7 @@ ${topBarReplacement}
...
@@ -80,11 +80,7 @@ ${topBarReplacement}
<
#if
commentable
>
<
#if
commentable
>
<span
class=
"ico-comment ico"
title=
"${commentLabel}"
>
<span
class=
"ico-comment ico"
title=
"${commentLabel}"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<
#if
article.articleCommentCount =
=
0
>
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${noCommentLabel}
<
#else
>
${article.articleCommentCount}
</
#
if>
</a>
</a>
</span>
</span>
</
#
if>
</
#
if>
...
...
src/main/resources/skins/timeline/dynamic.ftl
View file @
b145ac62
...
@@ -82,12 +82,8 @@
...
@@ -82,12 +82,8 @@
${article.articleTitle}
${article.articleTitle}
</a>
</a>
<span
class=
"ico ico-comment right"
title=
"${commentLabel}"
>
<span
class=
"ico ico-comment right"
title=
"${commentLabel}"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
data-uvstatcmt=
"${article.oId}"
>
<
#if
article.articleCommentCount =
=
0
>
${noCommentLabel}
<
#else
>
${article.articleCommentCount}
${article.articleCommentCount}
</
#
if>
</a>
</a>
</span>
</span>
</li>
</li>
...
...
src/main/resources/skins/timeline/index.ftl
View file @
b145ac62
...
@@ -93,12 +93,8 @@
...
@@ -93,12 +93,8 @@
</span>
</span>
<
#if
commentable
>
<
#if
commentable
>
<span
class=
"ico-comment ico"
title=
"${commentLabel}"
>
<span
class=
"ico-comment ico"
title=
"${commentLabel}"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<a
rel=
"nofollow"
data-uvstatcmt=
"${article.oId} href="
${
servePath
}${
article
.
articlePermalink
}
#comments
"
>
<
#if
article.articleCommentCount =
=
0
>
${noCommentLabel}
<
#else
>
${article.articleCommentCount}
${article.articleCommentCount}
</
#
if>
</a>
</a>
</span>
</span>
</
#
if>
</
#
if>
...
...
src/main/resources/skins/timeline/js/timeline.js
View file @
b145ac62
...
@@ -307,7 +307,7 @@ var timeline = {
...
@@ -307,7 +307,7 @@ var timeline = {
+
'
<a rel="author" href="
'
+
Label
.
servePath
+
'
/authors/
'
+
article
.
authorId
+
'
">
'
+
'
<a rel="author" href="
'
+
Label
.
servePath
+
'
/authors/
'
+
article
.
authorId
+
'
">
'
+
article
.
authorName
+
'
</a></span> <span class="ico-comment ico" title="
'
+
article
.
authorName
+
'
</a></span> <span class="ico-comment ico" title="
'
+
Label
.
commentLabel
+
'
"><a rel="nofollow" href="
'
+
Label
.
servePath
+
article
.
articlePermalink
+
Label
.
commentLabel
+
'
"><a rel="nofollow" href="
'
+
Label
.
servePath
+
article
.
articlePermalink
+
'
#comments"
>
'
+
(
article
.
articleCommentCount
===
0
?
Label
.
noCommentLabel
:
article
.
articleCommentCount
)
+
'
#comments"
data-uvstatcmt="
'
+
article
.
oId
+
'
">
'
+
article
.
articleCommentCount
+
'
</a></span> <span class="ico-view ico" title="
'
+
Label
.
viewLabel
+
'
">
'
+
'
</a></span> <span class="ico-view ico" title="
'
+
Label
.
viewLabel
+
'
">
'
+
'
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
'
+
'
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
'
+
'
<span data-uvstaturl="
'
+
Label
.
servePath
+
article
.
articlePermalink
+
'
">
'
+
article
.
articleViewCount
+
'
</span>
'
+
'
<span data-uvstaturl="
'
+
Label
.
servePath
+
article
.
articlePermalink
+
'
">
'
+
article
.
articleViewCount
+
'
</span>
'
...
...
src/main/resources/skins/timeline/js/timeline.min.js
View file @
b145ac62
var
timeline
=
{
_COLHA
:
0
,
_COLHB
:
20
,
toDate
:
function
(
e
,
t
){
var
a
=
new
Date
(
e
),
i
=
{
"
M+
"
:
a
.
getMonth
()
+
1
,
"
d+
"
:
a
.
getDate
(),
"
H+
"
:
a
.
getHours
(),
"
m+
"
:
a
.
getMinutes
(),
"
s+
"
:
a
.
getSeconds
(),
"
q+
"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
s
in
/
(
y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
i
)
new
RegExp
(
"
(
"
+
s
+
"
)
"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
==
RegExp
.
$1
.
length
?
i
[
s
]:(
"
00
"
+
i
[
s
]).
substr
((
""
+
i
[
s
]).
length
)));
return
t
},
_initArticleList
:
function
(){
var
e
=
$
(
"
.articles
"
);
0
===
e
.
length
||
$
(
"
.articles > .fn-clear
"
).
length
>
0
||
(
$
(
window
).
resize
((
function
(){
if
(
"
auto
"
===
$
(
"
#hideTop
"
).
css
(
"
top
"
)){
var
t
=
[
timeline
.
_COLHA
,
timeline
.
_COLHB
];
e
.
find
(
"
article
"
).
each
((
function
(){
var
e
=
$
(
this
),
a
=
t
[
1
]
>
t
[
0
],
i
=
a
?
t
[
0
]:
t
[
1
];
parseInt
(
e
.
css
(
"
top
"
))
===
i
&&
0
!==
i
||
(
e
.
css
({
top
:
i
+
"
px
"
,
position
:
"
absolute
"
}),
this
.
className
=
a
?
"
l
"
:
"
r
"
),
t
[
a
?
"
0
"
:
"
1
"
]
+=
parseInt
(
e
.
outerHeight
(
!
0
))})),
e
.
height
(
t
[
0
]
>
t
[
1
]?
t
[
0
]:
t
[
1
])}
else
e
.
find
(
"
article
"
).
each
((
function
(){
$
(
this
).
css
({
position
:
"
inherit
"
,
top
:
"
auto
"
}).
removeClass
(
"
r l
"
)})),
e
.
css
(
"
height
"
,
"
auto
"
)})),
$
(
window
).
resize
(),
$
(
"
.module img
"
).
imagesLoaded
((
function
(){
$
(
window
).
resize
()})))},
_initIndexList
:
function
(){
var
e
=
$
(
"
.articles > .fn-clear
"
);
if
(
0
!==
e
.
length
){
var
t
=
0
;
$
(
"
.nav-abs li
"
).
each
((
function
(
e
){
var
a
=
$
(
this
);
a
.
hide
(),
t
!==
a
.
data
(
"
year
"
)
&&
(
t
=
a
.
data
(
"
year
"
),
a
.
before
(
"
<li class='close year' onclick='timeline.toggleArchives(this,
"
+
t
+
"
)'>
"
+
t
+
"
</li>
"
))})),
$
(
"
.article-more
"
).
parent
().
data
(
"
count
"
)
<=
$
(
"
.article-more
"
).
parent
().
find
(
"
article
"
).
length
&&
$
(
"
.article-more
"
).
remove
(),
$
(
window
).
resize
((
function
(){
e
.
each
((
function
(){
if
(
"
auto
"
===
$
(
"
#hideTop
"
).
css
(
"
top
"
)){
var
e
=
[
timeline
.
_COLHA
+
60
,
4
*
timeline
.
_COLHB
];
0
===
(
t
=
$
(
this
).
find
(
"
article
"
)).
length
?(
$
(
this
).
find
(
"
h2
"
).
remove
(),
$
(
this
).
css
(
"
margin-bottom
"
,
0
)):(
t
.
each
((
function
(){
var
t
=
$
(
this
),
a
=
e
[
1
]
>
e
[
0
],
i
=
a
?
e
[
0
]:
e
[
1
];
parseInt
(
t
.
css
(
"
top
"
))
===
i
&&
0
!==
i
||
(
t
.
css
({
top
:
i
+
"
px
"
,
position
:
"
absolute
"
}),
this
.
className
=
a
?
"
l
"
:
"
r
"
),
e
[
a
?
"
0
"
:
"
1
"
]
+=
parseInt
(
t
.
outerHeight
(
!
0
))})),
$
(
this
).
height
(
e
[
0
]
>
e
[
1
]?
e
[
0
]:
e
[
1
]))}
else
{
var
t
;
0
===
(
t
=
$
(
this
).
find
(
"
article
"
)).
length
?(
$
(
this
).
find
(
"
h2
"
).
remove
(),
$
(
this
).
css
(
"
margin-bottom
"
,
0
)):(
t
.
each
((
function
(){
$
(
this
).
css
({
position
:
"
inherit
"
,
top
:
"
auto
"
}).
removeClass
(
"
r l
"
)})),
$
(
this
).
css
(
"
height
"
,
"
auto
"
))}}))})),
$
(
window
).
resize
(),
$
(
"
.module img
"
).
imagesLoaded
((
function
(){
$
(
window
).
resize
()}))}},
_setNavCurrent
:
function
(){
$
(
"
.header li a
"
).
each
((
function
(){
$
(
this
).
prop
(
"
href
"
)
===
location
.
href
.
split
(
"
#
"
)[
0
]?
this
.
className
=
"
current
"
:
this
.
className
=
""
}))},
init
:
function
(){
$
(
window
).
scroll
((
function
(){
$
(
window
).
scrollTop
()
>
60
?
$
(
"
.ico-top
"
).
show
():
$
(
"
.ico-top
"
).
hide
()})),
timeline
.
_initIndexList
(),
timeline
.
_initArticleList
(),
timeline
.
_setNavCurrent
(),
$
(
"
.ico-list
"
).
click
((
function
(){
"
0px
"
===
$
(
"
.header > .container > form
"
).
css
(
"
height
"
)?
$
(
"
.header > .container > ul, .header > .container > form
"
).
css
({
height
:
"
auto
"
}):
$
(
"
.header > .container > ul, .header > .container > form
"
).
animate
({
height
:
"
0px
"
})}))},
translate
:
function
(){
window
.
open
(
"
http://translate.google.com/translate?sl=auto&tl=auto&u=
"
+
location
.
href
)},
getArchive
:
function
(
e
,
t
,
a
){
var
i
=
e
+
t
,
s
=
e
+
"
/
"
+
t
;
if
(
window
.
location
.
hash
=
"
#
"
+
i
,
0
===
$
(
"
#
"
+
i
+
"
> article
"
).
length
){
var
n
=
e
+
"
"
+
Label
.
yearLabel
+
"
"
+
t
+
"
"
+
Label
.
monthLabel
;
"
en
"
===
Label
.
localeString
.
substring
(
0
,
2
)
&&
(
n
=
a
+
"
"
+
e
);
var
r
=
'
<h2><span class="article-archive">
'
+
n
+
'
</span></h2><div class="article-more" onclick="timeline.getNextPage(this,
\'
'
+
s
+
'
\'
)" data-page="0">
'
+
Label
.
moreLabel
+
"
</div>
"
;
$
(
"
#
"
+
i
).
html
(
r
).
css
(
"
margin-bottom
"
,
"
50px
"
),
timeline
.
getNextPage
(
$
(
"
#
"
+
i
).
find
(
"
.article-more
"
)[
0
],
s
)}},
getNextPage
:
function
(
e
,
t
){
var
a
=
$
(
e
),
i
=
a
.
data
(
"
page
"
)
+
1
,
s
=
"
/articles/
"
;
if
(
1
===
$
(
"
#tag
"
).
length
)
s
=
"
/articles/tags/
"
+
(
n
=
location
.
pathname
.
split
(
"
/
"
))[
n
.
length
-
1
];
else
if
(
1
===
$
(
"
#author
"
).
length
){
s
=
"
/articles/authors/
"
+
(
n
=
location
.
pathname
.
split
(
"
/
"
))[
n
.
length
-
1
]}
else
if
(
1
===
$
(
"
#category
"
).
length
){
var
n
;
s
=
"
/articles/category/
"
+
(
n
=
location
.
pathname
.
split
(
"
/
"
))[
n
.
length
-
1
]}
else
t
&&
(
s
=
"
/articles/archives/
"
+
t
);
$
.
ajax
({
url
:
Label
.
servePath
+
s
+
"
?p=
"
+
i
,
type
:
"
GET
"
,
beforeSend
:
function
(){
a
.
css
(
"
background
"
,
"
url(
"
+
Label
.
staticServePath
+
"
/skins/timeline/images/ajax-loader.gif) no-repeat scroll center center #60829F
"
).
text
(
""
)},
success
:
function
(
e
,
t
){
if
(
e
.
sc
)
if
(
0
!==
e
.
rslts
.
articles
.
length
){
for
(
var
s
=
""
,
n
=
e
.
rslts
.
pagination
,
r
=
0
;
r
<
e
.
rslts
.
articles
.
length
;
r
++
){
var
l
=
e
.
rslts
.
articles
[
r
];
s
+=
'
<article><div class="module"><div class="dot"></div><div class="arrow"></div><time class="article-time"><span>
'
+
timeline
.
toDate
(
l
.
articleCreateTime
,
"
yy-MM-dd HH:mm
"
)
+
'
</span></time><h3 class="article-title"><a rel="bookmark" href="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
">
'
+
l
.
articleTitle
+
"
</a>
"
,
l
.
articlePutTop
&&
(
s
+=
"
<sup>
"
+
Label
.
topArticleLabel
+
"
</sup>
"
),
l
.
hasUpdated
&&
(
s
+=
'
<sup><a href="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
">
'
+
Label
.
updatedLabel
+
"
</a></sup>
"
),
s
+=
"
</h3><p>
"
+
l
.
articleAbstract
+
'
</p><span class="ico-tags ico" title="
'
+
Label
.
tagLabel
+
'
">
'
;
for
(
var
o
=
l
.
articleTags
.
split
(
"
,
"
),
c
=
0
;
c
<
o
.
length
;
c
++
)
s
+=
'
<a rel="category tag" href="
'
+
Label
.
servePath
+
"
/tags/
"
+
encodeURIComponent
(
o
[
c
])
+
'
">
'
+
o
[
c
]
+
"
</a>
"
,
c
<
o
.
length
-
1
&&
(
s
+=
"
,
"
);
s
+=
'
</span> <span class="ico-author ico" title="
'
+
Label
.
authorLabel
+
'
"><a rel="author" href="
'
+
Label
.
servePath
+
"
/authors/
"
+
l
.
authorId
+
'
">
'
+
l
.
authorName
+
'
</a></span> <span class="ico-comment ico" title="
'
+
Label
.
commentLabel
+
'
"><a rel="nofollow" href="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
#comments"
>
'
+
(
0
===
l
.
articleCommentCount
?
Label
.
noCommentLabel
:
l
.
articleCommentCount
)
+
'
</a></span> <span class="ico-view ico" title="
'
+
Label
.
viewLabel
+
'
"><a rel="nofollow" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
">
'
+
l
.
articleViewCount
+
"
</span></a></span></div></article>
"
}
a
.
before
(
s
).
data
(
"
page
"
,
i
),
n
.
paginationPageCount
<=
i
?
a
.
remove
():
a
.
css
(
"
background
"
,
"
none #60829F
"
).
text
(
Label
.
moreLabel
),
$
(
window
).
resize
(),
$
(
"
.module img
"
).
imagesLoaded
((
function
(){
$
(
window
).
resize
()})),
Util
.
uvstat
.
render
Stat
()}
else
a
.
remove
();
else
a
.
css
(
"
background
"
,
"
none #60829F
"
).
text
(
"
Error
"
)}})},
toggleArchives
:
function
(
e
,
t
){
$
(
"
.nav-abs li
"
).
each
((
function
(
a
){
var
i
=
$
(
this
);
i
.
hasClass
(
"
year
"
)
||
(
i
.
hide
(),
t
===
i
.
data
(
"
year
"
)
&&
$
(
e
).
hasClass
(
"
close
"
)
&&
i
.
show
())})),
$
(
"
.nav-abs li.year
"
).
each
((
function
(){
parseInt
(
$
(
this
).
text
())
===
t
?
$
(
e
).
hasClass
(
"
close
"
)?
e
.
className
=
"
year open
"
:
e
.
className
=
"
year close
"
:
this
.
className
=
"
year close
"
}))}};
var
timeline
=
{
_COLHA
:
0
,
_COLHB
:
20
,
toDate
:
function
(
e
,
t
){
var
a
=
new
Date
(
e
),
i
=
{
"
M+
"
:
a
.
getMonth
()
+
1
,
"
d+
"
:
a
.
getDate
(),
"
H+
"
:
a
.
getHours
(),
"
m+
"
:
a
.
getMinutes
(),
"
s+
"
:
a
.
getSeconds
(),
"
q+
"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
s
in
/
(
y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
i
)
new
RegExp
(
"
(
"
+
s
+
"
)
"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
==
RegExp
.
$1
.
length
?
i
[
s
]:(
"
00
"
+
i
[
s
]).
substr
((
""
+
i
[
s
]).
length
)));
return
t
},
_initArticleList
:
function
(){
var
e
=
$
(
"
.articles
"
);
0
===
e
.
length
||
$
(
"
.articles > .fn-clear
"
).
length
>
0
||
(
$
(
window
).
resize
((
function
(){
if
(
"
auto
"
===
$
(
"
#hideTop
"
).
css
(
"
top
"
)){
var
t
=
[
timeline
.
_COLHA
,
timeline
.
_COLHB
];
e
.
find
(
"
article
"
).
each
((
function
(){
var
e
=
$
(
this
),
a
=
t
[
1
]
>
t
[
0
],
i
=
a
?
t
[
0
]:
t
[
1
];
parseInt
(
e
.
css
(
"
top
"
))
===
i
&&
0
!==
i
||
(
e
.
css
({
top
:
i
+
"
px
"
,
position
:
"
absolute
"
}),
this
.
className
=
a
?
"
l
"
:
"
r
"
),
t
[
a
?
"
0
"
:
"
1
"
]
+=
parseInt
(
e
.
outerHeight
(
!
0
))})),
e
.
height
(
t
[
0
]
>
t
[
1
]?
t
[
0
]:
t
[
1
])}
else
e
.
find
(
"
article
"
).
each
((
function
(){
$
(
this
).
css
({
position
:
"
inherit
"
,
top
:
"
auto
"
}).
removeClass
(
"
r l
"
)})),
e
.
css
(
"
height
"
,
"
auto
"
)})),
$
(
window
).
resize
(),
$
(
"
.module img
"
).
imagesLoaded
((
function
(){
$
(
window
).
resize
()})))},
_initIndexList
:
function
(){
var
e
=
$
(
"
.articles > .fn-clear
"
);
if
(
0
!==
e
.
length
){
var
t
=
0
;
$
(
"
.nav-abs li
"
).
each
((
function
(
e
){
var
a
=
$
(
this
);
a
.
hide
(),
t
!==
a
.
data
(
"
year
"
)
&&
(
t
=
a
.
data
(
"
year
"
),
a
.
before
(
"
<li class='close year' onclick='timeline.toggleArchives(this,
"
+
t
+
"
)'>
"
+
t
+
"
</li>
"
))})),
$
(
"
.article-more
"
).
parent
().
data
(
"
count
"
)
<=
$
(
"
.article-more
"
).
parent
().
find
(
"
article
"
).
length
&&
$
(
"
.article-more
"
).
remove
(),
$
(
window
).
resize
((
function
(){
e
.
each
((
function
(){
if
(
"
auto
"
===
$
(
"
#hideTop
"
).
css
(
"
top
"
)){
var
e
=
[
timeline
.
_COLHA
+
60
,
4
*
timeline
.
_COLHB
];
0
===
(
t
=
$
(
this
).
find
(
"
article
"
)).
length
?(
$
(
this
).
find
(
"
h2
"
).
remove
(),
$
(
this
).
css
(
"
margin-bottom
"
,
0
)):(
t
.
each
((
function
(){
var
t
=
$
(
this
),
a
=
e
[
1
]
>
e
[
0
],
i
=
a
?
e
[
0
]:
e
[
1
];
parseInt
(
t
.
css
(
"
top
"
))
===
i
&&
0
!==
i
||
(
t
.
css
({
top
:
i
+
"
px
"
,
position
:
"
absolute
"
}),
this
.
className
=
a
?
"
l
"
:
"
r
"
),
e
[
a
?
"
0
"
:
"
1
"
]
+=
parseInt
(
t
.
outerHeight
(
!
0
))})),
$
(
this
).
height
(
e
[
0
]
>
e
[
1
]?
e
[
0
]:
e
[
1
]))}
else
{
var
t
;
0
===
(
t
=
$
(
this
).
find
(
"
article
"
)).
length
?(
$
(
this
).
find
(
"
h2
"
).
remove
(),
$
(
this
).
css
(
"
margin-bottom
"
,
0
)):(
t
.
each
((
function
(){
$
(
this
).
css
({
position
:
"
inherit
"
,
top
:
"
auto
"
}).
removeClass
(
"
r l
"
)})),
$
(
this
).
css
(
"
height
"
,
"
auto
"
))}}))})),
$
(
window
).
resize
(),
$
(
"
.module img
"
).
imagesLoaded
((
function
(){
$
(
window
).
resize
()}))}},
_setNavCurrent
:
function
(){
$
(
"
.header li a
"
).
each
((
function
(){
$
(
this
).
prop
(
"
href
"
)
===
location
.
href
.
split
(
"
#
"
)[
0
]?
this
.
className
=
"
current
"
:
this
.
className
=
""
}))},
init
:
function
(){
$
(
window
).
scroll
((
function
(){
$
(
window
).
scrollTop
()
>
60
?
$
(
"
.ico-top
"
).
show
():
$
(
"
.ico-top
"
).
hide
()})),
timeline
.
_initIndexList
(),
timeline
.
_initArticleList
(),
timeline
.
_setNavCurrent
(),
$
(
"
.ico-list
"
).
click
((
function
(){
"
0px
"
===
$
(
"
.header > .container > form
"
).
css
(
"
height
"
)?
$
(
"
.header > .container > ul, .header > .container > form
"
).
css
({
height
:
"
auto
"
}):
$
(
"
.header > .container > ul, .header > .container > form
"
).
animate
({
height
:
"
0px
"
})}))},
translate
:
function
(){
window
.
open
(
"
http://translate.google.com/translate?sl=auto&tl=auto&u=
"
+
location
.
href
)},
getArchive
:
function
(
e
,
t
,
a
){
var
i
=
e
+
t
,
s
=
e
+
"
/
"
+
t
;
if
(
window
.
location
.
hash
=
"
#
"
+
i
,
0
===
$
(
"
#
"
+
i
+
"
> article
"
).
length
){
var
n
=
e
+
"
"
+
Label
.
yearLabel
+
"
"
+
t
+
"
"
+
Label
.
monthLabel
;
"
en
"
===
Label
.
localeString
.
substring
(
0
,
2
)
&&
(
n
=
a
+
"
"
+
e
);
var
r
=
'
<h2><span class="article-archive">
'
+
n
+
'
</span></h2><div class="article-more" onclick="timeline.getNextPage(this,
\'
'
+
s
+
'
\'
)" data-page="0">
'
+
Label
.
moreLabel
+
"
</div>
"
;
$
(
"
#
"
+
i
).
html
(
r
).
css
(
"
margin-bottom
"
,
"
50px
"
),
timeline
.
getNextPage
(
$
(
"
#
"
+
i
).
find
(
"
.article-more
"
)[
0
],
s
)}},
getNextPage
:
function
(
e
,
t
){
var
a
=
$
(
e
),
i
=
a
.
data
(
"
page
"
)
+
1
,
s
=
"
/articles/
"
;
if
(
1
===
$
(
"
#tag
"
).
length
)
s
=
"
/articles/tags/
"
+
(
n
=
location
.
pathname
.
split
(
"
/
"
))[
n
.
length
-
1
];
else
if
(
1
===
$
(
"
#author
"
).
length
){
s
=
"
/articles/authors/
"
+
(
n
=
location
.
pathname
.
split
(
"
/
"
))[
n
.
length
-
1
]}
else
if
(
1
===
$
(
"
#category
"
).
length
){
var
n
;
s
=
"
/articles/category/
"
+
(
n
=
location
.
pathname
.
split
(
"
/
"
))[
n
.
length
-
1
]}
else
t
&&
(
s
=
"
/articles/archives/
"
+
t
);
$
.
ajax
({
url
:
Label
.
servePath
+
s
+
"
?p=
"
+
i
,
type
:
"
GET
"
,
beforeSend
:
function
(){
a
.
css
(
"
background
"
,
"
url(
"
+
Label
.
staticServePath
+
"
/skins/timeline/images/ajax-loader.gif) no-repeat scroll center center #60829F
"
).
text
(
""
)},
success
:
function
(
e
,
t
){
if
(
e
.
sc
)
if
(
0
!==
e
.
rslts
.
articles
.
length
){
for
(
var
s
=
""
,
n
=
e
.
rslts
.
pagination
,
r
=
0
;
r
<
e
.
rslts
.
articles
.
length
;
r
++
){
var
l
=
e
.
rslts
.
articles
[
r
];
s
+=
'
<article><div class="module"><div class="dot"></div><div class="arrow"></div><time class="article-time"><span>
'
+
timeline
.
toDate
(
l
.
articleCreateTime
,
"
yy-MM-dd HH:mm
"
)
+
'
</span></time><h3 class="article-title"><a rel="bookmark" href="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
">
'
+
l
.
articleTitle
+
"
</a>
"
,
l
.
articlePutTop
&&
(
s
+=
"
<sup>
"
+
Label
.
topArticleLabel
+
"
</sup>
"
),
l
.
hasUpdated
&&
(
s
+=
'
<sup><a href="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
">
'
+
Label
.
updatedLabel
+
"
</a></sup>
"
),
s
+=
"
</h3><p>
"
+
l
.
articleAbstract
+
'
</p><span class="ico-tags ico" title="
'
+
Label
.
tagLabel
+
'
">
'
;
for
(
var
o
=
l
.
articleTags
.
split
(
"
,
"
),
c
=
0
;
c
<
o
.
length
;
c
++
)
s
+=
'
<a rel="category tag" href="
'
+
Label
.
servePath
+
"
/tags/
"
+
encodeURIComponent
(
o
[
c
])
+
'
">
'
+
o
[
c
]
+
"
</a>
"
,
c
<
o
.
length
-
1
&&
(
s
+=
"
,
"
);
s
+=
'
</span> <span class="ico-author ico" title="
'
+
Label
.
authorLabel
+
'
"><a rel="author" href="
'
+
Label
.
servePath
+
"
/authors/
"
+
l
.
authorId
+
'
">
'
+
l
.
authorName
+
'
</a></span> <span class="ico-comment ico" title="
'
+
Label
.
commentLabel
+
'
"><a rel="nofollow" href="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
#comments"
data-uvstatcmt="
'
+
l
.
oId
+
'
">
'
+
l
.
articleCommentCount
+
'
</a></span> <span class="ico-view ico" title="
'
+
Label
.
viewLabel
+
'
"><a rel="nofollow" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="
'
+
Label
.
servePath
+
l
.
articlePermalink
+
'
">
'
+
l
.
articleViewCount
+
"
</span></a></span></div></article>
"
}
a
.
before
(
s
).
data
(
"
page
"
,
i
),
n
.
paginationPageCount
<=
i
?
a
.
remove
():
a
.
css
(
"
background
"
,
"
none #60829F
"
).
text
(
Label
.
moreLabel
),
$
(
window
).
resize
(),
$
(
"
.module img
"
).
imagesLoaded
((
function
(){
$
(
window
).
resize
()})),
Util
.
uvstat
.
renderStat
(),
Util
.
uvstat
.
renderCmt
Stat
()}
else
a
.
remove
();
else
a
.
css
(
"
background
"
,
"
none #60829F
"
).
text
(
"
Error
"
)}})},
toggleArchives
:
function
(
e
,
t
){
$
(
"
.nav-abs li
"
).
each
((
function
(
a
){
var
i
=
$
(
this
);
i
.
hasClass
(
"
year
"
)
||
(
i
.
hide
(),
t
===
i
.
data
(
"
year
"
)
&&
$
(
e
).
hasClass
(
"
close
"
)
&&
i
.
show
())})),
$
(
"
.nav-abs li.year
"
).
each
((
function
(){
parseInt
(
$
(
this
).
text
())
===
t
?
$
(
e
).
hasClass
(
"
close
"
)?
e
.
className
=
"
year open
"
:
e
.
className
=
"
year close
"
:
this
.
className
=
"
year close
"
}))}};
/*!
/*!
* jQuery imagesLoaded plugin v2.1.1
* jQuery imagesLoaded plugin v2.1.1
* http://github.com/desandro/imagesloaded
* http://github.com/desandro/imagesloaded
*
*
* MIT License. by Paul Irish et al.
* MIT License. by Paul Irish et al.
*/
!
function
(
e
,
t
){
"
use strict
"
;
var
a
=
"
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==
"
;
e
.
fn
.
imagesLoaded
=
function
(
t
){
var
i
=
this
,
s
=
e
.
isFunction
(
e
.
Deferred
)?
e
.
Deferred
():
0
,
n
=
e
.
isFunction
(
s
.
notify
),
r
=
i
.
find
(
"
img
"
).
add
(
i
.
filter
(
"
img
"
)),
l
=
[],
o
=
[],
c
=
[];
function
h
(){
var
a
=
e
(
o
),
n
=
e
(
c
);
s
&&
(
c
.
length
?
s
.
reject
(
r
,
a
,
n
):
s
.
resolve
(
r
)),
e
.
isFunction
(
t
)
&&
t
.
call
(
i
,
r
,
a
,
n
)}
function
u
(
e
){
d
(
e
.
target
,
"
error
"
===
e
.
type
)}
function
d
(
t
,
i
){
t
.
src
!==
a
&&-
1
===
e
.
inArray
(
t
,
l
)
&&
(
l
.
push
(
t
),
i
?
c
.
push
(
t
):
o
.
push
(
t
),
e
.
data
(
t
,
"
imagesLoaded
"
,{
isBroken
:
i
,
src
:
t
.
src
}),
n
&&
s
.
notifyWith
(
e
(
t
),[
i
,
r
,
e
(
o
),
e
(
c
)]),
r
.
length
===
l
.
length
&&
(
setTimeout
(
h
),
r
.
unbind
(
"
.imagesLoaded
"
,
u
)))}
return
e
.
isPlainObject
(
t
)
&&
e
.
each
(
t
,(
function
(
e
,
a
){
"
callback
"
===
e
?
t
=
a
:
s
&&
s
[
e
](
a
)})),
r
.
length
?
r
.
bind
(
"
load.imagesLoaded error.imagesLoaded
"
,
u
).
each
((
function
(
t
,
i
){
var
s
=
i
.
src
,
n
=
e
.
data
(
i
,
"
imagesLoaded
"
);
n
&&
n
.
src
===
s
?
d
(
i
,
n
.
isBroken
):
i
.
complete
&&
void
0
!==
i
.
naturalWidth
?
d
(
i
,
0
===
i
.
naturalWidth
||
0
===
i
.
naturalHeight
):(
i
.
readyState
||
i
.
complete
)
&&
(
i
.
src
=
a
,
i
.
src
=
s
)})):
h
(),
s
?
s
.
promise
(
i
):
i
}}(
jQuery
),
Util
.
setTopBar
(),
Util
.
buildTags
(
"
tagsSide
"
),
timeline
.
init
();
*/
!
function
(
e
,
t
){
"
use strict
"
;
var
a
=
"
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==
"
;
e
.
fn
.
imagesLoaded
=
function
(
t
){
var
i
=
this
,
s
=
e
.
isFunction
(
e
.
Deferred
)?
e
.
Deferred
():
0
,
n
=
e
.
isFunction
(
s
.
notify
),
r
=
i
.
find
(
"
img
"
).
add
(
i
.
filter
(
"
img
"
)),
l
=
[],
o
=
[],
c
=
[];
function
h
(){
var
a
=
e
(
o
),
n
=
e
(
c
);
s
&&
(
c
.
length
?
s
.
reject
(
r
,
a
,
n
):
s
.
resolve
(
r
)),
e
.
isFunction
(
t
)
&&
t
.
call
(
i
,
r
,
a
,
n
)}
function
d
(
e
){
u
(
e
.
target
,
"
error
"
===
e
.
type
)}
function
u
(
t
,
i
){
t
.
src
!==
a
&&-
1
===
e
.
inArray
(
t
,
l
)
&&
(
l
.
push
(
t
),
i
?
c
.
push
(
t
):
o
.
push
(
t
),
e
.
data
(
t
,
"
imagesLoaded
"
,{
isBroken
:
i
,
src
:
t
.
src
}),
n
&&
s
.
notifyWith
(
e
(
t
),[
i
,
r
,
e
(
o
),
e
(
c
)]),
r
.
length
===
l
.
length
&&
(
setTimeout
(
h
),
r
.
unbind
(
"
.imagesLoaded
"
,
d
)))}
return
e
.
isPlainObject
(
t
)
&&
e
.
each
(
t
,(
function
(
e
,
a
){
"
callback
"
===
e
?
t
=
a
:
s
&&
s
[
e
](
a
)})),
r
.
length
?
r
.
bind
(
"
load.imagesLoaded error.imagesLoaded
"
,
d
).
each
((
function
(
t
,
i
){
var
s
=
i
.
src
,
n
=
e
.
data
(
i
,
"
imagesLoaded
"
);
n
&&
n
.
src
===
s
?
u
(
i
,
n
.
isBroken
):
i
.
complete
&&
void
0
!==
i
.
naturalWidth
?
u
(
i
,
0
===
i
.
naturalWidth
||
0
===
i
.
naturalHeight
):(
i
.
readyState
||
i
.
complete
)
&&
(
i
.
src
=
a
,
i
.
src
=
s
)})):
h
(),
s
?
s
.
promise
(
i
):
i
}}(
jQuery
),
Util
.
setTopBar
(),
Util
.
buildTags
(
"
tagsSide
"
),
timeline
.
init
();
\ No newline at end of file
\ No newline at end of file
src/main/resources/skins/tree-house/article-list.ftl
View file @
b145ac62
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<#if commentable>
<#if commentable>
<div class="article-comment">
<div class="article-comment">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${commentLabel}(
${article.articleCommentCount}
)
${commentLabel}(
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
)
</a>
</a>
</div>
</div>
</#if>
</#if>
...
...
src/main/resources/skins/tree-house/article.ftl
View file @
b145ac62
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<div
class=
"right"
>
<div
class=
"right"
>
<
#if
commentable
>
<
#if
commentable
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
class=
"left"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
class=
"left"
>
${article.articleCommentCount}
${commentLabel}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
${commentLabel}
</a>
</a>
</
#
if>
</
#
if>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}"
class=
"left"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}"
class=
"left"
>
...
...
src/main/resources/skins/tree-house/side.ftl
View file @
b145ac62
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<#list mostCommentArticles as article>
<#list mostCommentArticles as article>
<li>
<li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<sup>[
${article.articleCommentCount}
]</sup>${article.articleTitle}
<sup>[
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
]</sup>${article.articleTitle}
</a>
</a>
</li>
</li>
</#list>
</#list>
...
...
src/main/resources/skins/yilia/article-list.ftl
View file @
b145ac62
...
@@ -59,15 +59,13 @@
...
@@ -59,15 +59,13 @@
</div>
</div>
<span> </span>
<span> </span>
<#if commentable>
<#if commentable>
<#if article.articleCommentCount != 0>
<a href="${servePath}${article.articlePermalink}#comments"
<a href="${servePath}${article.articlePermalink}#comments"
class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
aria-label="${commentLabel}">
aria-label="${commentLabel}">
${article.articleCommentCount}
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
<span class="icon-chat"></span>
<span class="icon-chat"></span>
</a>
</a>
</#if>
</#if>
</#if>
<a class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
<a class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
href="${servePath}${article.articlePermalink}"
href="${servePath}${article.articlePermalink}"
aria-label="${viewLabel}">
aria-label="${viewLabel}">
...
...
src/main/resources/skins/yilia/article.ftl
View file @
b145ac62
...
@@ -62,15 +62,13 @@
...
@@ -62,15 +62,13 @@
</div>
</div>
<span>
</span>
<span>
</span>
<
#if
commentable
>
<
#if
commentable
>
<
#if
article
.
articleCommentCount
!=
0
>
<a
href=
"${servePath}${article.articlePermalink}#comments"
<a
href=
"${servePath}${article.articlePermalink}#comments"
class=
"vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
class=
"vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
aria-label=
"${commentLabel}"
>
aria-label=
"${commentLabel}"
>
${article.articleCommentCount}
<span
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
</span>
<span
class=
"icon-chat"
></span>
<span
class=
"icon-chat"
></span>
</a>
</a>
</
#
if>
</
#
if>
</
#
if>
<a
class=
"vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
<a
class=
"vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
href=
"${servePath}${article.articlePermalink}"
href=
"${servePath}${article.articlePermalink}"
aria-label=
"${viewLabel}"
>
aria-label=
"${viewLabel}"
>
...
...
src/main/resources/skins/yilia/dynamic.ftl
View file @
b145ac62
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<a
href=
"${servePath}${article.articlePermalink}"
title=
"${article.articleTitle}"
rel=
"nofollow"
>
<a
href=
"${servePath}${article.articlePermalink}"
title=
"${article.articleTitle}"
rel=
"nofollow"
>
${article.articleTitle}
${article.articleTitle}
</a>
</a>
<span
data-ico=
""
>
<span
data-ico=
""
data-uvstatcmt=
"${article.oId}"
>
${article.articleCommentCount}
${article.articleCommentCount}
</span>
</span>
</li>
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment