Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footsen
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
348b03c1
authored
Feb 21, 2022
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
fd5eec25
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
15 deletions
newIndex.html
newIndex.html
View file @
348b03c1
...
...
@@ -98,7 +98,7 @@
<div
class=
"recommendBox"
>
<div
class=
"rVideos"
>
<div
class=
"rRow"
>
<
!-- <
div class="rRow">
<div class="youtubeVideos">
<iframe loading="lazy" class="elementor-video-iframe"
src="https://www.youtube.com/embed/PxRti9Bknrs" title="YouTube video player"
...
...
@@ -124,15 +124,6 @@
<span class="rName">超直白Chaozhibai</span>
</div>
</div>
<!-- <div class="rRow">
<div class="youtubeVideos">
<iframe class="elementor-video-iframe" src="https://www.youtube.com/embed/HyLJ5gg6HLg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="rInfo">
<span class="rTime">2021/07/08</span>
<span class="rName">1G老濕</span>
</div>
</div> -->
<div class="rRow">
<div class="youtubeVideos">
<iframe loading="lazy" class="elementor-video-iframe"
...
...
@@ -171,7 +162,7 @@
<span class="rTime">2021/05/09</span>
<span class="rName">秀煜 Show YoU</span>
</div>
</div>
</div>
-->
</div>
</div>
...
...
@@ -189,6 +180,44 @@
var
scrollH
=
$
(
'#pro'
).
height
();
parr
=
curpage
.
find
(
'.p'
);
var
curp
=
0
;
var
vList
=
[
{
vSrc
:
"https://www.youtube.com/embed/PxRti9Bknrs"
,
vTime
:
"2021/08/22"
,
vName
:
"美麗妄娜"
,
},
{
vSrc
:
"https://www.youtube.com/embed/ygtef2thdgw"
,
vTime
:
"2021/07/16"
,
vName
:
"超直白Chaozhibai"
,
},
{
vSrc
:
"https://www.youtube.com/embed/n9QRNjZNJQ4"
,
vTime
:
"2021/06/06"
,
vName
:
"Dashen大神"
,
},
{
vSrc
:
"https://www.youtube.com/embed/Lt3fZZqNulg"
,
vTime
:
"2021/05/29"
,
vName
:
"耀耀"
,
},
{
vSrc
:
"https://www.youtube.com/embed/UNtQytZtGkM"
,
vTime
:
"2021/05/09"
,
vName
:
"秀煜 Show YoU"
,
}
];
//生成主播推荐列表
var
temp
=
''
;
for
(
var
i
=
0
;
i
<
vList
.
length
;
i
++
)
{
temp
+=
"
<
div
class
=
'rRow'
><
div
class
=
'youtubeVideos'
><
iframe
loading
=
'lazy'
class
=
'elementor-video-iframe'
src
=
'"
+ vList[i].vSrc
+ "'
title
=
'YouTube video player'
frameborder
=
'0'
allow
=
'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'
"
+ "
allowfullscreen
><
/iframe>
"
+
"
<
/div>" + "<div class='rInfo'>" + "<span class='rTime'>" + vList
[
i
]
.vTime + "</
span
>
"
+ "
<
span
class
=
'rName'
>
" + vList[i].vName + "
<
/span>" + "</
div
><
/div>
"
}
$
(
'.recommendBox'
).
html
(
temp
)
touch
.
on
(
document
,
'swipeup swipedown'
,
function
(
ev
)
{
if
(
!
touchB
)
{
...
...
@@ -208,9 +237,9 @@
$
(
'.downloadBtn2'
).
hide
();
}
$
(
'.curpage'
).
animate
({
top
:
-
(
scrollH
*
curp
)
+
'px'
});
setTimeout
(
function
()
{
setTimeout
(
function
()
{
touchB
=
true
;
},
1000
)
},
1000
)
return
;
}
if
(
ev
.
type
==
'swipedown'
)
{
...
...
@@ -228,9 +257,9 @@
$
(
'.downloadBtn2'
).
hide
();
}
$
(
'.curpage'
).
animate
({
top
:
-
(
scrollH
*
curp
)
+
'px'
});
setTimeout
(
function
()
{
setTimeout
(
function
()
{
touchB
=
true
;
},
1000
)
},
1000
)
return
;
}
});
...
...
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