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
81bb8a38
authored
3 years ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
772b4633
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
Graphics.html
video.html
Graphics.html
View file @
81bb8a38
...
...
@@ -353,7 +353,7 @@ $(function(){
if
(
data
.
dataList
[
i
].
type
!=
2
)
continue
;
if
(
moreNum
==
3
)
continue
;
moreNum
++
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
a
href
=
"Graphics.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html+='
<
div
class
=
"add-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"add-face-name"
>
';
html+='
<
img
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80"
alt
=
""
>
';
...
...
@@ -369,13 +369,13 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
}
$(".add-video-big-box").html(html);
$
(
".add-video-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
).
attr
(
"data-type"
)
window
.
location
.
href
=
"Graphics.html?topicId="
+
_self
+
"&tag="
+
sessionStorage
.
tag
+
""
})
//
$(".add-video-box").unbind("click").on("click",function(){
//
var _self=$(this).attr("data-type")
//
window.location.href="Graphics.html?topicId="+_self+"&tag="+sessionStorage.tag+""
//
})
}
})
...
...
@@ -397,7 +397,7 @@ $(function(){
var
list
=
data
.
dataList
[
i
]
var
videoList
=
JSON
.
parse
(
list
.
content
)
var
html
=
[]
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
a
href
=
"Graphics.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html+='
<
div
class
=
"add-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"add-face-name"
>
';
html+='
<
img
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80"
alt
=
""
>
';
...
...
@@ -413,17 +413,17 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
'
;
$
(
".add-video-big-box"
).
append
(
html
)
}
setTimeout
(
function
(){
scrollOk
=
true
;
},
500
);
$
(
".add-video-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
).
attr
(
"data-type"
)
window
.
location
.
href
=
"Graphics.html?topicId="
+
_self
+
"&tag="
+
tagNum
+
""
})
//
$(".add-video-box").unbind("click").on("click",function(){
//
var _self=$(this).attr("data-type")
//
window.location.href="Graphics.html?topicId="+_self+"&tag="+tagNum+""
//
})
}
})
...
...
This diff is collapsed.
Click to expand it.
video.html
View file @
81bb8a38
...
...
@@ -179,6 +179,7 @@ $(function(){
var
html
=
[];
var
list
=
data
.
topic
;
var
details
=
JSON
.
parse
(
list
.
content
)
$
(
"title"
).
text
(
details
.
title
)
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
var
iosUrl
=
details
.
videos
[
0
].
url
.
replace
(
"flv"
,
"mp4"
)
...
...
@@ -208,7 +209,6 @@ $(function(){
}
html
+=
'
<
/div>'
;
$
(
".grap-content"
).
html
(
html
);
$
(
"title"
).
text
(
details
.
title
)
}
})
$
.
ajax
({
...
...
@@ -315,7 +315,7 @@ $(function(){
if
(
data
.
dataList
[
i
].
type
!=
3
)
continue
;
if
(
moreNum
==
3
)
continue
;
moreNum
++
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
a
href
=
"video.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html+='
<
div
class
=
"add-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"add-time"
>
'+add0(Math.floor(videoList.videos[0].duration/1000/60))+'
:
'+add0(Math.floor(videoList.videos[0].duration/1000)%60)+'
<
/div>'
;
html
+=
'
<
div
class
=
"add-face-name"
>
';
...
...
@@ -333,14 +333,14 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
}
$(".add-video-big-box").html(html);
$
(
".add-video-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
).
attr
(
"data-type"
)
window
.
location
.
href
=
"video.html?topicId="
+
_self
+
"&tag="
+
sessionStorage
.
tag
+
""
})
//
$(".add-video-box").unbind("click").on("click",function(){
//
var _self=$(this).attr("data-type")
//
window.location.href="video.html?topicId="+_self+"&tag="+sessionStorage.tag+""
//
})
}
})
...
...
@@ -362,7 +362,7 @@ $(function(){
var
list
=
data
.
dataList
[
i
]
var
videoList
=
JSON
.
parse
(
list
.
content
)
var
html
=
[]
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
a
href
=
"video.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html+='
<
div
class
=
"add-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"add-time"
>
'+add0(Math.floor(videoList.videos[0].duration/1000/60))+'
:
'+add0(Math.floor(videoList.videos[0].duration/1000)%60)+'
<
/div>'
;
html
+=
'
<
div
class
=
"add-face-name"
>
';
...
...
@@ -380,17 +380,17 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
$(".add-video-big-box").append(html)
}
setTimeout(function(){
scrollOk=true;
}, 500);
$
(
".add-video-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
).
attr
(
"data-type"
)
window
.
location
.
href
=
"video.html?topicId="
+
_self
+
"&tag="
+
tagNum
+
""
})
//
$(".add-video-box").unbind("click").on("click",function(){
//
var _self=$(this).attr("data-type")
//
window.location.href="video.html?topicId="+_self+"&tag="+tagNum+""
//
})
}
})
...
...
This diff is collapsed.
Click to expand it.
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