Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
72aaba35
authored
May 09, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
eb7bf56f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
Graphics.html
video.html
Graphics.html
View file @
72aaba35
...
@@ -250,7 +250,6 @@ $(function(){
...
@@ -250,7 +250,6 @@ $(function(){
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
$
(
".grap-content"
).
html
(
html
);
$
(
".grap-content"
).
html
(
html
);
$
(
"title"
).
text
(
details
.
title
)
$
(
"title"
).
text
(
details
.
title
)
$
(
".top-keywords"
).
attr
(
"content"
,
tagsArr
)
$
(
".top-keywords"
).
attr
(
"content"
,
tagsArr
)
}
}
})
})
...
...
video.html
View file @
72aaba35
...
@@ -183,6 +183,7 @@ $(function(){
...
@@ -183,6 +183,7 @@ $(function(){
var
list
=
data
.
topic
;
var
list
=
data
.
topic
;
var
details
=
JSON
.
parse
(
list
.
content
)
var
details
=
JSON
.
parse
(
list
.
content
)
$
(
"title"
).
text
(
details
.
title
)
$
(
"title"
).
text
(
details
.
title
)
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
var
iosUrl
=
details
.
videos
[
0
].
url
.
replace
(
"flv"
,
"mp4"
)
var
iosUrl
=
details
.
videos
[
0
].
url
.
replace
(
"flv"
,
"mp4"
)
...
@@ -193,6 +194,7 @@ $(function(){
...
@@ -193,6 +194,7 @@ $(function(){
}
}
// console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
// console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
var
html
=
[];
var
html
=
[];
var
tagsArr
=
[]
html
+=
'
<
img
class
=
"grap-user-face"
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80"
alt
=
""
>
';
html
+=
'
<
img
class
=
"grap-user-face"
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80"
alt
=
""
>
';
html+='
<
p
class
=
"grap-name-p1"
>
'+list.nickname+'
<
/p>'
;
html+='
<
p
class
=
"grap-name-p1"
>
'+list.nickname+'
<
/p>'
;
html
+=
'
<
p
class
=
"grap-name-p2"
>
'+timeGet(list.updateTime)[0]+'
年
'+timeGet(list.updateTime)[1]+'
月
'+timeGet(list.updateTime)[2]+'
日
'+timeGet(list.updateTime)[3]+'
:
'+timeGet(list.updateTime)[5]+'
<
/p>'
;
html
+=
'
<
p
class
=
"grap-name-p2"
>
'+timeGet(list.updateTime)[0]+'
年
'+timeGet(list.updateTime)[1]+'
月
'+timeGet(list.updateTime)[2]+'
日
'+timeGet(list.updateTime)[3]+'
:
'+timeGet(list.updateTime)[5]+'
<
/p>'
;
...
@@ -209,9 +211,12 @@ $(function(){
...
@@ -209,9 +211,12 @@ $(function(){
html
+=
'
<
div
class
=
"tag-content"
>
'
;
html
+=
'
<
div
class
=
"tag-content"
>
'
;
for
(
var
j
=
0
;
j
<
list
.
tags
.
length
;
j
++
){
for
(
var
j
=
0
;
j
<
list
.
tags
.
length
;
j
++
){
html
+=
'
<
div
data
-
type
=
"'+list.tags[j].tagId+'"
class
=
"tag"
>
#
'+list.tags[j].tagName+'
<
/div>'
;
html
+=
'
<
div
data
-
type
=
"'+list.tags[j].tagId+'"
class
=
"tag"
>
#
'+list.tags[j].tagName+'
<
/div>'
;
if
(
j
+
1
==
list
.
tags
.
length
)
tagsArr
+=
''
+
list
.
tags
[
j
].
tagName
+
''
else
tagsArr
+=
''
+
list
.
tags
[
j
].
tagName
+
','
}
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
$
(
".grap-content"
).
html
(
html
);
$
(
".grap-content"
).
html
(
html
);
$
(
".keywords-meta"
).
attr
(
"content"
,
tagsArr
)
}
}
})
})
$
.
ajax
({
$
.
ajax
({
...
...
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