Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
tmq
9 years ago
Commit
8e3ed388a69cd42187c81ef8e7e6213e04982318
1 parent
127846d4
时间戳转换
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
res/js/yohood.js
res/js/yohood.js
View file @
8e3ed38
...
...
@@ -635,7 +635,10 @@ define('yohood', function(require, exports) {
var
template
=
function
(
topic
,
img
,
url
,
isVideo
,
isTitleStyle
,
title
,
imgStyle
,
create_time
)
{
var
playIcon
=
''
;
var
titleStyle
=
''
;
var
d
=
new
Date
(
create_time
);
function
getLocalTime
(
nS
)
{
return
new
Date
(
parseInt
(
nS
)
*
1000
).
toLocaleString
().
replace
(
/:
\d{1,2}
$/
,
' '
);
}
var
d
=
getLocalTime
(
create_time
);
var
type
=
'<span class="item-time"><?php $en = array("01"=>"January","02"=>"February","03"=>"March","04"=>"April","05"=>"May","06"=>"June","07"=>"July","08"=>"August","09"=>"September","10"=>"October","11"=>"November","12"=>"December");$m=date("m", '
+
create_time
+
');echo $en[$m]?> <?php ECHO $m=date("d.Y", '
+
create_time
+
')?></span>'
;
var
title
=
$
(
'<p>'
+
title
+
'</p>'
).
text
();
var
html
=
'<div class="layout-item clearfix">'
+
...
...
Please
register
or
login
to post a comment